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
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

Link to comment
Share on other sites

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

Link to comment
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

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.