• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Internal Server Error by using files with file extension .php5

Thomas Becker

Basic Pleskian
Hello,
when I create a simple php file with file extension .php5 and try to open it in a browser I'll get an internal server error.

Renaming the same file to info.php (former info.php5) everything is working as expected.

error_log:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Premature end of script headers: info.php5

Server is running CentOS 6.4, PHP 5.3 and Plesk 11.0.9 Update #55
Website is running as FastCGI

Any ideas?

Thanks for help.

Greets
Thomas
 
Last edited:
Do you have defined corresponding FCGIWrapper for .php5 extension in vhost config files?
 
Thanks, Igor.

I did it the following way.



1. Create a file called "vhost.conf" in the directory "/var/www/vhosts/example.com/conf/" and insert:

<IfModule mod_fcgid.c>
<Files ~ (\.php5)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php5
Options +ExecCGI
allow from all
</Files>
</IfModule>

2. Change owner and rights:

chmod 640 vhost.conf
chown root:apache vhost.conf

3. Reconfigure vhost:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com
or
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

4. Restart Apache
 
Last edited:
Back
Top