• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

PHP 5.1.6 to 5.3.6 CentOS 5.6 Need Help.

T

Trevor L

Guest
Hi guys,

I want to upgrade the PHP version.

My Server info is as follows:
Server: CentOS release 5.6 (Final)

Current PHP Version: PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:46)
Zend Engine v2.1.0 with ionCube PHP Loader v4.0.7

Linux 2.6.18-238.e15 x86_64 GNU/Li

Parallels Plesk Panel 10.2

I just had this server setup and want to upgrade the PHP version myself yet after reading many forms about php53 name instead of PHP errors I decided to make a post. I have SSH root access on this dedicated server and since it's a clean install if something does end up happening at least I have no websites connected to it right now.

Can someone let me know the SSH commands I'll have to do so that I can upgrade to the new PHP version or some more forms to read that will help me with doing this? If you need more info let me know and I'll post it.
 
PHP 5.1.6 to 5.3.3 CentOS 5.6 Another Option?

I notice that PHP 5.3.3 is already in CentOS 5.6 yet I have to update to it some how. Maybe this is the best way to go. Does it screw up plesk to do the update? Anyone know the command I should do to update to PHP 5.3.3.

Here is some more data from my server that may help.

Command: yum list php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.easynews.com
* extras: mirror.san.fastserv.com
* updates: mirror.stanford.edu
Installed Packages
php.x86_64 5.1.6-27.el5_5.3 installed
php-cli.x86_64 5.1.6-27.el5_5.3 installed
php-common.x86_64 5.1.6-27.el5_5.3 installed
php-gd.x86_64 5.1.6-27.el5_5.3 installed
php-imap.x86_64 5.1.6-27.el5_5.3 installed
php-mbstring.x86_64 5.1.6-27.el5_5.3 installed
php-mysql.x86_64 5.1.6-27.el5_5.3 installed
php-pdo.x86_64 5.1.6-27.el5_5.3 installed
php-xml.x86_64 5.1.6-27.el5_5.3 installed
php5-ioncube-loader.x86_64 4.0.7-11030112 installed
Available Packages
php-bcmath.x86_64 5.1.6-27.el5_5.3 base
php-dba.x86_64 5.1.6-27.el5_5.3 base
php-dbase.x86_64 5.1.6-15.el5.centos.1 extras
php-devel.x86_64 5.1.6-27.el5_5.3 base
php-ldap.x86_64 5.1.6-27.el5_5.3 base
php-mcrypt.x86_64 5.1.6-15.el5.centos.1 extras
php-mhash.x86_64 5.1.6-15.el5.centos.1 extras
php-mssql.x86_64 5.1.6-15.el5.centos.1 extras
php-ncurses.x86_64 5.1.6-27.el5_5.3 base
php-odbc.x86_64 5.1.6-27.el5_5.3 base
php-pear.noarch 1:1.4.9-6.el5 base
php-pear-Auth-SASL.noarch 1.0.2-4.el5.centos extras
php-pear-DB.noarch 1.7.13-1.el5.centos extras
php-pear-Date.noarch 1.4.7-2.el5.centos extras
php-pear-File.noarch 1.2.2-1.el5.centos extras
php-pear-HTTP-Request.noarch 1.4.2-1.el5.centos extras
php-pear-Log.noarch 1.9.13-1.el5.centos extras
php-pear-MDB2.noarch 2.4.1-2.el5.centos extras
php-pear-MDB2-Driver-mysql.noarch 1.4.1-3.el5.centos extras
php-pear-Mail.noarch 1.1.14-1.el5.centos extras
php-pear-Mail-Mime.noarch 1.4.0-1.el5.centos extras
php-pear-Net-SMTP.noarch 1.2.10-1.el5.centos extras
php-pear-Net-Sieve.noarch 1.1.5-2.el5.centos extras
php-pear-Net-Socket.noarch 1.0.8-1.el5.centos extras
php-pear-Net-URL.noarch 1.0.15-1.el5.centos extras
php-pecl-Fileinfo.x86_64 1.0.4-3.el5.centos extras
php-pecl-memcache.x86_64 2.2.3-1.el5_2 extras
php-pgsql.x86_64 5.1.6-27.el5_5.3 base
php-readline.x86_64 5.1.6-15.el5.centos.1 extras
php-snmp.x86_64 5.1.6-27.el5_5.3 base
php-soap.x86_64 5.1.6-27.el5_5.3 base
php-tidy.x86_64 5.1.6-15.el5.centos.1 extras
php-xmlrpc.x86_64 5.1.6-27.el5_5.3 base
php53.x86_64 5.3.3-1.el5_6.1 updates
php53-bcmath.x86_64 5.3.3-1.el5_6.1 updates
php53-cli.x86_64 5.3.3-1.el5_6.1 updates
php53-common.x86_64 5.3.3-1.el5_6.1 updates
php53-dba.x86_64 5.3.3-1.el5_6.1 updates
php53-devel.x86_64 5.3.3-1.el5_6.1 updates
php53-gd.x86_64 5.3.3-1.el5_6.1 updates
php53-imap.x86_64 5.3.3-1.el5_6.1 updates
php53-intl.x86_64 5.3.3-1.el5_6.1 updates
php53-ldap.x86_64 5.3.3-1.el5_6.1 updates
php53-mbstring.x86_64 5.3.3-1.el5_6.1 updates
php53-mysql.x86_64 5.3.3-1.el5_6.1 updates
php53-odbc.x86_64 5.3.3-1.el5_6.1 updates
php53-pdo.x86_64 5.3.3-1.el5_6.1 updates
php53-pgsql.x86_64 5.3.3-1.el5_6.1 updates
php53-process.x86_64 5.3.3-1.el5_6.1 updates
php53-pspell.x86_64 5.3.3-1.el5_6.1 updates
php53-snmp.x86_64 5.3.3-1.el5_6.1 updates
php53-soap.x86_64 5.3.3-1.el5_6.1 updates
php53-xml.x86_64 5.3.3-1.el5_6.1 updates
php53-xmlrpc.x86_64 5.3.3-1.el5_6.1 updates
 
