Page 1 of 1

How to Use PHP 5.3

Posted: Tue Oct 28, 2014 2:32 am
by rainh
Hello

I want to use PHP 5.3. Can anyone please tell me how can I use that with my installation without any error.

Thanks

Re: How to Use PHP 5.3

Posted: Tue Oct 28, 2014 7:53 am
by Milka
You can downgrade php, but you'll probably have to fix some errors. It's not going to be a one-click solution. What OS are you using?

Re: How to Use PHP 5.3

Posted: Thu Oct 30, 2014 6:47 am
by rainh
Hello

I'm using cent os 6 64 bit minimal. Currently I applied below commands for downgrade and it seems it is working. Is this a correct method? Is there will be any error later?

service httpd stop
yum -y remove php*
yum -y install php php-bcmath php-cli php-common php-gd php-imap php-mbstring php-mcrypt php-mysql php-pdo php-soap php-tidy php-xml php-xmlrpc php-pecl-apc phpMyAdmin roundcubemail
mv -f /etc/php.ini.rpmsave /etc/php.ini
mv -f /etc/roundcubemail/db.inc.php.rpmsave /etc/roundcubemail/db.inc.php
mv -f /etc/roundcubemail/main.inc.php.rpmsave /etc/roundcubemail/main.inc.php
mv -f /etc/phpMyAdmin/config.inc.php.rpmsave /etc/phpMyAdmin/config.inc.php
mv -f /etc/httpd/conf.d/roundcubemail.conf.rpmsave /etc/httpd/conf.d/roundcubemail.conf
mv -f /etc/httpd/conf.d/phpMyAdmin.conf.rpmsave /etc/httpd/conf.d/phpMyAdmin.conf
service httpd start

Re: How to Use PHP 5.3

Posted: Thu Oct 30, 2014 7:13 am
by Milka
You said it seems to be working, no errors right now. So, good on you mate. If a vesta update breaks it (have you paid attention to paths where you installed to?) you'll have to fix it then.

Re: How to Use PHP 5.3

Posted: Fri Oct 31, 2014 11:01 am
by rainh
I don't know where it installed! Can I stop PHP update by vesta anyway?

Thanks

Re: How to Use PHP 5.3

Posted: Fri Oct 31, 2014 3:14 pm
by Milka

Code: Select all

find / -name "php"
will list files/folders related to your php installation. On a normal vesta machine that will be

Code: Select all

/usr/bin/php
/usr/lib64/php
/usr/local/vesta/src/deb/php
/usr/local/vesta/php
/usr/local/vesta/php/bin/php
/usr/local/vesta/php/lib/php
/usr/local/vesta/php/include/php
/usr/local/vesta/php/php
/usr/share/php
/var/lib/php
You can always choose what you update and what not, manually, with yum.

Re: How to Use PHP 5.3

Posted: Tue Nov 04, 2014 11:00 am
by rainh
What is the SSH command for manual updates?

Re: How to Use PHP 5.3

Posted: Tue Nov 04, 2014 12:40 pm
by Milka