After I download the WAMP Server, a windows pop out stating:
The configuration file contains a syntax error on line 1235;[EParseError]parameter "service "specifies an unknown service .
I have no idea what type of this problem. Did anyone facing this type of problem? How can I solve this type of problem?
If you're installing WAMP 2.5 and above, you have to make sure that you uninstall any previous version first. Backup your www
folder, php.ini
, my.ini
and httpd-vhosts.conf
files.
Then try follow these steps in order to remove the old services:
- Launch WAMP server, disregard that it doesn't light green.
- Click on the tray icon, then: Stop All Services.
- Tray icon -> Apache -> Service -> Remove Service
- Tray icon -> MySQL -> Service -> Remove Service
Run command prompt (cmd.exe) and execute the following commands:
sc delete wampapache
sc delete wampmysqld
Then perfom these steps:
- Tray icon -> Apache -> Service -> Install Service
- Tray icon -> MySQL -> Service -> Install Service
Also make sure you're running WAMP Apache and MySQL server (each setting can be found in corresponding ini file) on other ports if your default port 80 is used for another server and 3306 is used for another database server.
You can try to start/stop wamp server with Command Prompt (Admin)
NET START wampapache NET START wampmysqld
NET STOP wampapache NET STOP wampmysqld
I was having the same error when I tried to install the 64bit version of wamp2.5 on Windows 8.1. I tried the 32bit version instead, and it worked (install/run as an Admin).
I had a similar problem. There are ways to solve the problem like copying over the orgional conf and ini file: http://colorsinweb.wordpress.com/2014/04/06/the-configuration-file-contains-a-syntax-error-on-line-0-wamp/
although your one will be different depending what version you use. The best method is to make a back up of your sql database and unistall WAMP (your WWW folder should remain). Then reinstall!
Alternatively, you can follow below steps:
- start -> run -> services.msc
- find "wampapache" -> Right click -> Start
- find "wampmysqld" -> Right click -> Start
If you use wamp on regular basis, it might be a good idea to change "Startup Type" from "Manual" to "Automatic".
Hope this helps.
Note: You must be an admin to perform these operations.
I think You have Downloanded a 32-bit wamp and your system may be in 64-bit.
download for a 64-bit wampsever. It works
Did you install wampserver 2.5?
In WAMPServer 2.5 release notes and corrections it is mentionned: Do not install this version over an existing version ,
follow the steps : Installing a new release of WAMPServer
Come to find out, this error is encountered when your wampmanager.ini
file is empty. I suspect this may be the effect of an unclean exit of Wamp Server.
Luckily, I had a secondary install of WAMP Server sitting on another machine, so I was able to paste in the following file contents and was back up and running in no time:
Your configuration file can generally be found in: c:/wamp/wampmanager.ini. Please note this configuration file was pulled from WAMP Server 2.5
Reference : http://www.youlikeprogramming.com/2014/12/repairing-your-wamp-configuration-file
This is an issue in wampmanager.ini
file. It could have been corrupted. Try and replace the file or copy the code here into your file.
来源:https://stackoverflow.com/questions/23645833/wamp-server-startup-error-can-not-startup-ephase-error