• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP update CGI Issue

CJZ

Basic Pleskian
I'm currently using Centos 5 with a working install of PHP 5.1 and Plesk works with CGI and FastCGI. When I run "yum update php" Php is marked to update to 5.3 from Atomic. However, once all the updates are finished, when the Plesk clients are set to run PHP as CGI or FastCGI, the server returns a 500 Internal Server Issue.

I'm wondering how Plesk handles the switching between mod_php, CGI and FastCGI when the setting is changed in the subscriptions. Also, how can I go about updating PHP and keeping this ability to run PHP as CGI.

Code:
yum update php
Updating:
 php               x86_64      5.3.6-3.el5.art                atomic      1.4 M
Installing for dependencies:
 libSM             x86_64      1.0.1-3.1                      base         28 k
 libXaw            x86_64      1.0.2-8.1                      base        329 k
 libXmu            x86_64      1.0.2-5                        base         63 k
 libXt             x86_64      1.0.2-3.2.el5                  base        181 k
 libedit           x86_64      3.0-2.20090923cvs.el5.art      atomic       81 k
 t1lib             x86_64      5.1.2-2.el5.art                atomic      208 k
Updating for dependencies:
 php-cli           x86_64      5.3.6-3.el5.art                atomic      2.6 M
 php-common        x86_64      5.3.6-3.el5.art                atomic      972 k
 php-gd            x86_64      5.3.6-3.el5.art                atomic      208 k
 php-imap          x86_64      5.3.6-3.el5.art                atomic       87 k
 php-mbstring      x86_64      5.3.6-3.el5.art                atomic      2.3 M
 php-mysql         x86_64      5.3.6-3.el5.art                atomic      158 k
 php-pdo           x86_64      5.3.6-3.el5.art                atomic      117 k
 php-xml           x86_64      5.3.6-3.el5.art                atomic      221 k

Transaction Summary
================================================================================
Install       6 Package(s)
Upgrade       9 Package(s)

Total download size: 8.8 M

Code:
#php -v
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:46)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.
 
Update:

After more testing, I have determined that the problem actually lies with updating httpd. Any help on this matter?
 
Yes. I followed the article and it fixed the issue. I wrote a script that I can run after every update that follows the commands given in the article.
 
Back
Top