I changed index.html to index.php and now the page is not loading!
He gives me the following message:
The requested URL / cgi -sys / php-cgiwrap / gcadmin / php5.cgi / projects / globalcolleage / index.php was not found on this server.
Any suggestions?
(I am using WAMP)
I think it has something to do with this hthaccess file:
IndexIgnore *
DirectoryIndex index.html index.HTML index.shtml index.cgi index.php index.php3 index.phtml index.htm home.html welcome.html
Action application/x-pair-sphp5 /cgi-sys/php-cgiwrap/gcadmin/php5.cgi
AddType application/x-pair-sphp5 .php
(the file exist: D:\wamp\www\projects\globalcolleage\index.php)
a source to share
"Not found on this server" usually indicates that you have an error in your URL. Apache does not find the requested file. Check your url for typos and check your name.
Then try a php file that is not an index to see if that works. If normal files work, but directory indexes don't work, then check your httpd.conf for the line like this:
DirectoryIndex index.html index.php
This tells apache to use index.php for the directory index if index.html is not found.
My bet is a typo in the url as you are getting a file not found error.
Edit:
Since deleting the .htaccess file fixes the problem, I assume the Action directive was not configured correctly.
http://httpd.apache.org/docs/2.0/mod/mod_actions.html
The Action directive sets up a program to handle requests for a specific file type. This is not needed with php in the ready configuration. You can use php as a cgi binary in this way, but it is more complicated than using the apache module.
a source to share