Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Install PHP-7.2



Normal Mode | Print  

Install PHP-7.3 VC15 Manually
4VL13N
Group: Member
Post Group: Newbie
Posts: 1
Status:
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
Code
php.ini-development
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:
  1. You need the "threadsafe" version of PHP
  2. You will probably need the 64-bit version unless you are on ancient (or very very small) hardware.
  3. You will need to duplicate the
    Code
    php.ini-development
    file
    and delete the
    Code
    -development
    part from the filename so you get
    Code
    php.ini
    . 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.
  4. 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.
  5. Decompress the
    Code
    .dll
    file for XDebug to the
    Code
    ...\lib
    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
    php-7.3.ini
    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
    Code
    Dynamic Extensions
    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...
IP: --   


Threads
 swissdoode   Install PHP-7.2 (28 Replies, Read 92336 times)
    |--  swissdoode   I'm one step...   on July 4, 2018, 7:36 am
    |--  jrxpress   yes.. I would...   on December 19, 2018, 10:27 am
    |--  Kerfred   Any news about...   on January 14, 2019, 2:48 pm
    |--  sg4dsiao   Joomla need php...   on February 19, 2019, 6:03 am
    |--  jrxpress   its been a...   on February 19, 2019, 6:12 am
    |--  mentosice   FireFly III need...   on February 23, 2019, 4:03 pm
    |--  sg4dsiao   We have detected...   on February 28, 2019, 2:55 pm
    |--  princeofnaxos   This question has...   on March 5, 2019, 8:40 am
    |--  jamesc   Need this too   on March 7, 2019, 12:51 pm
    |--  joeybab3   Many months and...   on July 1, 2019, 3:48 pm
    |--  erickb   we urgently need...   on July 2, 2019, 6:33 am
    |--  erickb   Ive got this...   on July 2, 2019, 11:08 am
    |--  demanl   Bump. Need php7.3.3...   on July 17, 2019, 12:58 am
    |--  erickb   I got that...   on July 18, 2019, 5:33 am
    |--  erickb   willing to pay...   on July 18, 2019, 5:34 am
    |--  swissdoode   Well - the...   on July 18, 2019, 8:40 am
    |--  erickb   i have already...   on July 18, 2019, 8:43 am
    |--  demanl   holy cow...mamp for...   on July 18, 2019, 1:24 pm
    |--  erickb   mamp has php7.3.1   on July 18, 2019, 1:48 pm
    |--  demanl   hello erickb, mamp...   on July 18, 2019, 3:21 pm
    |--  demanl   damn, too bad...   on July 18, 2019, 3:24 pm
    |--  erickb   yes I am...   on July 18, 2019, 3:32 pm
    |--  usalabs   My advice would...   on September 17, 2019, 12:29 am
    |--  jrxpress   exactly.. its sad...   on September 17, 2019, 5:45 am
    |--  Kerfred   I think this...   on October 4, 2019, 9:09 am
    |--  antztech   To be honest...   on October 31, 2019, 3:08 pm
    |--  usalabs   To be honest...   on October 31, 2019, 5:45 pm
    |--  4VL13N   WARNING: This is...   on November 6, 2019, 4:34 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
2 guests, 0 users.


All times are GMT. The time now is November 3, 2025, 1:07 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.017