I've set up MySQL, Apache, and PHP4 on Windows 2000. Everything seems to be installed, and the first two are working. PHP is installed also, but Apache does not parse my PHP script. The test-file phpinfo.php produces the expected output, but none of my 'hello world' type efforts do.
Is the problem most likely in the Apache httpd.cof file, or is it maybe my script that is wrong?
Sorry if this is a too simple question!
Setting up PHP
Moderator: General Moderators
this might seem a bit stupid, but its always the easy things that get u
when u open up the page in the browser, are you opening it straight from explorer? if u are, it wont work. you should use the localhost ip address, of if you arent on the computer itself, the ip address of the server
localhost ip address: 127.0.0.1
when u view thru explorer, it doesnt activate apache, but when u view through the ip address, then it is activated
also, since the test file phpinfo.php is in your htdocs folder, you will need to say
http://127.0.0.1/phpinfo.php
to make sure that it goes to that page
hope this helps
when u open up the page in the browser, are you opening it straight from explorer? if u are, it wont work. you should use the localhost ip address, of if you arent on the computer itself, the ip address of the server
localhost ip address: 127.0.0.1
when u view thru explorer, it doesnt activate apache, but when u view through the ip address, then it is activated
also, since the test file phpinfo.php is in your htdocs folder, you will need to say
http://127.0.0.1/phpinfo.php
to make sure that it goes to that page
hope this helps
Many thanks all! I got it working with the following address -
http://127.0.0.1/hello.php
I also set the ServerName in the apache conf file to 127.0.0.1, which it seemed to like - don't know if it's strictly necessary......
Thanks again.
http://127.0.0.1/hello.php
I also set the ServerName in the apache conf file to 127.0.0.1, which it seemed to like - don't know if it's strictly necessary......
Thanks again.