If you install ISPConfig 3 on a Ubuntu Server using Falko Timme tutorial from here and you use PHP-FPM with Apache you may get a “ERROR 500 – Internal Server Error!” message.
Error message :
ERROR 500 - Internal Server Error!
The following error occurred:
The requested URL caused an internal server error.
If you get this message repeatedly please contact the webmaster.
To resolve this edit :
etc/apache2/mods-available/fcgid.conf
and add or edit the line “MaxRequestLen 15728640″ to set the Request Limit to 15MB. The resulting file should contain these settings:
AddHandler fcgid-script .fcgi FcgidConnectTimeout 20 MaxRequestLen 15728640
Warning : this will limit your upload file size to 15M.
Save the changes and restart apache:
/etc/init.d/apache2 restart
16 comments
1 ping
Skip to comment form ↓
Levente
November 17, 2012 at 3:37 pm (UTC 2) Link to this comment
This was a huge help! Thank you very much!
chaly
May 16, 2013 at 12:02 pm (UTC 2) Link to this comment
Thank you very much, problem solved 🙂
Glenn Apolinario
July 23, 2013 at 11:17 am (UTC 2) Link to this comment
In CesOS, i guess will also apply with Redhat/ RPM based systems
/etc/httpd/conf.d/fcgid.conf
Tomek
July 25, 2013 at 12:22 pm (UTC 2) Link to this comment
Thank you very much. It helps me a lot 🙂
Alex
September 2, 2013 at 12:24 pm (UTC 2) Link to this comment
In modern ISPconfig installations this value of MaxRequestLen is already set.
I got this error when I globally changed GID for all my site content including ISPcongig. (It was the simplest way to provide access for a group of developers.) ISPconfig stopped working with “500 Internal server error”.
At installation, ISPconfig forms the following structure in the www root:
/var/www/php-fcgi-scripts/apps/*.php-fcgi-starter
The directory apps/ and the file *.php-fcgi-starter should have UID:GID = ispapps:ispapps
/var/www/php-fcgi-script/ispconfig/*.php-pcgi-starter
The directory ispconfig/ and the file *.php-fcgi-starter should have UID:GID = ispconfig:ispconfig
When I restored proper GIDs, ISPconfig resumed working.
The error was logged in /var/log/apache2/suexec.log
Alex
September 2, 2013 at 12:43 pm (UTC 2) Link to this comment
Additionally, rwxrwxr-x flags are not permitted: flags for this directories and files should be rwxr-xr-x, i.e., no group and other write flags are permitted
Yarik
June 27, 2014 at 2:22 pm (UTC 2) Link to this comment
thank you!
byron
March 6, 2014 at 6:55 pm (UTC 2) Link to this comment
I just want to say a huge thanx
also for httpd use this path
vi /etc/httpd/conf.d/fcgid.conf
Mark
March 26, 2014 at 2:31 am (UTC 2) Link to this comment
Thanks huge help.
Simone Freelance
May 19, 2014 at 5:56 pm (UTC 2) Link to this comment
Thank you very much! I’m understanding how to fix the little errors I’m having in the new VPS, thanks again!
Bogdan
October 4, 2014 at 6:15 pm (UTC 2) Link to this comment
Sorry but it wasn’t a fix for me. In addition I gFastCGI: failed to connect to server “/var/www/clients
FastCGI: incomplete headers (0 bytes) received from server “/var/www/clients/
Thierry
December 16, 2014 at 1:56 pm (UTC 2) Link to this comment
Sorry, this wasn’t a fix for me neither.
I’ m still looking for the reason of that 500 error.
Any other tip or a link toward complete setup checklist would be appreciated.
Thank you.
Thierry
December 18, 2014 at 9:14 pm (UTC 2) Link to this comment
Found another solution (based on almost the same Falko install tutorial), and same config except Ubuntu Version: 14.04 “Trusty Tahr” LTS.
When I set a site with PHP-FPM in IspConfig, it writes following lines in its sites-enabled vhost :
Alias /php5-fcgi ALIAS_PATH&NAME
FastCgiExternalServer ALIAS_PATH&NAME -idle-timeout 300 -host 127.0.0.1:9016 -pass-header Authorization
I had to change
-host 127.0.0.1:9016
to-socket /var/run/php5-fpm.sock
and it works. tested for several sites.Just don’t know where IspConfig takes the wrong information.
Jon
April 8, 2015 at 4:31 pm (UTC 2) Link to this comment
Still a god send after all these years thanks so much
Best Regards…
Curtis Maurand
December 1, 2015 at 11:56 pm (UTC 2) Link to this comment
I also had the problem with Joomla on a ISPConfig machine. I ended up having to remove the php5-xcache module. I tried the above mentioned fix and while I left it in there, that didn’t fix the problem. Just thought you should know.
Bogdan
December 2, 2015 at 9:25 am (UTC 2) Link to this comment
My IPSConfig installation was without XCache. To disable XCache you don’t have to uninstall it, just edit /etc/php5/mods-available/xcache.ini and set
xcache.size = 0
.For the installation below, /etc/php5/fpm/conf.d/20-xcache.ini is a symlink to /etc/php5/mods-available/xcache.ini.
On another ISPConfig 3.0.5.4p8, i have PHP 5.5.9, XCache v3.1.0 and UpdraftPlus – Backup/Restore plugin (version 1.11.18is) is not working.
Remove ISPConfig maximum upload size of 2M for Wordpress » EVILBOX
June 5, 2013 at 8:32 pm (UTC 2) Link to this comment
[…] see this post if you are running PHP-FPM which may also limit […]