Fairly consistent mod_fastcgi.so error that prevents Apache from starting

etcio

Member
Mar 7, 2013
6
0
1
cPanel Access Level
Root Administrator
Code:
httpd: Syntax error on line 39 of /usr/local/apache/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf/php.conf: Cannot load modules/mod_fastcgi.so into server: /usr/local/apache/modules/mod_fastcgi.so: cannot open shared object file: No such file or directory
For some reason, something is happening with my installation fairly regularly which prevents Apache from starting up. Using EasyApache to build using my own profile works, and everything loads fine, but within 2-3 days, I start having problems again, and an attempt at a restart produces that error. I just use EasyApache to rebuild it and it works fine, but I'm not sure what's causing the issue in the first place.

Any ideas? Thanks in advance!
 

es2alna

Well-Known Member
Mar 30, 2014
67
0
6
Egypt
cPanel Access Level
Root Administrator
Did you compiled mod_fastcgi manually into Apache?

Do you use mod_fastcgi or you use different handler? You can know this by executing this command:
Code:
/usr/local/cpanel/bin/rebuild_phpconf --current | grep PHP5 | awk {' print $3 '}
 

etcio

Member
Mar 7, 2013
6
0
1
cPanel Access Level
Root Administrator
Did you compiled mod_fastcgi manually into Apache?

Do you use mod_fastcgi or you use different handler? You can know this by executing this command:
Code:
/usr/local/cpanel/bin/rebuild_phpconf --current | grep PHP5 | awk {' print $3 '}
I get the response "fcgi" when I run that command.

And no, I did not compile it manually. I always use EasyApache to do it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

The error message you provided shows:

/usr/local/apache/modules/mod_fastcgi.so: cannot open shared object file
However, the actual file name should be:

Code:
/usr/local/apache/modules/mod_fcgid.so
Notice the difference in module names. Are you sure that you have not installed any custom Apache modules, or used any third-party applications that would modify the Apache configuration? If not, please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.