.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