What URL are you using? If you are using http://someServer/
and the document root doesn't contain an Index page (as specified on the DirectoryIndex
line of you httpd.conf) then that's the error you get. This would me that index.html would work, but index.php wouldn't. Does http://someServer/index.php
Check what your DirectoryIndex is set to. Try including index.php on that line if it's not there, and then restart Apache. Have you got php and cgi working elsewhere, or is this a problem with the entire server, not just this vhost? To get CGI scripts to work you'll either need to enable the CGI handler globally, or setup a cgi-bin ScriptAlias.