• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

making mod_fcgi working

fabrizioi

Basic Pleskian
Hi to all,

I'm on plesk 8.6 on centos5.

I would like to run php as fastcgi.

I have set on flag in domain setup in plesk panel for:

fastcgi supports
cgi support
php (safe mode off)

File permission are no greater than 666
Folder permission are all 755

in vhsot.conf I have add

<IfModule mod_fcgid.c>
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /usr/bin/php-cgi .php
Options +FollowSymLinks +ExecCGI
allow from all
</Files>
</IfModule>

I receive error 500 if I call any page of the domain.

In the log error I have

Premature end of script


Any Help ? to get this right?

PS:
If I disable fastcgi/cgi support from plesk panel, php loaded as fastcgi but with apache user instead of domain user
 
Hi,

Thanks for the reply.

suPHP is one of the solutions.

But I have tested plesk 9.3 and mod_fcgid allow me to run php with the user domain right.

I prefer to walk this way. Mod_fcgid is integrated with plesk and it seems that we can have more perfomance and stabilty.

Also I can choose from WebHostingSetup three ways to run php. (like windows plesk 8.6)

I 'm going to upgrade to 9.3.

I'm not able to understand why I'm not able to make mod_fcgid working on plesk 8.6. Same functionality are present in windows plesk 8.6.

I haven't found officialy documents from parallels to do this, so maybe they prefer that we upgrade to plesk 9 instead of release some patch to do this.

Anyway thanks for your feedback.

Bye
 
Did you get mod_fcgid to work with plesk 9.3 without the use of suPHP. I am testing it but so far no luck. I still can not use php values in my vhost.conf when I use fastcgi.

I use plesk 9.3
 
Hi,

Yes, the managment of the module is inside the plesk cp. So it work. I haven't try to use additional directive in the vhost.conf with mod_fcgid because I use one php configuration for all the vhosts.

May be is not allowed or maybe is batter to have a dedicated php.ini for domains, I don't know this details sorry.

There is no need of suPHP when you choose mod_fcgid because this module is executed within the suexec module.

I can tell you that in 9.3 the mod_fcgid work, and work also with the mod_rewrite.

Hope this help.

Bye
 
Back
Top