logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Help Upgrading PHP 7.1+ from 5.6

 
Post new topic   Reply to topic    Apache Forum Index -> Other Software



View previous topic :: View next topic  
Author Message
paullee357



Joined: 22 Nov 2018
Posts: 1
Location: Texas, Austin

PostPosted: Thu 22 Nov '18 18:09    Post subject: Help Upgrading PHP 7.1+ from 5.6 Reply with quote

We have a WP plugin asking us to upgrade to PHP7.1+ from 5.6. I have Apache/MySQL/PHP running on 2012R2 as standalone and not through IIS or XAMPP. I'm terrified to upgrade because I have everything configured the way I like including OpenSSL certs and worried I'll lose settings. https://dashboard.pagethink.com/test-php.php .

What is the best upgrade path for my situation. I am novice.
Back to top
maba



Joined: 05 Feb 2012
Posts: 60
Location: Germany, Heilbronn

PostPosted: Thu 29 Nov '18 10:23    Post subject: Reply with quote

Your SSL config relates to Apache. Apache does not need to be touched.

Assumption: you have PHP 5.6 running as Apache module.

Code:
LoadModule php5_module "<some_path>/php5apache2_4.dll"
PHPIniDir "<somepath>"


----

Then just download PHP 7.x, unpack it to some path.
In your Apache "httpd.conf" file, comment out PHP5 (do not delete the lines).

Code:
# LoadModule php5_module "<some_path>/php5apache2_4.dll"
# PHPIniDir "<somepath>"


Add the lines for PHP 7.x

Code:
LoadModule php7_module "<new_path>/php7apache2_4.dll"
PHPIniDir "<new_path>"


----

Restart Apache
Check whether everything works.
If not. Try to fix the missing pieces.
If you can't fix it, revert to the old config and restart Apache.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Other Software
Page 1 of 1