Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WAMP Server errors switching Apache / PHP versions on fresh install

A fresh download and install of WAMP Server works successfully (Apache 2.4.4 PHP 5.4.12).

However as soon as I install a different version of Apache, in this case 2.4 to 2.0 (so I can run PHP 5.2 & 5.4), WAMP goes offline with an orange icon.

If I try to switch BACK to the original Apache version I get this show-stopping error:

Sorry,

This Apache version doesn't seem to be compatible with your actual PHP Version.
Switch cancelled.
Press ENTER to continue...

This doesn't make any sense, as this is a fresh install so both the Apache + PHP versions are the defaults.

Here's what the UI is telling me:

  • The WAMP icon is now orange
  • the Apache/Version/2.4.4 icon has a red warning icon next to it
  • the Apache/Version/2.0.63 icon has a tick next to it

I've tried installing other versions of Apache too, but the issue seems to be with the base 2.4 WAMP installed options.

Extra info: port 80 is free, and I used to use WS 2.0e all the time without these kinds of issues.

Thanks, Dave

like image 661
davestewart Avatar asked Sep 09 '13 18:09

davestewart


People also ask

Do I need to install PHP after WAMP?

Yes, php comes with wamp and when you install wamp server on your pc, php also get installed. you can start php and other services automatically or manually, its upto you.

What to do after installing Wamp server?

After you have successfully installed WAMP, an icon comes in the right-hand corner of the Taskbar. Click on that icon and from here you start / restart /close Apache, PHP, and MySQL. You can also change settings of Apache,PHP, and MySQL.

Where is PHP installed in WAMP?

If WAMP is installed in the C:\wamp folder, the extension needs to be in C:\wamp\bin\php\php5.


1 Answers

Go To \wamp\bin\php\phpX.Y.Z\wampmanager.conf.

Edit wampmanager.conf via Notepad++

Add This Codes.. And Save wampmanager.conf

$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] =  '';

Restart Wamp Manager..

like image 94
Mahmut Duman Avatar answered Oct 14 '22 23:10

Mahmut Duman