Plesk 12.x / Linux :: PHP Support Only For FastCGI?
Apr 23, 2015
In my Plesk 12.0, I installed support por PHP 5.3, and 5.4. But when I go to configure my site, I only can select these versions if I put PHP like FastCGI:
But in "Apache Module" I only can select PHP 5.3.3:
My WebSite doesn't work with FastCGI, only with "Module Apache".
I setup PHP support to Run as FastCGi Application, and i setup the memory_limit=32M in DOMAIN/etc/php.ini, then i create a php program with ini_set('memory_limit','128M'), it does not according to my settings are limited. How can i limit it , only just use the disable_function = 'ini_set' ? or Was there other methods ? Because, When PHP runs as apache module , i can use the php_admin_value in vhost.conf to limit what i want , it does not limit everything like this (disable_function).
I've a new installation of Plesk 12 on a VPS (Ubuntu LTS12.04) and when FastCGI is selected it downloads the PHP files instead of parsing the PHP? Where to look config wise? I've checked php short tag options and they all seem fine.I've set up a test subscription to display the error here: URL....
I've been working on a project that I am trying to utilize some of the new functions from PHP 5.5 so I changed the PHP version from 5.3 to 5.5 on this domain, but I am getting a 500 error. I've found this kb: [URL] .... which is my exact issue, but the resolution doesn't work for me.
All of the permissions are set right, all of the modules are compiled and registered correctly, but I'm still getting a 500 error.
From error_log:
Code:
[Sun May 31 20:32:31 2015] [warn] [client] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Sun May 31 20:32:31 2015] [error] [client] Premature end of script headers: adduser-exec.php # /usr/local/psa/admin/bin/php_handlers_control --list :
I have this System Debain 7.x Whyzee, 64 Bit Version, 16 GB Ram with 8 x 3.2 GHZ. I have update plesk von version 11 to version 12 he say any failure in error.logs by costumer
Code: [Sat Jul 19 20:58:23 2014] [warn] [client xx.xx.xx.xx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Sat Jul 19 20:58:23 2014] [error] [client xx.xx.xx.xx] Premature end of script headers: index.php
I changed to a new server with plesk 12 and every php that worked with Plesk 11.5 and php 5.4 doesn't work in the new server with fstcgi and php 5.4. They run fine if I config subdomain with FastCgi php5.3 but don't with php 5.4.35. I get this error message in error_log of subdmain using this versión of php (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server. Premature end of script headers: test.php
there is no error in /var/log/httpd/suexec_log phpini seems OK.My system uses Centos 6.4 and
I have the following problem, the files and folders generated by PHP are hidden in FTP.
I can see in the Plesk file manager that users, permissions and groups are the same for all files and folders (those that can be seen and those that cannot be seen from FTP).
All the options in the server are set by default. It is a new installation of Plesk 12.0.18 #4 in CentOS 6.5 (Final).
104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Mon Jun 22 15:33:11 2015] [error] [client 176.10.112.11] Premature end of script headers: import_cop.php
and Apache Log
[Mon Jun 22 11:06:57 2015] [error] server reached MaxClients setting, consider raising the MaxClients setting [Mon Jun 22 15:46:17 2015] [error] (12)Cannot allocate memory: fork: Unable to fork new process PHP Warning: Module 'zip' already loaded in Unknown on line 0
How can I fix this problem? The Script is 100% i/O because it has worked onder PHP 5.2 and its comp. whit 5.4.
I have an issue with running of the php-scripts. It runs via Cron (as it consumes a lot of memory), after aprox. 10 minutes after the start-time of the script the following error appears in the error-log file (path - /var/www/vhosts/system/subdomain.domain.tld/logs/error_log)
[Tue Feb 17 19:46:57.003326 2015] [fcgid:warn] [pid 28629] (104)Connection reset by peer: [client XX.XXX.XXX.XXX:48450] mod_fcgid: error reading data from FastCGI server [Tue Feb 17 19:46:57.003368 2015] [core:error] [pid 28629] [client XX.XXX.XXX.XXX:48450] End of script output before headers: Name_of_the_script.php
For a very strange reason another PHP-script, that has the same code, but just runs less arrays, and therefore consumes less memory and can be run via browser - works perfectly from both browser and the cron. The php.ini for this domain set up correctly (see the attachment)...
[Mon Mar 23 20:53:14 2015] [warn] [client xxx.xxx.xxx.xxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Mon Mar 23 20:53:14 2015] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php
I'm trying to add multiple PHP version (current version installed: 5.5.13), using the official documentation. I always get 500 Internal Server Error after switching to the new version, with the following error_log content:
Code: [Sat Jun 07 00:49:35 2014] [warn] [client XXX.XXX.XXX.XXX] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Sat Jun 07 00:49:35 2014] [error] [client XXX.XXX.XXX.XXX] Premature end of script headers: index.php Here you can view phpinfo() obtained running php54-cgi index.php from the command line. Same script doesn't work as FastCGI.
I'm trying to add PHP 5.4.29. Here is how I compiled it:
Switching back to PHP 5.5.13 and the script works fine (a simple phpinfo() output).How can I try to understand/debug what's wrong with the installation?
I installed FastCGI and configured it via fcgiconfig.js using this command
cscript fcgiconfig.js -add -section:"PHP" -extension:php -path:"C:PHPphp-cgi.exe" It configured fcgiext.ini and added the .php extension to the sites and what not.
When accessing a php script, I get the following error though:
FastCGI Error
The FastCGI Handler was unable to process the request. Error Details:The FastCGI process exited unexpectedly Error Number: -2147467259 (0x80004005). Error Description: Unspecified error HTTP Error 500 - Server Error. Internet Information Services (IIS) I did not do anything special with the PHP. It is the zip 5.2.5 from the site. I configured php.ini and move it to c:/windows. I granted IUSR permission on php-cgi.exe
2001:8d8:90b:c900::2a:19d1 is the ipv6 from my server, and it appears there because of nginx working as reverse proxy.
As you can see, facebook can't get /hello.html (404 response), but I can get it from another server using curl (200 response). I tried disabling nginx and this is what I see now:
Still not able to get /hello.html. This is a problem for me because I can't share anything on facebook, since their bot can't find anything on my site.
We have many hundreds of domains on our Plesk 11.5 server (Linux) but many of them do not have SSL support enabled. Any script that would enable it for all domains and subdomains on our server, to save the tedious time of manually checking every domain?
A really nice feature has been brought to plesk with the native support for multiple PHP versions now.I tried it out, but there seems to be an error in the session.save_path of PHP 5.5.23 (the one I tested).sessions.save_path points to /var/lib/php/sessions but the default before seems to be /var/lib/php/session so the folder does not exist.For now I simply worked with a symlink to solve the problem:
cd /var/lib/php/ ln -s session sessions
Not sure if other PHP version or other OSes (besides PHP 5.5.23 and CentOS 6.6 are affected).
I've been trying to get this to work for almost 2 weeks now. Is there a tutorial around for Plesk 12, Postfix and WHMCS that works? WHMCS does not support Plesk, only Direct Admin and cPanel.I'm getting this in maillog:
ct 4 23:12:48 xxx postfix/smtpd[24500]: connect from mail-la0-f44.google.com[29.5.15.4] Oct 4 23:12:49 xxx postfix/smtpd[24500]: E83E57C9C: client=mail-la0-f44.google.com[29.5.15.4] Oct 4 23:12:50 xxx postfix/cleanup[24506]: E83E57C9C: message-id=<CAC9_f0rbT-Lb-v1NKhAr7+HAkg@mail.gmail.com> Oct 4 23:12:50 xxx /usr/lib/plesk-9.0/psa-pc-remote[4537]: handlers_stderr: SKIP Oct 4 23:12:50 xxx /usr/lib/plesk-9.0/psa-pc-remote[4537]: SKIP during call 'check-quota' handler Oct 4 23:12:50 xxx postfix/qmgr[7097]: E83E57C9C: from=<test_user@gmail.com>, size=1859, nrcpt=1 (queue active) Oct 4 23:12:50 xxx postfix-local[24509]: postfix-local: from=test_user@gmail.com, to=support@xxx.net, dirname=/var/qmail/mailnames Oct 4 23:12:50 xxx postfix/pipe[24508]: E83E57C9C: to=<support@xxx.net>, relay=plesk_virtual, delay=1, delays=0.89/0.01/0/0.16, dsn=2.0.0, status=sent (delivered via plesk_virtual service) Oct 4 23:12:50 xxx postfix/qmgr[7097]: E83E57C9C: removed
I have tried editing .qmail and I have also tried this tutorial -[URL] ..... but nothing is working for me at the moment.
Every time i use Dovecot secure IMAP server with Sieve support.I can not receive emails note. Upgraded from 11.5 to 12
Jun 18 08:03:36 CO6302 postfix/qmgr[1523]: 284FAA0E86: from=<my@gmail.com>, size=1943, nrcpt=1 (queue active) Jun 18 08:03:36 CO6302 postfix-local[2036]: postfix-local: from=my@gmail.com, to=the@domain.com, dirname=/var/qmail/mailnames Jun 18 08:03:36 CO6302 postfix/pipe[2035]: 284FAA0E86: to=<the@domain.com>, relay=plesk_virtual, delay=336, delays=335/0.01/0/0.19, dsn=4.3.0, status=deferred (temporary failure. Command output: lda: Error: user the@domain.com: Error reading configuration: Invalid settings: postmaster_address setting not given lda: Fatal: Internal error occurred. Refer to server log for more information. 4.2.1 Message can not be delivered at this time )
PHP-FPM support for nginx will not start when attempted in Tools & Settings > Services Management
Check error log:
#tail /var/log/php-fpm/error.log
ERROR: unable to bind listening socket for address '/var/www/vhosts/system/domain.tld/php-fpm.sock': Permission denied (13)
Possible problem:
SELinux may be preventing it. To test this do:
#setenforce 0
Now try and start PHP-FPM support again in Tools & Settings > Services Management
If that now starts you know what the problem is. Go to "Fix" below If it didnt work, you have a different issue. Turn SELinux back on while you figure it out:
#setenforce 1
Fix:
The following worked for me but i know very little about SELinux - corrections welcome:
## Turn SELinux to permissive # setenforce 0 ## In Plesk panel start PHP-FPM support in Tools & Settings > Services Management
Error: ifmng failed: sh: /sbin/ifconfig: No such file or directory /sbin/ifconfig 'eth0:1' '1.2.3.4' netmask '255.255.255.0' up exited with non-zero status 127
In Plesk 12.0.18 Update #14 when adding an IP with the Plesk Webinterface.