Wamp server startup error “-can not startup [Ephase error]”

后端 未结 9 2916
天命终不由人
天命终不由人 2021-02-19 16:14

After I download the WAMP Server, a windows pop out stating:

The configuration file contains a syntax error on line 1235;[EParseError]parameter \"servic

相关标签:
9条回答
  • 2021-02-19 16:44

    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:

    1. Launch WAMP server, disregard that it doesn't light green.
    2. Click on the tray icon, then: Stop All Services.
    3. Tray icon -> Apache -> Service -> Remove Service
    4. 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:

    1. Tray icon -> Apache -> Service -> Install Service
    2. 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.

    0 讨论(0)
  • 2021-02-19 16:44

    Alternatively, you can follow below steps:

    1. start -> run -> services.msc
    2. find "wampapache" -> Right click -> Start
    3. 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.

    0 讨论(0)
  • 2021-02-19 16:51

    You can try to start/stop wamp server with Command Prompt (Admin)

    NET START wampapache NET START wampmysqld

    NET STOP wampapache NET STOP wampmysqld

    0 讨论(0)
  • 2021-02-19 16:58

    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

    0 讨论(0)
  • 2021-02-19 16:59

    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

    0 讨论(0)
  • 2021-02-19 17:02

    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!

    see: http://forum.wampserver.com/read.php?2,123606

    0 讨论(0)
提交回复
热议问题