I'm running PHP 7.1 on CentOS 7 which was installed using Remi Repo. WordPress is informing me to update to PHP 7.4 for security reasons. How can I update the PHP version on the server running Apache/MySQL LAMP stack?
How to Update to PHP 7.4 from PHP 7.x on CentOS 7
53.7k Views Asked by raw-bin hood At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in APACHE
- .htaccess redirect 403 error files to 404 error document
- RestApi server code is not workinng
- Convert Apache VirtualHost to nginx Server Block for Dynamic Subdomains
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- Premature end of script on VPS
- Rasterization with Javascript looks different on Apache server
- Vagrant - Ansible error installing Apache
- Can't use subdomain in Chrome using Apache (XAMPP)
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- Redirect keystone app to sub directory using htaccess
- How can I integrate Solr5.1.0 with Nutch1.10
- Disconnect Client connected to cgi application
- Solr ping taking time during full import
- How to redirect an incoming request to specific serverName to different server in apache2?
- What is the correct way to link Django Flatpages?
Related Questions in UPDATES
- Apps that need access to camera wont work on newest android version
- how to update data from meteor in meteor using template helper which contain iteration
- update database java
- D3.js Enter, Update, Exit issue
- Unable to update a document elastica
- Cannot install typescript 1.4 after Windows 10 reservation
- Update list of items in c#
- Wordpress RPM not showing plugins update
- Is there away to specify which server you want?
- How I can execute extern Module Commands on a remote Computer in Powershell without install the Module?
- change routes of update rails
- Objective-C app update is deleting saved pictures
- OTA updates for Device Owner Android Application(Kiosk mode)
- Rethinkdb multiple update by one query and conditional
- Trigger Chrome extension update checking
Related Questions in LAMP
- Unable to connect database of lamp instance from servlet running on tomcat instance of google cloud
- $_POST being automatically copied into other variables
- Installing lampp on ubuntu 14.04 LTS
- Transfer Database From LAMP to WAMP
- Ruby on Rails 4 in a LAMP stack server
- php files connected with mysql server not working
- 404 not found error on localhost .php file
- What is the best way to install LAMP on Linux Mint
- Bitnami LAMP stack not working 2nd time
- LAMP virtual machine as a real server
- How to integrate AWS SWF using PHP so it can be managed from a user interface?
- MySQL Error : Invalid default value for 'CREATED_DATE'
- Trouble with Vagrant - "404 - Not Found"
- Character issue UTF-8 LAMP CentOS
- exec function is not working in PHP
Related Questions in CENTOS7.6
- How to upgrade postgrsql version from 9.6.5 to 9.6.14 on Centos 7.4
- How to Update to PHP 7.4 from PHP 7.x on CentOS 7
- Unable to reach my .Net core application deployed on a linux server from web browser
- class.upload.php failing in CentOS 7.6 LEMP droplet
- Mouse stopped clicking in CentOS running in Virtual Box
- Basic Authentication of Squid 4.5 - /usr/lib64/squid/basic_ncsa_auth file not found
- cPanel MySQL Service Manager down but /var/run/mysqld/mysqld.pid is running
- How to connect to SQL server using sqlsrv in CentOS 7.6?
- Deprecated - Methods with the same name as their class will not be constructors in a future version of PHP
- "man docker" displays No manual entry for docker. OS relesse is CentOS Linux release 7.6.1810
- CentOS 7 kickstart file set hostname with hostnamectl
- django setup in apache +centos 7
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
READ FIRST -- IMPORTANT !!! Get a complete backup snapshot of your server before you complete these update steps
First thing you should do is do any core OS updates and package updates.
yum update -yCheck which version of PHP you are currently running.
php -vPrint a list to see all the PHP packages you have installed. You will need to replace all these packages in PHP 7.4. You should copy this list to a file so you can refer to it if you need to. Make a note of the version of PHP here (7x or 7-x).
rpm -qa | grep phprpm -qa | grep php > php_rpm.txtRemove PHP core and all the installed PHP packages.
yum remove "php*" -yInstall the updated remi repository if it is not already installed.
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpmCheck out a list of all available remi packages (not-required)
yum repolist remi-safe7. Disable PHP 7.x and enable PHP 7.4 (Replace x with sub-version of your previously installed version noted above in step 3) and install any extra packages you want / need.
Check the updated PHP version.
php -vRestart Apache to use the newly installed PHP 7.4
systemctl restart httpd