when I type http://localhost/phpinfo.php, I get internet error 404.
I run windows 98
apache 1.3.27( I think)
Apache runs fine.
I have uninstalled and installed php again, not helping.
I am including my httpd file here
when I type http://localhost/phpinfo.php, I get internet error 404.
I run windows 98
apache 1.3.27( I think)
Apache runs fine.
I have uninstalled and installed php again, not helping.
I am including my httpd file here
Ok... for one, we're not gonna be able to see the page you're lookin at unless you give us either your IP or the hostname.
Other than that, are you sure apache is running ok? can you telnet to port 80?
alright piersk, the php and the apache are on my computer at home. They are not being hosted. The apache is running fine. There is no error message in the apache's error log.
Hi,
did you download and install the installer version or the ZIP package of PHP ?
Thomas
I have the installer version, but I did not install it since I wanted to install the .zip binary file manually , so I can at least understand how the stuff works. Also, because of all the dll files that I might eventually need .
here are a few observations on your httpd.conf settings .. there might be more I have missed ..
suggestion .. bound your changes to httpd.conf with commented lines like this so changes to default httpd.conf can be viewed easily .. might be better to start with a fresh httpd.conf file ..
see your line 883 and 826 (which are commented out) .. choose one of the below (for PHP4 or PHP5)
LoadModule php4_module "c:/php/sapi/php4apache.dll"
AddType application/x-httpd-php .php .php3 .phtml
LoadModule php5_module "c:/php/php5apache.dll"
AddType application/x-httpd-php .php .php3 .phtml
[note: different apache.dll's are used if you progress to using Apache 2]
line 151 insert
Listen 127.0.0.1:80
line 301
DocumentRoot "C:/php/"
change to
DocumentRoot = "C:/Program Files/Apache Group/Apache/htdocs"
line 329
<Directory "C:/php/">
change to
<Directory "C:/Program Files/Apache Group/Apache/htdocs">
can't see DirectoryIndex
insert
DirectoryIndex index.html index.php
stop and restart server and check phpinfo.php again .. you might have to edit php.ini too.
Additionally, with apache 1.3.x you might need
AddModule mod_php4.c
somewhere below LoadModule ....
Thomas