我的vps中有一个php页面,需要46个$ _POST变量
每当我尝试解决它时,它都会返回500内部服务器错误响应
当我从文件中删除8+ $ _POST变量时,一切都按预期工作
我已经尝试在max_input_vars
中设置3000
到php.ini
(然后重新启动服务器)。
我也试过更改.htaccess
文件,没有任何效果。
有什么建议 ?
提前谢谢。
编辑:
错误日志:
[Fri Dec 23 17:51:22.902648 2016] [:error] [pid 27211] [client 77.138.82.103:54270] PHP Parse error: syntax error, unexpected '$Phase_3_Q_Before' (T_VARIABLE) in /var/www/html/server/addSwitch.php on line 43
[Fri Dec 23 17:51:24.215003 2016] [:error] [pid 27212] [client 77.138.82.103:54271] PHP Parse error: syntax error, unexpected '$Phase_3_Q_Before' (T_VARIABLE) in /var/www/html/server/addSwitch.php on line 43
[Fri Dec 23 17:51:25.806288 2016] [:error] [pid 27213] [client 77.138.82.103:54280] PHP Parse error: syntax error, unexpected '$Phase_3_Q_Before' (T_VARIABLE) in /var/www/html/server/addSwitch.php on line 43
[Fri Dec 23 17:51:27.587422 2016] [:error] [pid 27210] [client 77.138.82.103:54302] PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/info.php on line 2
[Fri Dec 23 17:51:34.500954 2016] [:error] [pid 27212] [client 77.138.82.103:54350] PHP Parse error: syntax error, unexpected '$Phase_3_Q_Before' (T_VARIABLE) in /var/www/html/server/addSwitch.php on line 43
[Fri Dec 23 17:51:39.513983 2016] [:error] [pid 27260] [client 77.138.82.103:54351] PHP Parse error: syntax error, unexpected '$Phase_3_Q_Before' (T_VARIABLE) in /var/www/html/server/addSwitch.php on line 43
部分代码:
$Phase_3_U_Before = $_POST['Phase_3_U_Before'];
$Phase_3_I_Before = $_POST['Phase_3_I_Before'];
$Phase_3_P_Before = $_POST['Phase_3_P_Before'];
$Phase_3_S_Before = $_POST['Phase_3_S_Before'];
$Phase_3_Q_Before = $_POST['Phase_3_Q_Before'];
$Phase_3_cos_Before = $_POST['Phase_3_cos_Before'];
$Phase_3_U_After = $_POST['Phase_3_U_After'];
$Phase_3_I_After = $_POST['Phase_3_I_After'];
$Phase_3_P_After = $_POST['Phase_3_P_After'];
$Phase_3_S_After = $_POST['Phase_3_S_After'];
$Phase_3_Q_After = $_POST['Phase_3_Q_After'];
$Phase_3_cos_After = $_POST['Phase_3_cos_After'];
答案 0 :(得分:0)
您是否增加了上传尺寸?
upload_max_filesize = 10M
post_max_size = 10M
你检查错误了吗?
display_errors = 1
display_startup_errors = 1
error_reporting = E_ALL
(将所有这些添加到您的php.ini)