How to repair wamp server without re-installing?

29,081

Solution 1

This document may help you How to uninstall WAMPServer without actually uninstalling it

The idea is that you uninstall your current version without actually running the unninstall and without actually deleting any files from your existing install.

You then rename the current wamp folder and then install the same version of wamp, make sure it works, and then copy all your sites and databases to the new installed wamp. If you install exactly the version of WAMP you have currently then you can copy the whole of the .../mysqlx.y.z/data folder and all you databases and users should be there on the new install.

This gets over whatever damage was done to your existing install. You may need to edit the php.ini and httpd.conf to match your existing configuration. I suggest you do not do a straight copy of either of these files as that may just get you to where you are now.

Solution 2

go to the wamp/scripts folder
open console
run:
php refresh.php

this should recreate wampmanager.ini

(requires wampmanager.tpl file in wamp folder.
taken from http://sourceforge.net/p/wampserver/feature-requests/10/#750b)

Solution 3

  1. Backup all YOUR databases in SQL format and store the backups somewhere safe.
  2. Stop All Services.
  3. Remove the Apache Service.
  4. Remove the MySQL Service.
  5. Exit WAMPServer.
  6. Rename your current \wamp folder to \wamp_old (This is your backup. DONT FORGET THIS STEP)

To all intents and purpose, you have uninstalled WAMPServer now. 7. Download and Install the new WAMPServer version (32bit is recommended, 64bit is only for geeks and 64bit PHP is not yet fully converted to 64bit)

  1. Change NOTHING! Check it works in its out of the box state.

Clear your browser cache ( CTRL+F5 ) to avoid any funnies with cached content. Run localhost Run phpMyAdmin (If asked for a Username and password; username = root / password = (nothing, leave this blank) Run \wamp\www\testmysql.php. you will need to edit the file and change the "mysql_connect('127.0.0.1', 'root', '')"

  1. If you want to bring some/all of your old versions of Apache/PHP/MySQL into the new WAMPServer (Remember, one of the big advantages in WAMPServer is the ability to switch between versions of Apache/PHP and MySQL)

Apache: copy \wamp_old\bin\apache\apachex.y.z folder to \wamp\bin\apache\apachex.y.z

PHP: copy \wamp_old\bin\php\phpx.y.z folder to \wamp\bin\php\phpx.y.z

MYSQL: copy \wamp_old\bin\mysql\mysqlx.y.z folder to \wamp\bin\mysql\mysqlx.y.z

  1. To tell WAMPServer about the old version of Apache/PHP/MySQL you just copied across run a "refresh", right click the wampmanager icon -> Refresh Give it a few seconds to go find all the new versions.

  2. Compare your old configs with the new configs, move over any of your local change/requirements. Remember, config parameters change between versions of Apache/PHP/MySQL ! Make sure your old changes are still required, valid, legal. ( Check the upgrade notes provided by all 3 software providers )

  3. If it all goes horribly wrong. Check the bottom of this Doc to see how to unwind all these changes easily if you get problems.

help you

Solution 4

I have had the same issue. I am working with WAMP 2.5 version. The content of "wampmanager.ini" is OK but it's possible that the php path is wrong. Check folders of section [StartupAction], in my case my php version is "php5.5.12". Surely the error message "The directory name is invalid" was for this.

Solution 5

In win10 you can just right click on the wampmanager.ini file in the root and select Restore Previous Version, then just choose one from a few days ago when it worked.

Share:
29,081
Admin
Author by

Admin

Updated on January 08, 2020

Comments

  • Admin
    Admin over 4 years

    After making changes in php.ini by uncommenting

        extension=php_openssl.dll
    

    My Windows-8 system got shutdown due to power failure and later i use to get this error when i try to start wamp server

    Aestan tray menu missing

    Later visiting some link i added the below code to wampmanager.ini file as it was empty

    enter image description here

    Now the first error got fixed and now throwing this error mentioned below:

    enter image description here

    Later i also installed visual c++ 2008 to fix this error but unsuccessful. I have many important databases which i have not taken back up also. I am trying to repair this wamp server without re-installing. Can anybody please assist me with this.

    Thanks in Advance