How to update PHP in Centos Web Panel
To update PHP in CentOS Web Panel
PHP is a programming language designed for the creation of interactive and dynamic webpages. In this article, we will see how to update PHP in CentOS Web Panel.
To Update PHP
First check the version of PHP. The previous PHP version here is 5.4.45
Now to update the PHP, select the PHP Settings and click PHP Selector.
Select the PHP version that you need to update the PHP and click start compiler.
Compiler is running in background, run the given command to view the background process.
Paste the command in the terminal.
[root@linuxhelp1 ~]# tail -f /var/log/php-selector-rebuild.log
--2017-02-10 16:52:20-- http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
Resolving downloads3.ioncube.com... 52.216.64.98
Connecting to downloads3.ioncube.com|52.216.64.98|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9125103 (8.7M) [application/x-tar]
Saving to: `ioncube_loaders_lin_x86-64.tar.gz'
0K .......... .......... .......... .......... .......... 0% 45.8K 3m13s
50K .......... .......... .......... .......... .......... 1% 31.8K 3m55s
&hellip
&hellip
&hellip
Starting httpd: AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/sharedip.conf:1
AH00558: httpd: Could not reliably determine the server' s fully qualified domain name, using linuxhelp1.com. Set the ' ServerName' directive globally to suppress this message
[ OK ]
Build Completed
###################
c5ccf293a494bfdbdcd53f39bf460a32
Select the PHP version switcher, and choose the version. Click next once you are done.
Enable PHP, IMAP and start the compiler.
Compiler has been started.
You can view the compiler process by using the following command.
[root@linuxhelp1 ~]# tail -f /var/log/php-rebuild.log
* rpmforge: mirror.smartmedia.net.id
* updates: mirror.fibergrid.in
Package(s) libxml2-*.i686 available, but not installed.
No Packages marked for removal
Loaded plugins: fastestmirror, refresh-packagekit, security
&hellip
&hellip
You may want to add: /usr/lib64/php to your php.ini include_path
/tmp/php-build/php-5.6.24/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers: /usr/local/include/php/ext/pdo/
Make Install DONE!
####################
AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/sharedip.conf:1
AH00558: httpd: Could not reliably determine the server' s fully qualified domain name, using linuxhelp1.com. Set the ' ServerName' directive globally to suppress this message
PHP Rebuild Completed
Once it is done, add /usr/lib64/php to your php.ini include_path
[root@linuxhelp1 ~]# locate php.ini /opt/alt/php56/usr/php/php.ini /usr/local/cwp/php54/php.ini /usr/local/php/php.ini /usr/local/src/cwp/php-5.4.27/php.ini-development /usr/local/src/cwp/php-5.4.27/php.ini-production [root@linuxhelp1 ~]# vim /usr/local/php/php.ini
Enable the include_path line and add the path. Then save and exit.
[root@linuxhelp1 ~]# cd /tmp/php-build/php-5.6.24/build/
[root@linuxhelp1 build]# ls -l
total 332
-rw-r--r-- 1 root root 2200 Jul 21 2016 build2.mk
-rwxr-xr-x 1 root root 2165 Jul 21 2016 buildcheck.sh
-rw-r--r-- 1 root root 2510 Jul 21 2016 build.mk
-rwxr-xr-x 1 root root 143 Jul 21 2016 config-stubs
-rw-r--r-- 1 root root 659 Jul 21 2016 genif.sh
-rw-r--r-- 1 root root 230377 Jul 21 2016 libtool.m4
-rw-r--r-- 1 root root 2225 Jul 21 2016 mkdep.awk
-rw-r--r-- 1 root root 1505 Jul 21 2016 order_by_dep.awk
-rw-r--r-- 1 root root 122 Jul 21 2016 print_include.awk
-rw-r--r-- 1 root root 410 Jul 21 2016 scan_makefile_in.awk
-rwxr-xr-x 1 root root 65761 Jul 21 2016 shtool
Run the following command using shtool
[root@linuxhelp1 build]# ./shtool install -c /usr/local/src/cwp/php-5.4.27/ext/phar/phar.phar /usr/local/bin
[root@linuxhelp1 build]# cd /usr/local/src/cwp/php-5.4.27/ext/phar/
Create symbolic link for the phar file
[root@linuxhelp1 phar]# ln -s -f phar.phar /usr/local/bin/phar
Now check the PHP version in the CentOS Web Panel.
Comments ( 0 )
No comments available