Jump to content

php not working on Apache


Recommended Posts

Hi I am a first timer. I am installing on a pc for test and evaluation. The apache monitor shows the apache and php loaded on the task bar. But when trying to process a php script returns cannot find or cannot stat on the error log.

I am running has XP professional Version 2002 service pack 3. I am installing Apache 2.2.10(win32) and PHP5.2.6. I have use the correct dll and set up all as the documentation,but cannot get tom work. I have spent the last two week-ends trawling through the Apache and php docs but I must be missing something ANY HELP please.

Link to comment
https://forums.phpfreaks.com/topic/130255-php-not-working-on-apache/
Share on other sites

Have you confirmed that Apache is working first? What happens when you enter the following in your browser's address bar -

 

http://localhost/

 

Create a php file called phpinfo.php with the following code in it and place it into your web document root folder -

 

<?php
phpinfo();
?>

Browse to this file using the following URL and tell us what you get -

 

http://localhost/phpinfo.php

Try using "WAMP" or "XAMPP"

You might need to uninstall Apache and PHP (or remove them) before installing one of those, so that you dont get confused later on.

 

They are much easier to install and use for newbies.

While downloading, use the installer bundle if they give a choice...

Start by googling for those two names.

 

HTH

Have you confirmed that Apache is working first? What happens when you enter the following in your browser's address bar -

 

http://localhost/

 

 

Create a php file called phpinfo.php with the following code in it and place it into your web document root folder -

 

<?php
phpinfo();
?>

Browse to this file using the following URL and tell us what you get -

 

http://localhost/phpinfo.php

localhost returns  the It works index page as it should

The phpinfo.php search returns page not found in the Apache error log its is listed as page not found or unable to stat. The page existsand is in the document root file. Does the php file need to be in any special format?

On the Apache monitor the Apache and PHP are both showing on the task bar.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.