Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to Use PHP 5.3

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
rainh
Posts: 18
Joined: Tue Oct 28, 2014 2:24 am

How to Use PHP 5.3
  • Quote

Post by rainh » Tue Oct 28, 2014 2:32 am

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
Top

Milka
Posts: 137
Joined: Tue Feb 11, 2014 2:03 pm

Re: How to Use PHP 5.3
  • Quote

Post by Milka » Tue Oct 28, 2014 7:53 am

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?
Top

rainh
Posts: 18
Joined: Tue Oct 28, 2014 2:24 am

Re: How to Use PHP 5.3
  • Quote

Post by rainh » Thu Oct 30, 2014 6:47 am

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
Top

Milka
Posts: 137
Joined: Tue Feb 11, 2014 2:03 pm

Re: How to Use PHP 5.3
  • Quote

Post by Milka » Thu Oct 30, 2014 7:13 am

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.
Top

rainh
Posts: 18
Joined: Tue Oct 28, 2014 2:24 am

Re: How to Use PHP 5.3
  • Quote

Post by rainh » Fri Oct 31, 2014 11:01 am

I don't know where it installed! Can I stop PHP update by vesta anyway?

Thanks
Top

Milka
Posts: 137
Joined: Tue Feb 11, 2014 2:03 pm

Re: How to Use PHP 5.3
  • Quote

Post by Milka » Fri Oct 31, 2014 3:14 pm

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.
Top

rainh
Posts: 18
Joined: Tue Oct 28, 2014 2:24 am

Re: How to Use PHP 5.3
  • Quote

Post by rainh » Tue Nov 04, 2014 11:00 am

What is the SSH command for manual updates?
Top

Milka
Posts: 137
Joined: Tue Feb 11, 2014 2:03 pm

Re: How to Use PHP 5.3
  • Quote

Post by Milka » Tue Nov 04, 2014 12:40 pm

http://yum.baseurl.org/wiki/YumCommands
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password