阿帕奇 - 406不可接受PHP的问题 [英] Apache - 406 Not Acceptable PHP Problem

查看:148
本文介绍了阿帕奇 - 406不可接受PHP的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我调试一个闪光的网站,做一个名为upload.php的一些图像上传到服务器上的PHP文件的请求。

I'm debugging a flash website that do a request to an php file named upload.php to upload some images to the server.

我遇到了与萤火虫调试它要求该页面被扔了406不可接受状态code,不保存图像的问题。

The problem i'm having that debugging it with Firebug the request to that page is throwing a 406 Not Acceptable status code and is not saving the images.

发表数据:

本网站运行良好临时服务器上,但在生产服务器上的图片上传的过程失败。我只能假设,到Apache的配置/ PHP的变化必须做的,但我不知道该怎么做。

This website runs well on the staging server but in production server this process of the image upload fails. I only can assume that a change to apache configuration / php must be done, but i have no idea what to do.

upload.php的code:

任何帮助或指导将受到欢迎,在此先感谢您的帮助。

Any help or guidance will be welcome, thanks in advance for the help.

ATT
Sherlack

att Sherlack

推荐答案

问题是用PHP了Suhosin硬化模块。一些变量值长度的限制被超出。这是编辑的文件是/etc/php.d/suhosin.ini而且记录到/ var / log中/.

The problem was with the Suhosin PHP hardening module. Some of the variable value length limits were being exceeded. The file that was edited was /etc/php.d/suhosin.ini and it logs to /var/log/.

该文件是由我的托管管理员编辑后,问题就解决了​​。

After the file was edited by my hosting administrator the problem was resolved.

谢谢大家的支持!

这篇关于阿帕奇 - 406不可接受PHP的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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