• 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.

Two PHP versions linux Plesk HOWTO

Hi,

We're encountering an issue here. We found the log below in the suexec_log.

2013-07-17 14:50:23]: uid: (10116/DOMAINUSER) gid: (507/507) cmd: .phpwrapper

Apache error log

[Wed Jul 17 13:59:40 2013] [error] [client 118.96.122.153] File does not exist: /var/www/vhosts/DOMAINNAME.com/httpdocs/favicon.ico
[Wed Jul 17 14:10:18 2013] [warn] [client 118.96.122.153] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Wed Jul 17 14:10:18 2013] [error] [client 118.96.122.153] Premature end of script headers: index.php

ll -a /var/www/vhosts/DOMAINNAME/
drwxr-xr-x. 21 root root 4096 Jul 15 22:45 .
drwxr-xr-x. 182 root root 12288 Jul 17 12:30 ..
drwxr-x---. 5 DOMAINUSER psaserv 4096 Jul 15 22:45 anon_ftp
drwxr-xr-x. 2 root root 4096 Jul 15 22:45 bin
drwxr-x---. 4 DOMAINUSER psaserv 4096 Jul 17 13:03 cgi-bin
drwxr-x---. 2 root psaserv 4096 Jul 17 14:28 conf
drwxr-xr-x. 2 root root 4096 Jul 15 22:45 dev
drwxr-xr-x. 2 root psaserv 4096 Jul 15 22:46 error_docs
drwxr-xr-x. 2 root root 4096 Jul 15 22:45 etc
drwxr-x---. 11 DOMAINUSER psaserv 4096 Jul 17 13:46 httpdocs
drwxr-x---. 7 DOMAINUSER psaserv 4096 Jul 15 22:46 httpsdocs
drwxr-xr-x. 2 root root 4096 Jul 15 22:45 lib
drwxr-xr-x. 2 root root 4096 Jul 15 22:45 lib64
drwxr-x---. 2 root psaserv 4096 Jul 17 13:43 pd
drwx------. 2 DOMAINUSER root 4096 Jul 15 22:46 private
dr-xr-x---. 7 root psaserv 4096 Jul 15 22:45 statistics
drwxr-xr-x. 2 root psaserv 4096 Jul 15 22:45 subdomains
drwxrwxrwt. 2 root root 4096 Jul 15 22:45 tmp
drwxr-xr-x. 4 root root 4096 Jul 15 22:45 usr
drwxr-xr-x. 3 root root 4096 Jul 15 22:45 var
drwxr-xr-x. 2 root psaserv 4096 Jul 15 22:45 web_users

ll -a /var/www/vhosts/DOMAINNAME/cgi-bin/
drwxr-x---. 4 DOMAINUSER psaserv 4096 Jul 17 13:03 .
drwxr-xr-x. 21 root root 4096 Jul 15 22:45 ..
d--x-----x. 2 DOMAINUSER psacln 4096 Jul 17 13:04 .cgi_wrapper
drwxr-xr-x. 2 DOMAINUSER psacln 4096 Oct 24 2012 test

ll -a /var/www/vhosts/DOMAINNAME/cgi-bin/.cgi_wrapper/
d--x-----x. 2 DOMAINUSER psacln 4096 Jul 17 13:04 .
drwxr-x---. 4 DOMAINUSER psaserv 4096 Jul 17 13:03 ..
-r-x------. 1 DOMAINUSER psacln 168 Jul 17 13:04 .phpwrapper

cat /var/www/vhosts/DOMAINNAME/cgi-bin/.cgi_wrapper/.phpwrapper
#!/bin/sh
export PHPRC=/var/www/vhosts/DOMAINNAME.com/etc/
export PHP_FCGI_CHILDREN=4
export PHP_FCGI_MAX_REQUESTS=1000
exec /usr/local/php52-cgi/bin/php-cgi

cat /var/www/vhosts/DOMAINNAME/conf/vhost.conf
<Directory /var/www/vhosts/DOMAINNAME.com/httpdocs>
RemoveHandler fcgid-script
<IfModule mod_fcgid.c>
AddHandler fcgid-script .php
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/vhosts/DOMAINNAME.com/cgi-bin/.cgi_wrapper/.phpwrapper .php
Options +ExecCGI
allow from all
</Files>
</IfModule>
</Directory>

We have double checked everything (configuration,permission and ownership), they all look correct.

Please help...
 
Back
Top