Plesk 12.x / Linux :: PHP 5.3 Run As FastCGi Application
Nov 13, 2014
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).
whenever one of my customers tries to install an application from the application installer, they get an error that looks like this.
Error: Installation of WordPress at http://*******.com/wordpress failed. Non-zero exit status returned by script. Output stream: 'PHP Warning: mysql_connect(): Access denied for user 'ndari_wordpres_7'@'aeris.jdrepo.com' (using password: YES) in /opt/psa/var/apspackages/apscatalogSTqEEM.zip7b3ca133-9714-5d/cache/scripts/db-util.php on line 66 '.
Error stream: 'PHP Warning: mysql_connect(): Access denied for user 'ndari_wordpres_7'@'aeris.jdrepo.com' (using password: YES) in /opt/psa/var/apspackages/apscatalogSTqEEM.zip7b3ca133-9714-5d/cache/scripts/db-util.php on line 66 '.Click to expand...
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....
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'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.
When I try to install Magento 1.9.1.1 I get the error message;Error: Installation of magento at http://mydomain.com/ failed. Non-zero exit status returned by script.Can't seem to get any more information into what might be causing this issue...
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?
to repair the databases. Worked, but give me the error
"Table 'aps_resource' doesn't exist"
One more time, i recover this table from the newest backup existing. But now, give the error " Can not find registry resource for Application ID" for one domain - I have 3 domains, 2 are working, one not.
I have installed the Wordpress application. The wordpress url is "server.com/wordpress", but I want to change it to something like "server.com/myblog".
In Plesk, the installation path cannot be changed (at least, it is not under "Change Settings").
Changing the Wordpress installation itself is not that difficult (renaming the folder in httpdocs and changing the siteurl and home parameter in the database), however, in Plesk still the old installation path is shown, and the Plesk interface to Wordpress obviously does not work any more.
How can I change the Wordpress installation path in Plesk?
Version Parallels Plesk v12.0.18_build1200140606.15 os_Ubuntu 12.04 OS Ubuntu 12.04.5 LTS
Wordpress is becoming more and more integrated with Plesk which makes it quite easy to setup a new domain for someone and install Wordpress so he can start.
Often this Wordpress site has to be developed and a better looking site is already available.
By default Wordpress installs in a subfolder /wordpress (I know you can change it by choosing "custom install"). After a while that website is ready for publishing.
To move that website I will have to move the running site to a subfolder and then move the content of /wordpress to the root. This is not sufficient. I then have to do a search and replace on the /wordpress and wordpress/ and replace it with /
No problem there....
But then I have lost Wordpress from the Plesk interface.....
What's the most elegant way to move a Plesk managed Wordpress site?
I don't mind if it stays in its folder (maybe preferrable?), as long as the user doesn't see that "/wordpress" in its URL.
Migrating accounts to a fresh Plesk 12 installation task fails with the following error: Perhaps /usr/local/psa/admin/bin/deployer application missing, has incorrect permissions or unexpectedly terminated
Fresh install of Plesk 12.0.18 MU42 on CentOS 7.1. Tried to reinstall, same problem.
Joomla now requires PHP 5.3.10 or above but PHP 5.3.3 is installed. I rely almost exclusively on Plesk to keep the server components up to date and now I can't update my Joomla websites. I tend to avoid working at the command prompt, which is why I lease Plesk. I see that Plesk supports dual (or multiple) PHP versions, but the panel doesn't seem to deploy other versions. Does Parallels plan to allow customers to install multiple versions of PHP from the control panel so that PHP won' break legacy software but the newer apps will be able to run also?
(IMHO a better solution would have been for PHP 5.4 to be fully backward compatible)
We are running the latest Plesk 12 under CentOS 7.
While I can see the App Owncloud as Admin in the Application Vault my users cannot see that particular app in their Application pool. They can see all other apps though. Just not Owncloud.
All resellers and customers are allowed to install everything from the pool and i selected Owncloud in the Vault already and "made it available" .. Though it is not shown.