WARNING: This is untested, I am not a developer for AMPPS or Softalicious! I'm just a guy who gets along better with computers than humans. Follow these instructions at your own risk!
You will need to know your way around a good text editor to do some of this, and knowing how Apache and PHP configuration files work will be a definite plus. In the example I give, I'm installing PHP 7.3 VC15. If you're just going up to 7.2, adjust your folders/paths accordingly so you aren't confused later. Also, do not use the file if you are in a production environment (if you don't know not to, then you shouldn't be in a production environment anyway).
I fired up ye trusty ole Process Monitor to figure out how the AAMPS front end switched PHP versions. It just runs Code php -c {path to appropriate PHP.ini} to point Apache httpd to the new version. That should be sufficient to do the same for 7.2, or even 7.3.
Just go to the Windows VC15 x64 Thread Safe PHP download page, or run Code choco install php --package-parameters='"/ThreadSafe ""/InstallDir:C:\Ampps\php-7.3-ts-VC15"""' if you have Chocolatey and you're on Windows. If you're on Mac OS, using Homebrew is probably going to be the move to make.
A couple of things:
- You need the "threadsafe" version of PHP
- You will probably need the 64-bit version unless you are on ancient (or very very small) hardware.
- You will need to duplicate the file and delete the part from the filename so you get . You will probably also need to modify it to accommodate changes that you, AAMPS, or installed apps, have made made to the one on your server. I used WinMerge to compare them and make the necessary adjustments. Really the big things to check are the extensions and the paths.
- You will also need to manually add some extensions. Specifically, XDebugXDebug and the IonCube LoaderIoncube loader (you don't technically need XDebug, but it might make AMPPS mad if you don't have it). It is important to download the ones that match the version of PHP you are installing exactly. Without IonCube, it's possible nothing will work since it "decodes" the obfuscated PHP the AMPPS front end runs on.
- Decompress the file for XDebug to the directory under the PHP folder you are using (mine is
Code C:\Ampps\php-7.3.11-VC15\lib\ ) and decompress the Code ioncube_loader_win_7.3.dll . Be sure to add the following lines to your
Code
;IonCube Loader
zend_extension="{$path}\php-7.3-VC15\ioncube_loader_win_7.1.dll"
;Xdebug
zend_extension="{$path}\php-7.3-VC15\lib\php_xdebug.dll"
just above the section
After you have done all that, it should be a simple matter of running the following command in a terminal window:
Code C:\Ampps\php-7.3-VC15\php.exe -c C:\Ampps\php-7.3\php.ini C:\Ampps\ampps\softaculous\enduser\main\ampps\server_config.php web_server=apache php=php73 db_server=mysql
Now, having said all that, [b]I have not tested this yet. It may not work, but it won't permanently break anything. You should be able to just go into AMPPS settings and click one of the other PHP (5.6/7.1) buttons and everything be back the way it was. You might also be able to hack one of these buttons to switch to 7.3, but I'll see about that later.
P.S.: I was trying to be helpful and link all of the downloads, but I'm new on this forum so no dice. Sorry, LMGTFY...
|