php Wamp服务器启动错误“-无法启动[Ephase错误]”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23645833/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Wamp server startup error "-can not startup [Ephase error]"
提问by KAREN
After I download the WAMP Server, a windows pop out stating:
下载 WAMP 服务器后,会弹出一个窗口,说明:
The configuration file contains a syntax error on line 1235;[EParseError]parameter "service "specifies an unknown service .
配置文件在第 1235 行包含语法错误;[EParseError] 参数“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?
我不知道这是什么类型的问题。有没有人遇到过这种类型的问题?我该如何解决此类问题?
回答by silkfire
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.
如果您要安装 WAMP 2.5 及更高版本,则必须确保先卸载任何以前的版本。备份您的www
文件夹php.ini
、my.ini
和httpd-vhosts.conf
文件。
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
- 启动 WAMP 服务器,忽略它不是亮绿色。
- 单击托盘图标,然后:停止所有服务。
- 托盘图标 -> Apache -> 服务 -> 删除服务
- 托盘图标 -> MySQL -> 服务 -> 删除服务
Run command prompt (cmd.exe) and execute the following commands:
运行命令提示符(cmd.exe)并执行以下命令:
sc delete wampapache
sc delete wampmysqld
Then perfom these steps:
然后执行以下步骤:
- Tray icon -> Apache -> Service -> Install Service
- Tray icon -> MySQL -> Service -> Install Service
- 托盘图标 -> Apache -> 服务 -> 安装服务
- 托盘图标 -> MySQL -> 服务 -> 安装服务
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.
如果您的默认端口 80 用于另一台服务器而 3306 用于另一台数据库服务器,请确保您在其他端口上运行 WAMP Apache 和 MySQL 服务器(每个设置都可以在相应的 ini 文件中找到)。
回答by user3206703
You can try to start/stop wamp server with Command Prompt (Admin)
您可以尝试使用命令提示符(管理员)启动/停止 wamp 服务器
NET START wampapache NET START wampmysqld
NET 开始 wampapache NET 开始 wampmysqld
NET STOP wampapache NET STOP wampmysqld
NET STOP wampapache NET STOP wampmysqld
回答by mayacr86
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).
当我尝试在 Windows 8.1 上安装 64 位版本的 wamp2.5 时,我遇到了同样的错误。我尝试了 32 位版本,但它有效(以管理员身份安装/运行)。
回答by Yahya Uddin
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/
我有一个类似的问题。有一些方法可以解决问题,例如复制 orgional conf 和 ini 文件: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!
尽管您的版本会有所不同,具体取决于您使用的版本。最好的方法是备份您的 sql 数据库并卸载 WAMP(您的 WWW 文件夹应该保留)。然后重新安装!
回答by Nimesh Jain
Alternatively, you can follow below steps:
或者,您可以按照以下步骤操作:
- start -> run -> services.msc
- find "wampapache" -> Right click -> Start
- find "wampmysqld" -> Right click -> Start
- 开始 -> 运行 -> services.msc
- 找到“wampapache”-> 右键单击-> 开始
- 找到“wampmysqld”->右键单击->开始
If you use wamp on regular basis, it might be a good idea to change "Startup Type" from "Manual" to "Automatic".
如果您定期使用 wamp,将“启动类型”从“手动”更改为“自动”可能是个好主意。
Hope this helps.
希望这可以帮助。
Note: You must be an admin to perform these operations.
注意:您必须是管理员才能执行这些操作。
回答by Gilli Suresh
I think You have Downloanded a 32-bit wamp and your system may be in 64-bit.
我认为您已经下载了 32 位的 wamp,并且您的系统可能是 64 位的。
download for a 64-bit wampsever. It works
下载 64 位 wampsever。有用
回答by Abhishek Goel
Did you install wampserver 2.5?
您是否安装了 wampserver 2.5?
In WAMPServer 2.5 release notes and corrections it is mentionned: Do not install this version over an existing version ,
在 WAMPServer 2.5 发行说明和更正中提到:不要在现有版本上安装此版本,
follow the steps : Installing a new release of WAMPServer
请按照以下步骤操作:安装新版本的 WAMPServer
回答by Mehul Patel
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.
来看看,你的wampmanager.ini
文件为空的时候会遇到这个错误。我怀疑这可能是 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:
幸运的是,我在另一台机器上二次安装了 WAMP 服务器,所以我能够粘贴以下文件内容并立即备份并运行:
Your configuration file can generally be found in: c:/wamp/wampmanager.ini. Please note this configuration file was pulled from WAMP Server 2.5
您的配置文件通常可以在:c:/wamp/wampmanager.ini 中找到。请注意此配置文件是从 WAMP Server 2.5 中提取的
Reference : http://www.youlikeprogramming.com/2014/12/repairing-your-wamp-configuration-file
参考:http: //www.youlikeprogramming.com/2014/12/repairing-your-wamp-configuration-file