Hi, did you get PHP 5.3 installed for plesk 10?

I can see losts of people having problems but no solution

cheers
 
Hi Calit,

Yes I ended up getting it all install.

How they Updated the PHP version on the server.
php -v
yum search php
yum update php
cd yum.reposd
cd /etc/yum.repos.d/
ls
cat /etc/redhat-release
less CentOS-Base.repo
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
cd /etc/yum.repos.d/
ls
yum search php
yum update php
php -v
history
cd /etc/yum.repos.d/
ls -la
cat atomic.repo
yum check-update
yum update php
rpm -qa |grep -i mysql
yum update php --exclude=mysql*
yum update php --exclude="mysql*"
yum update php
cp /etc/my.cnf /root
cd ~
mysqldump -uadmin -p'cat /etc/psa/.psa.shadow ' > mysql.backup.sql
gzip mysql.backup.sql
ls -la
mysql -uadmin -p'cat /etc/psa/.psa.shadow '
yum update mysql
php --version
rpm -qi mysql-server
history
mysql -unagios
php -i
php -i |grep -i mysql
php -i |grep -i soap
yum search soap
yum install php-soap
yum search zlib
yum search magick
cd /var/www/vhosts
ls -la
cd DOMAIN.com/
ls -al
cd httpdocs/
ls -la
vim php.php
ls -la
pwd
chown DOMAIN:psacln php.php
ls -la
ifconfig -a
ls -la
cp php.php /var/www/vhosts/default/htpdocs/
cd /var/www/vhosts/default
ls -al
cd /var/log/
ls -la
cd httpd
ls -la
tail -f error_log
vim /var/www/vhosts/default/htdocs/php.php
service httpd reload
yum search guard
yum install php-zend-guard-loader
service httpd reload
yum search gd2
pecl search gd2
yum search pecl
locate pecl
yum provides "*/pecl"
yum install php-pear
pecl |less
pecl search gd2
channel-update pecl.php.net
yum search mbstring
yum install php53-mbstring
yum install php-mbstring
yum search Magick
pecl search Magick
pecl install imagick
yum install gcc
pecl install imagick
yum install ImageMagick-devel -y
pecl install imagick
vim /etc/php.d/php.ini
service httpd reload
history
exit

Fixing Zend Guard Loader
php -v
cp -par /usr/lib64/php/zend/ZendGuardLoader.so /usr/lib64/php/modules/
updatedb
ls /usr/lib64/php/modules/
vi /etc/php.d/zendguard.ini
php -v
vi /etc/php.d/zendguard.ini
php -v
vi /etc/php.ini
php -v
vi /etc/php.ini
php -v
exit



That was all the command history. As you can see PHP was upgraded using the Atomic repository. mySQL was updated, Install SOAP, zlib, image magic, gd2, php-pear, mbstring, Zend Guard Loader.

If you upgrading it goes smoothly enough.

After I ended up with:
[root@~]# rpm -qa |grep php
php5-ioncube-loader-4.0.7-11030112
php-common-5.3.6-3.el5.art
php-pdo-5.3.6-3.el5.art
php-mysql-5.3.6-3.el5.art
php-gd-5.3.6-3.el5.art
php-soap-5.3.6-3.el5.art
php-devel-5.3.6-3.el5.art
psa-php5-configurator-1.6.1-cos5.build1011110330.18
php-xml-5.3.6-3.el5.art
php-5.3.6-3.el5.art
php-imap-5.3.6-3.el5.art
php-zend-guard-loader-5.5.0-2.el5.art
php-mbstring-5.3.6-3.el5.art
php-cli-5.3.6-3.el5.art
php-mbstring-5.3.6-3.el5.art
php-soap-5.3.6-3.el5.art
php-pear-1.7.2-2.el5.art
 
Back
Top