How to change the PHP version for CLI mode?
Posted by: EdwardNorthwinr (---.31.237.33.broadband.homelink.com.ua)
Date: June 01, 2023 10:33PM

How to change the version of PHP that the WampServer is using in CLI mode?
There used to be an option for this in the Tools menu, but it no longer exists.

Options: ReplyQuote
Re: How to change the PHP version for CLI mode?
Posted by: Otomatic (Moderator)
Date: June 02, 2023 09:22AM

There is absolutely no need whatsoever to change the PHP version used for Wampserver's internal scripts.

If you want to use a PHP version other than the Apache module version, use FCGI mode.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: How to change the PHP version for CLI mode?
Posted by: EdwardNorthwinr (---.31.237.33.broadband.homelink.com.ua)
Date: June 02, 2023 10:43AM

I want to use one version for everything and delete others.

Options: ReplyQuote
Re: How to change the PHP version for CLI mode?
Posted by: Otomatic (Moderator)
Date: June 02, 2023 11:24AM

Wampserver's internal scripts currently use PHP 7.4.33.
It is no longer possible to change this version for the simple reason that I am certain that the scripts work correctly and without error with this version, but there is no guarantee that they will work without error with another PHP version.

A PHP version is less than 100 MB!

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: How to change the PHP version for CLI mode?
Posted by: RiggsFolly (Moderator)
Date: June 06, 2023 07:53PM

If you just want to be able to use one of the other versions you have loaded you can create a simple batch file to set the PATH variable for the duration of a terminal session only

See This post on Stackoverflow

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.