使用 MySQL 命令提交 php 上的内部服务器错误 [英] Internal Server Error on php submit with MySQL commands

查看:64
本文介绍了使用 MySQL 命令提交 php 上的内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下代码的内部服务器错误...任何建议:

I get an internal server error with the following code... any suggestions:

<form name="user" action="this.php" method="post">
<input type="text" name="description" id="description" value="" />

<input type="submit" name="" id="" value="Edit Page"  />    
</form>

页面上没有其他代码,除非我在文本字段中放置 MySQL 查询,例如 SELECT s FROM d WHERE 1=1

There is no other code on the page, and it self submits fine UNLESS I place a MySQL query inside the text field, such as SELECT s FROM d WHERE 1=1

然后我收到以下错误:

服务器遇到内部错误或配置错误,无法完成您的请求.

The server encountered an internal error or misconfiguration and was unable to complete your request.

请联系服务器管理员 webmaster@test.info 并告知他们错误发生的时间,以及您所做的可能导致错误的任何事情.

Please contact the server administrator, webmaster@test.info and inform them of the time the error occurred, and anything you might have done that may have caused the error.

有关此错误的更多信息可以在服务器错误日志中找到.

More information about this error may be available in the server error log.

此外,在尝试使用 ErrorDocument 处理请求时遇到 404 Not Found 错误.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

我确实有一些 .htaccess 规则,但我不知道这会如何影响一个不做任何事情或去任何地方的查询......

I do have some .htaccess rules going on, but I don't know how that would effect a query that doesn't do anything or go anywhere...

推荐答案

似乎是邪恶的统治mod_security.你在共享主机上吗?通常,您可以通过 .htaccess 文件禁用所有模块或特定规则.

Seems to be rule of the evil mod_security. Are you on shared hosting? Generally you can disable all the module or specific rules via .htaccess file.

这篇关于使用 MySQL 命令提交 php 上的内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