Published on: October 4, 2014 by Felix
Sometimes you may come across the issue that the temporary URL not working for the PHP file. On servers running FastCGI as PHP handler, it is not possible to run PHP files via temporary url such as /index.php . But you will be able to view HTML files.
Before you proceed make sure the web hosting company allows the use of temporary url.
You can follow the below steps for working this around:
#!/bin/sh export PHP_FCGI_CHILDREN=1 export PHP_FCGI_MAX_REQUESTS=10 exec /usr/local/cpanel/cgi-sys/php5
2. Then add the following lines to the .htaccess file in user’s public_html/ directory :
AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php5.fcg
Category : Apache, Linux, Troubleshooting