2

I'm using ampps 3.5 for make my Laravel project but my colleague add a library from github and it needs PHP 7.1 for setting. So I download ampps 3.7 and setup in my desktop but when using ampps 3.7, if I change version PHP to 7.1 then Apache will not running, if I change PHP to 7.0 then Apache running as nomally. How can fix this bug?

2 Answers2

0

I solved it by inserting the folder path (C:\Program Files(x86)\Ampps\php-7.1 as environment variable in windows 10 and then clicking on the "restore default configuration" button to get a refresh.

Andy
  • 1
0

Softaculous Ampps 3.8 Apache not starting if i change PHP version to 7.1

For windows10 OS***

This is how I got it to run. But yeah, make sure php is in your environment variables as previously mentioned.

"AMPPS - It won’t run PHP 7.1 with out changing the executables to run as administrator mode. Apache will terminate without an error. I believe this is because even if AMPPS is running in admin priviledges these are not granted to the php.exe when it is run. Go to the file location of php.exe, right click and click on properties, click the compatibility tab and select the check box for ‘run as administrator’. Do the same for the httpd.exe under apache->bin->httpd.exe. (Not sure if the httpd priviledge change matters but I did it and it worked.)

Run AMPPS and hopefully like me, your php/apache problems are gone."

Mi You
  • 1
  • 2
  • Make sure to add the important parts from the link in your answer, so that your post has value even if the link becomes broken or changed. ([From Review](https://stackoverflow.com/review)) – 0xCursor Mar 14 '19 at 16:52