简体   繁体   中英

How to repair wamp server without re-installing?

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 托盘菜单

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

在此处输入图像描述

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

在此处输入图像描述

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

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 )

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.yz/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.

Fixed by installing wamp again into the same directory by renaming the older wamp. I just replaced wampmanager.ini file of new to the old one. Earlier it was just a little piece of code i pasted in wampmanager.ini file. But now it is a big one which fixed this issue. Thanks a lot for you guys, your suggestions saved my time. I did not change anything with php.ini also.

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.

  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.yz folder to \\wamp\\bin\\apache\\apachex.yz

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

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

  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

在win10中,您可以右键单击根目录中的wampmanager.ini文件,然后选择“还原以前的版本”,然后在几天前选择一个工作时。

i have similair issue in the morning and searched SO and other forums but none of the solution worked for me.

It was

syntax error on line number 561 (due to MariaDB)

After checking all wamp installation for MariaDB, i find out that file at root: wampmanager.conf contain lines about MariaDB. I removed all of those and then restarted wamp . It worked like charm!

  1. Rename the wamp folder, you can just add a 1 or 0 to somehing like wamp641 then
  2. re-install wamp server 3.copy paste the mysql and project folders from Bin and WWW respectively from the renamed wamp folder to the newly created folder after installation so that you dont loose any database and project files from your previous projects.
    4 start your wamp and it should work well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM