Quantcast
Channel: Can't execute index.php in root folder when PHP is installed as CGI binary - Server Fault
Viewing all articles
Browse latest Browse all 3

Can't execute index.php in root folder when PHP is installed as CGI binary

$
0
0

I'm trying to make a website on my school's server, but they have PHP installed as CGI, so .php files can only run in the cgi-bin folder.
This is somewhat problematic if I want my index to be a .php file and not a .html, since it needs to be outside of the cgi-bin folder and in the root WWW folder.

Furthermore, it's an apache server, so I tried editing my .htaccess file only to realize i don't know where the php-cgi binary is (this is my school's server, after all, and I don't have permissions just to explore).

Is there any other way of getting the .php index file which is outside of the cgi-bin folder to work without having to do something ugly like make an index.html file in the root directory which redirects to a .php file within the cgi-bin folder?


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>