• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to update PHP in Centos Web Panel

1164

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
php

Now to update the PHP, select the PHP Settings and click PHP Selector.
PHP_Selector
Select the PHP version that you need to update the PHP and click start compiler.
start_compiler
Compiler is running in background, run the given command to view the background process.
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.
php_switch
Enable PHP, IMAP and start the compiler.
start_compiler
Compiler has been started.
php_processq

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


Tags:
isaac
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What version of PHP is required for PHP Framework on CentOS ?

A

No, CentOS 7 is NOAnything Above php 5 works better for PHP Framework on CentOS.T supported yet!

Q

shall I use mysql instead of mariadb on PHP Framework ?

A

yes you can use any database as per you rpreference for PHP Framework

Q

How to create a mysql user and database?

A

Click on SQL Services -> MySQL Manager -> Create Database and User

Q

why should we use curl instead of wget on Laravel PHP Framework ?

A

curl, is its ability to download Laravel PHP Framework recursively

Q

How to block an IP of ssh my server from cpanel?

A

Go to Security Center -> Host access control, in that type, the daemon name as ssh and Access list as the IP you need to block and in action say "Deny". And in the next line daemon as ssh, access

Related Tutorials in How to update PHP in Centos Web Panel

Related Tutorials in How to update PHP in Centos Web Panel

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to update PHP in Centos Web Panel

Related Forums in How to update PHP in Centos Web Panel

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019

Related News in How to update PHP in Centos Web Panel

Related News in How to update PHP in Centos Web Panel

PHP7 bugs used by hackers to remotely hijack web servers
PHP7 bugs used by hackers to remotely hijack web servers
Nov 5, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Jayce ?
What are the types of table used in IPtables

What are the various types of table used in IPtables and how to use that for my server security?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.