• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to update PHP in Centos Web Panel

{{postValue.id}}

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
{{postCtrl.cmtErrMsg}}

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

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 legeek ?
Installation of the call center module

hello

I wish to install a call center in virtual with issabel, I downloaded the latest version of it , but I don' t arrive to install the call center module in issabel. please help me

thanks!

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.