.htaccess 产生 500 内部服务器错误 [英] .htaccess produces 500 Internal Server Error

查看:34
本文介绍了.htaccess 产生 500 内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.htaccess 的内容是:

The content of .htaccess is:

php_value upload_max_filesize 64M

在本地主机上工作,搞砸了我上传到的每个托管服务器.error.log 说:无效的命令 'php_value',可能拼写错误或由服务器配置中未包含的模块定义

Works on localhost, screws up every hosting server I upload it to. The error.log says: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

还有其他方法可以更改upload_max_filesize吗?

Is there another way to change the upload_max_filesize?

推荐答案

问题在于主机提供商,他们只允许通过 php.ini 进行更改

The problem was the hosting provider, they only allow changing this via php.ini

这篇关于.htaccess 产生 500 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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