Last Updated on 2 weeks by Sachin G
The post addresses the “No input file specified” error encountered after switching from SuPHP to FastCGI (fcgi) in cPanel/WHM environments. i am trying to verify the current PHP configuration using the rebuild_phpconf
command, checking file and directory permissions, and updating the .htaccess
file with specific rewrite rules. Implementing these steps effectively resolves the error, ensuring proper functionality of PHP applications under the FastCGI handler
I have recently got an issue after recompiling cPanel with module FastCGI, I want to change my server configuration from SuPHP to fcgi ( FastCGI). I had enabled fcgi on my server and I got an issue like the below.
"No Input File Specified"
(1) First I checked my rebuild phpconf information through the below command.
# /usr/local/cpanel/bin/rebuild_phpconf --current
that looked like the below output. Looks fcgi was enabled on the current configuration.
Available handlers: suphp dso fcgi cgi none DEFAULT PHP: 5 PHP4 SAPI: none PHP5 SAPI: fcgi SUEXEC: enabled RUID2: not installed
(2) Check permission and user permission issues on files and folders.
(3) At last I have checked my .htaccess file and added some lines in my site .htaccess file.
RewriteEngine on DirectoryIndex index.php RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond $1 !^(index\.php|robots\.txt)
Now my issue has been resolved through this method, maybe it will resolve your issue as well for this type of task.
I’m Sachin Gupta — a freelance IT support specialist and founder of Tech Transit. I’m certified in Linux, Ansible, OpenShift (Red Hat), cPanel, and ITIL, with over 15 years of hands-on experience. I create beginner-friendly Linux tutorials, help with Ansible automation, and offer IT support on platforms like Upwork, Freelancer, and PeoplePerHour. Follow Tech Transit for practical tips, hosting guides, and real-world Linux expertise!