[SOLVED] getting PHP 5 to work with Apache2
Moderator: General Moderators
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
That's even weirder as you have DocumentRoot index.php index.html ... which should load an index.php before any index.html
What does http://localhost/index.php show?
It's almost sounding like your DocumentRoot isn't where it's claiming to be as it can't find any of the .php files you are putting in there. In which case it might be worth creating say c:\www and editing httpd.conf to make that your DocumentRoot (just as a test)
What does http://localhost/index.php show?
It's almost sounding like your DocumentRoot isn't where it's claiming to be as it can't find any of the .php files you are putting in there. In which case it might be worth creating say c:\www and editing httpd.conf to make that your DocumentRoot (just as a test)
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
nope, still same results still the dreadfull 404 page
I don't believe the problem is in httpd.conf
but hey, I am new to this...
I still go to http://localhost/index.php right?
I don't believe the problem is in httpd.conf
but hey, I am new to this...
I still go to http://localhost/index.php right?
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
You'de get an error when starting apache if any of the modules failed to find/load any dependencies in the same way you had that mysql dll error previously.
I notice you have your ServerName set to php.myheritage.com, do you have an entry for it in c:\windows\system32\drivers\etc\hosts ?
Something like:
127.0.0.1 php.myheritage.com
If this is a local server then it might be better just to make ServerName localhost
I notice you have your ServerName set to php.myheritage.com, do you have an entry for it in c:\windows\system32\drivers\etc\hosts ?
Something like:
127.0.0.1 php.myheritage.com
If this is a local server then it might be better just to make ServerName localhost
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
Well, lets rule out some more bits 
If you open a command prompt at C:\Program Files\Apache Group\Apache2\bin and run 'apache -t' , it should report 'Syntax OK'
At least that will tell us the httpd.conf file is syntactically correct (which i suspect it is).
Also, if you change the DocumentRoot to another directory (one that exists), as you have Option Indexes set then going to http://localhost should show the directory.
If you open a command prompt at C:\Program Files\Apache Group\Apache2\bin and run 'apache -t' , it should report 'Syntax OK'
At least that will tell us the httpd.conf file is syntactically correct (which i suspect it is).
Also, if you change the DocumentRoot to another directory (one that exists), as you have Option Indexes set then going to http://localhost should show the directory.