Reputation:
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
Reputation: 21
follow this step
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
Reputation: 1
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
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
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
Reputation: 424
you need to change the version path in the Environment Variables
of the system. Follow the steps.
Upvotes: 1