Quote:
Originally Posted by rubadub
404 error means page not found, not a php error! Maybe you need to check your httpd.conf (/etc/httpd/conf/httpd.conf) file. In there there'll be a line like this:
DocumentRoot "/var/www/html"
That tell's you where to put your files. However your problem might be an incomplete install of php? You'll need a line similar to this:
AddType application/x-httpd-php .php .phtml .html
to tell the server which files are sent to the php interpreter.
|
This is very right! you are confusing a server error with a php error, though, you could try a light http server as lighthttp is
if you don't want too much hassles with Apache.
1.) What do you need is checking whether the default Apache config is working for you.
In a browser of your choice:
http://127.0.0.1:[Apache port ie. 80] so
http://127.0.0.1:80 should show "Your Apache install is working" or so.
2.) Checking PHP is too simple.
Make an archive like this in your home using your editor of choice, for example
probe.php:
Code:
#!/usr/bin/env php
<?php
print "PHP is working!! \n"
?>
Then, from any terminal type:
Code:
chmod 755 probe.php
and then
If you see the message PHP is working!!
your problem is definitely Apache so you need to go 3
3.) Follow carefully the recommendations of
rubadub, but beware of complicating more the Apache setup. What you can do is checking firstly whether you have installed or not
mod_php
If both of them seem to be working, the Apache logs are the answer...
Regards.