logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Php file will not load in browser
Author
tvette



Joined: 12 Jul 2008
Posts: 7

PostPosted: Sat 19 Jul '08 20:16    Post subject: Php file will not load in browser Reply with quote

I've done the following
1)loaded php to conf and apache is running;
2.) added AddType application/x-http-php .php to conf;
3.) added test.php to htdocs;

Apache is listening to port 8081 on local c drive

Can't load test.php in browser

Below is view source

<p id="errorExplanation">This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.</p>

All help would be greatly appreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 19 Jul '08 23:22    Post subject: Reply with quote

Please read Basic PHP Troubleshooting

if you stil have a question post again.
Back to top
tvette



Joined: 12 Jul 2008
Posts: 7

PostPosted: Sun 20 Jul '08 0:01    Post subject: Reply with quote

James thanks for your reply.

attempting to load http://127.0.0.1:8081/phpinfo.php with the following script:

<?php
phpinfo();
?>

returns:

<p id="errorExplanation">This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.</p>

fyi:
1. windows xp;
2. i added to control panel/system/advaced/enviroment variables: c:\php5 to 'PATH', and new "PHPRC' with a value of c:\php5;
3. http://127.0.0.1:8081 returns 'It Works'
4. Copied and renamed 'php.ini-recommended' as php.ini in c:\php5

not sure what i'm doing wrong?
Back to top
tvette



Joined: 12 Jul 2008
Posts: 7

PostPosted: Mon 21 Jul '08 0:41    Post subject: Reply with quote

I think I may have solved. I added " " around file name("phpinfo.php"), which allowed the file to contain only .php extension. The file then loaded in browser window.
Back to top


Reply to topic   Topic: Php file will not load in browser View previous topic :: View next topic
Post new topic   Forum Index -> Other Software