WampServer 突然下线

Posted

技术标签:

【中文标题】WampServer 突然下线【英文标题】:WampServer suddenly went offline 【发布时间】:2013-06-08 18:05:01 【问题描述】:

我使用 WampServer 进行 php 开发。突然,它下线了。 (它表示 wamp 服务器在线但为红色)

我不使用 Skype,当我检查用于 wamp 服务器的端口 80 时,它说端口 80 是空闲的。

这是最近几个小时的访问日志:

127.0.0.1 - - [12/Jun/2013:15:32:47 +0530] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [12/Jun/2013:15:32:49 +0530] "GET /test/ HTTP/1.1" 200 7
127.0.0.1 - - [12/Jun/2013:15:32:49 +0530] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [12/Jun/2013:15:33:34 +0530] "POST /phpmyadmin/import.php HTTP/1.1" 200 100380

这是 appache_error 日志:

[Wed Jun 12 14:19:48 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Wed Jun 12 14:20:35 2013] [error] [client 127.0.0.1] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your mysql server version for the right syntax to use near 'column REGEXP '[0-5]'' at line 1 for query SELECT * FROM wp_skilllist WHERE column REGEXP '[0-5]' made by require('C:\\wamp\\www\\wordpress\\wp-blog-header.php'), require_once('C:\\wamp\\www\\wordpress\\wp-includes\\template-loader.php'), include('C:\\wamp\\www\\wordpress\\wp-content\\themes\\twentytwelve\\Skill_page.php'), test_getproducts, referer: http://localhost/wordpress/?page_id=2
[Wed Jun 12 14:20:37 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Wed Jun 12 14:21:04 2013] [error] [client 127.0.0.1] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column REGEXP '[0-5]+$'' at line 1 for query SELECT * FROM wp_skilllist WHERE First_name LIKE 'Menuka%' AND column REGEXP '[0-5]+$' made by require('C:\\wamp\\www\\wordpress\\wp-blog-header.php'), require_once('C:\\wamp\\www\\wordpress\\wp-includes\\template-loader.php'), include('C:\\wamp\\www\\wordpress\\wp-content\\themes\\twentytwelve\\Skill_page.php'), test_getproducts, referer: http://localhost/wordpress/?page_id=2
[Wed Jun 12 14:21:06 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Wed Jun 12 14:21:46 2013] [error] [client 127.0.0.1] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column REGEXP '^[0-5]+$'' at line 1 for query SELECT * FROM wp_skilllist WHERE First_name LIKE 'Menuka%' AND column REGEXP '^[0-5]+$' made by require('C:\\wamp\\www\\wordpress\\wp-blog-header.php'), require_once('C:\\wamp\\www\\wordpress\\wp-includes\\template-loader.php'), include('C:\\wamp\\www\\wordpress\\wp-content\\themes\\twentytwelve\\Skill_page.php'), test_getproducts, referer: http://localhost/wordpress/?page_id=2
[Wed Jun 12 14:21:47 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Wed Jun 12 14:22:01 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Wed Jun 12 15:31:57 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico

MySQL 错误日志:

130607 10:14:46  InnoDB: Waiting for the background threads to start
130607 10:14:47 InnoDB: 1.1.8 started; log sequence number 2897277
130607 10:14:47 [Note] Server hostname (bind-address): '(null)'; port: 3306
130607 10:14:47 [Note]   - '(null)' resolves to '::';
130607 10:14:47 [Note]   - '(null)' resolves to '0.0.0.0';
130607 10:14:47 [Note] Server socket created on IP: '0.0.0.0'.
130607 10:14:49 [Note] Event Scheduler: Loaded 0 events
130607 10:14:49 [Note] wampmysqld: ready for connections.
Version: '5.5.24-log'  socket: ''  port: 3306  MySQL Community Server (GPL)
130612 15:37:34 [Note] wampmysqld: Normal shutdown

130612 15:37:34 [Note] Event Scheduler: Purging the queue. 0 events
130612 15:37:35  InnoDB: Starting shutdown...

我尝试了几篇文章,但没有找到解决方案。我的主要问题是它工作正常但突然停止工作,这就是我包含错误日志的原因。

我与机器的用户权限有什么关系吗?

【问题讨论】:

【参考方案1】:

如你所见,你有一个关于 wp_skilllist 插件的错误,如果你禁用这个插件可能会更好。我不完全确定它,但它是一种可能性,导致你的日志记录到这个脚本的行 照顾好这条线

[Wed Jun 12 14:21:46 2013] [error] [client 127.0.0.1] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column REGEXP '^[0-5]+$'' at line 1 for query SELECT * FROM wp_skilllist WHERE First_name LIKE 'Menuka%' AND column REGEXP '^[0-5]+$' made by require('C:\\wamp\\www\\wordpress\\wp-blog-header.php'), require_once('C:\\wamp\\www\\wordpress\\wp-includes\\template-loader.php'), include('C:\\wamp\\www\\wordpress\\wp-content\\themes\\twentytwelve\\Skill_page.php'), test_getproducts, referer: http://localhost/wordpress/?page_id=2

有问题,正如您所见,它指的是 'C:\wamp\www\wordpress\wp-content\themes\twentytwelve\Skill_page.php',尝试更改主题

【讨论】:

如何在不访问的情况下禁用它?不过,我从 www 文件夹中删除了该网站。但我仍然收到错误 当然,你得到了错误,导致数据库继续在那里,另外,如果你删除 www 文件夹服务器将关闭,导致 apache 需要 www 文件夹运行,它发生了什么现在是 wamp 无法启动,首先你必须恢复 www 文件夹,删除文件夹 wp-content/plugins 上的插件,这必须足够 不不抱歉,我的意思是 www 文件夹中的网站。我没有删除 www 文件夹。 我已经更改了mya nswer的内容,但是如果你删除了www的内容,请粘贴新的错误,因为你的日志是指php上的那一行 我已经从 www 文件夹中完全删除了 wordpress 文件夹。我认为130612 15:37:35 InnoDB: Starting shutdown... 给出了一个信息。但我想不通。【参考方案2】:

很伤心,我发现网络管理员取消了我机器上的管理员权限。 一旦我要求他授予我机器上的权限,我就可以运行 wamp 服务器。

如果您在网络中并且工作的 wamp 服务器离线,请检查您机器上的权限。

【讨论】:

以上是关于WampServer 突然下线的主要内容,如果未能解决你的问题,请参考以下文章

WampServer突然这么慢,localhost不会加载

WampServer:禁止访问 localhost 但 phpMyAdmin 仍然可以访问?

wampserver:Could not execute menu item.

wampserver外网ip不能直接访问?

wampserver安装好怎么使用

急!急!急!怎样用wampserver浏览本地php网页?