Temporary Url not working with FastCGI

Tags: AddHandlerfastcgiphp -fcgitemporary URL

Published on: October 4, 2014 by Felix

Temporary Url not working with FastCGI


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 http://SERVER_IP/~username/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:

  1.   In the user’s public_html/cgi-bin directory, create a file called php5.fcgi and give it permissions 755, and add the following content :




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

Get 24/7 expert server management

Category : Apache, Linux, Troubleshooting



Firaz has been in the Web Hosting industry since 2012. He is always fascinated in resolving complicated DNS, cPanel and other Web hosting issues. He loves to help newbies to climb the hill from a fresher to an experienced System admin. Movies and songs are his favourite passtime.

You may also read:


Add new commentSIGN IN

Let's Connect

Get new updates


$0.000 items