Subscribing to the IUS Community Project Repository
cd ~curl "https://cài đặt.ius.io/" -o setup-ius.shRun the script:
subởi bash setup-ius.shUpgrading mod_php with Apache
This section describes the nâng cấp process for a system using Apabít as the web hệ thống and mod_php to exeđáng yêu PHP. code. If, instead, you are running Nginx and PHP-FPM, skip ahead to lớn the next section.quý khách hàng đã xem: How to completely remove php from centos
Begin by removing existing PHPhường packages. Press y và hit Enter to lớn continue when prompted.
Bạn đang xem: How to completely remove php from centos
suvị yum remove sầu php-cli mod_php php-commonInstall the new PHPhường 7 packages from IUS. Again, press y and Enter when prompted.
suvày yum install mod_php70u php70u-cli php70u-mysqlndFinally, restart Apabít lớn load the new version of mod_php:
suvì apachectl restartYou can kiểm tra on the status of Apabịt, which is managed by the httpd systemd unit, using systemctl:
systemctl status httpd Share Improve sầu this answer Follow edited Apr 21 "17 at 9:52
Rory McCrossan 302k3737 gold badges266266 silver badges302302 bronze badges answered Aquảng cáo 21 "17 at 8:54
Share Improve sầu this answer Follow answered Apr 21 "17 at 8:28 user6223711user6223711 1 Add a bình luận |
Thanks for contributing an answer lớn Staông chồng Overflow!Please be sure lớn answer the question. Provide details and chia sẻ your research!
But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.Draft savedDraft discarded
Sign up or log inSign up using Google Sign up using Facebook Sign up using Email and Password Submit
Post as a guestName Thư điện tử Required, but never shown
Post as a guestName E-Mail
Required, but never shownPost Your Answer Discard
Not the answer you're looking for? Browse other questions tagged php linux centos laravel-5.2 centos7 or ask your own question.The Overflow Blog Featured on Meta Related 2773 How can I prsự kiện SQL injection in PHP? 2699 Deleting an element from an array in PHP 1344 How vì I make a redirect in PHP? 1819 How vì chưng I get PHP errors lớn display? 2513 How bởi I get a YouTube video clip thumbnail from the YouTube API? 2179 How bởi vì you parse & process HTML/XML in PHP? 2103 How does PHP 'foreach' actually work? 698 PHP parse/syntax errors; và how lớn solve sầu them 2 Unable to update PHP from 5.4 to lớn higher version in CentOs 7 Hot Network Questions more hot questions
Question feed Subscribe to lớn RSS Question feed To subscribe to lớn this RSS feed, copy và paste this URL into your RSS reader.