user11897091
user11897091

Reputation:

How to change php version in wamp?

I am using Wamp 3.2 on Windows 10. After I install, it shows it's running php 7.3.12 on the server. But the cli shows php 5.6.40. I firstly tried changing phpcli from 5.6.40 in wamp manager. I got the same result. I then tried changing the environment variable. There is still no change. My cli is still showing php 5.6.40. Unfortunately, this means I cannot run my frameworks such as Code Igniter 4.

Any help will be great. Thanks.

Upvotes: 1

Views: 10063

Answers (5)

Rohit
Rohit

Reputation: 21

follow this step

  • click icon in taskbar image 1

  • click php and version enter image description here

select version if you want.

Restart Wampp server after selecting the versions

If the versions you want are not visible, you can also add them

Upvotes: 1

Ixora FlowerLady
Ixora FlowerLady

Reputation: 1

enter image description here

it contain in ^ icon in start bar when you click green icon then you ckick php then ckick change version up to you

Upvotes: 0

Sohail Khan
Sohail Khan

Reputation: 1

To change the php version simple search for the wampserver adon and go to the first link search for php version you want to install on window and download it. After downloading simply install the downloaded exe and restart the server . That's All

Upvotes: 0

user11897091
user11897091

Reputation:

After changing the variables and all that, my main problem was cli kept on identifying php 5 as my php version. Even when I changed the phpcli version in Wamp manager, it kept on doing the same. And it is impossible to install wamp without php 5 for some reason.

What finally worked was going to the bin\php folder. I then inserted an underscore "_" infront of the folder name of php 5.

After that, cli started showing the php version specified in path variables. I have no idea why it works, but it does.

Upvotes: 0

Vinay Kaklotar
Vinay Kaklotar

Reputation: 424

you need to change the version path in the Environment Variables of the system. Follow the steps.

  • This PC
  • Properties
  • Advanced system settings
  • Advance
  • click Environment Variables
  • Set path in system veriables as screenshot
  • then restart teminal

enter image description here

Upvotes: 1

Related Questions