Link to home
Start Free TrialLog in
Avatar of rtorresmtz
rtorresmtz

asked on

PHP is not working

I set up the Apache web server with the php4apache2.dll but when I ejecute a php file (phpinfo.php) is does display a web page is asked me if I want to open or save the file.

I believe I miss some configuration...the Apache is running OK

Regards,
Avatar of rtorresmtz
rtorresmtz

ASKER

Correction "when I ejecute a php file (phpinfo.php) ITdoes NOT display a web page IT asked me if I want to open or save the file.
Do you have these two lines in your httpd.conf?

LoadModule php4_module "c:/php/php4apache.dll"
AddType application/x-httpd-php .php

Obviously if your path is different for the first line, change it accordingly.
And restart apache.
You probably noticed this, but it should be:

LoadModule php4_module "c:/php/php4apache2.dll"
I already add this two lines you mentioned.

LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php

And also I add this line:
PHPIniDir "C:/php"
Correction: "add" "added"
Did you have php working before?
Is php4ts.dll in your system path(i.e. c:\windows\system32)?
Have you tried putting your php.ini in your c:\windows directory?
You can always try xampp-->http://www.apachefriends.org/en/xampp-windows.html
which is php/apache/mysql, and tons of other optional packages that are all in one easy installer.
Yes I have the php4ts.dll in the c:\windows\system32) and
 php.ini in the c:\windows directory?
ASKER CERTIFIED SOLUTION
Avatar of matt_mcswain
matt_mcswain

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I decide to uninstall every thing and I´m installing with the xammp you recommend..

Thanks
You chose the hardest for windows; the one I use as well when I'm using Windows.;)
Installing php with IIS is trivial; usually running the installer does it.
Installing php as a cgi with apache is easier because there are less dependencies.
But both are less secure.
Apache is the best web server in the world; it just doesn't always get along with Windows.

Good luck.
Matt I didn´t make it with the xammp but I install Apache, PHP and MySQL manully one by one and it appear working

Thank you very much for your help...