Solved

IIS 7 PHP time to load issue

Posted on 2010-11-08
7
417 Views
Last Modified: 2012-05-10
Hello everyone,

First of all I have to say that I don't know much about WEB Servers so I will need detailed help :P

I have a Windows 2008 R1 x64 Server with IIS 7 in which I installed PHP using FastCGI which installed the version 5.2.14 of PHP.

Now I have the trouble that every form in PHP takes a long long time to load, overall if it makes calls to a local MySql Database.

Now the quiestions:
Is this a common problem?
Can be fixed?
if not, can I install an APACHE server with PHP and run PHP from there?

in advance, many thanks!
0
Comment
Question by:karelog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
7 Comments
 
LVL 3

Expert Comment

by:Chelcone
ID: 34085533
I use a program called AppServ (there are a lot of others like WinLamp or Xamp) to run PHP and Mysql on windows boxes, infact you only need an XP box to run it so it can be more cost effective. Im runing a CRM system for the company i workd for using this method.

Personaly i find this a lot easer than the nightmare os IIS and PHP coexisting.

Chelcone
0
 

Author Comment

by:karelog
ID: 34085596
The trouble is that I have a lot of apps using not only PHP but .NET Framework aswell.

so I can't run aspx forms from Apeche. I use IIS to run PHP because if I install apache I will have to run APACHE from a different port which can cause problems if a client try to load a page from apache from within a restricted network.
0
 

Author Comment

by:karelog
ID: 34085713
My team-mate tells me that the PHP worked just fine, except to HESK (http://www.hesk.com/). In HESK worked the admin part but not the ticket submit.

So my team-mate enabled the debugging in PHP. From that moment other apps in PHP stopped working (including HESK). He disabled the debugging but the damage was already dealt.

are some hidden options in IIS that could make this to happen?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Expert Comment

by:F Igor
ID: 34085780
Please Check or test if it's a PHP issue or a mysql connection issue:

Test a PHP page without db connections (for example, a phpinfo() page)
and compare with a simple page with db connecion and a simple query and data visualization.

IF only the db-connected page is slow, then you can check the host you are using to connect (prefer using the mysql IP if it's a DNS issue)
If all php pages are slow check the PHP.ini the configuration for "output_buffering"

Also ckeck the CPU usage during some page load  for the IIS (inetinfo) and Mysql processes
0
 

Author Comment

by:karelog
ID: 34085914
Hi fraigor, thanks for the reply.

The problem is for SOME applications.

We have about 10 PHP sites where in 3 of them PHP fails.
in 7 of the PHP app, all works perfect, db-connections (mysql and SQL Server).
in 3 of the PHP apps, nothing works.

you can try to load one of the 3 that fails:
http://www.liveprojects.cl/soporte1/ should load but it doesn't.

This is what that form should load:
http://146.155.105.169/soporte/
(this is a contingency that we applied in the meanwhile, it uses windows 2003 server)
0
 

Accepted Solution

by:
karelog earned 0 total points
ID: 34189123
I found the problem.

In some of the forms I had:

include "conectar.php"

and I had "conectar" in include path and at the same time in the specific application. This generated the error.

Thanks anyway!
0
 

Author Closing Comment

by:karelog
ID: 34221208
I solved the problem by myself
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question