- Newest
- Most votes
- Most comments
Hi,
sorry, one correction.. also need to install "php73" :-)
Correct sequence below..
sudo yum update
sudo service httpd stop
sudo yum remove php*
sudo yum remove httpd*
sudo yum clean all
sudo yum upgrade -y
sudo yum install httpd24
sudo yum install -y php73 php73-gd php73-xml php73-xmlrpc
sudo yum install mod24_ssl
[root@ip-172-31-43-79 ~]# php -v
PHP 7.3.6 (cli) (built: Jun 12 2019 20:51:34) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
After upgrading, the current pear version seems to be compatible with 7.3.6
[root@ip-172-31-43-79 ~]# pear version
PEAR Version: 1.10.9
PHP Version: 7.3.6
Zend Engine Version: 3.3.6
Running on: Linux ip-172-31-43-79 4.14.123-86.109.amzn1.x86_64 #1 SMP Mon Jun 10 19:44:53 UTC 2019 x86_64
Hope this helps!
-randy
Edited by: RandyTakeshita on Aug 27, 2019 9:38 AM
Hi,
Not sure if this helps, but I was able to run the following command on Amazon Linux 1 and it upgraded from php 5.6 to php 7.3. Note: php73-mcrypt does NOT exist and php-pear causes those conflicts..
sudo yum update
sudo service httpd stop
sudo yum remove php*
sudo yum remove httpd*
sudo yum clean all
sudo yum upgrade -y
sudo yum install httpd24
sudo yum install -y php73-gd php73-xml php73-xmlrpc
sudo yum install mod24_ssl
[ec2-user@ip-172-31-81-189 pear]$ php --version
PHP 7.0.33 (cli) (built: Jan 9 2019 22:04:26) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
Note: I mainly followed the directions in the following link:
Link: https://fizzbuzzer.com/upgrading-php7-amazon-linux-ec2-instance/
Hope this helps..
-randy
Hi Randy - I will give this a shot. Thanks! Question though - if PEAR causes conflicts, what do people usually use for sending html formatted mail via SMTP with PHP 7.3?
Edited by: Juno on Aug 27, 2019 9:00 AM
Thanks, Randy! That worked. I was missing a few modules after, but no sweat to install those. Much appreciated!
I have the same situation. Before I proceed with the above instructions I wanna ask if this does effect the SSLcertificates or other httpd configurations? Probably not but better ask than not to be prepared, right? :)
I have the same situation. Before I proceed with the above instructions I wanna ask if this does effect the SSLcertificates or other httpd configurations? Probably not but better ask than not to be prepared, right? :)
Relevant content
- asked 2 years ago
- asked a year ago
- asked 3 years ago
- asked 5 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago