简体   繁体   English

如何添加max_input_var php 5.3.3?

[英]how to add max_input_var php 5.3.3?

I got a plesk server running plesk 12 and php 5.3.3, i got a client who is running Prestashop, I need to add something to the language but before I can do that I need to add max_input_var to 6000 it is now 1000 I've search everything on google but i can't find an solution for it. 我有一个运行plesk 12和php 5.3.3的plesk服务器,我有一个运行Prestashop的客户端,我需要向语言中添加一些东西,但是在我能做到这一点之前,我需要将max_input_var添加到6000 ,现在是1000我' ve在Google上搜索了所有内容,但我找不到解决方案。 there is no php.ini file? 没有php.ini文件? in the root or other directory's. 在根目录或其他目录中。 i've tried to add things like ( max_input_var etc.) in the .htaccess file but it didn't work, i've tried to add it on my server /etc/php.ini & /var/www/vhost/domain/etc/php/ini but is still stays on 1000 do i need to update php? 我试图在.htaccess文件中添加( max_input_var等)之类的东西,但是它不起作用,我试图将其添加到我的服务器/etc/php.ini/var/www/vhost/domain/etc/php/ini但仍然停留在1000 ,我需要更新php吗? I am to afraid to update cause of the problems it may give. 我很害怕更新可能导致问题的原因。

First off, if you're running PHP in FCGI (which you probably are) then you can easily update PHP without any trouble. 首先,如果您正在FCGI中运行PHP(您可能正在运行),则可以轻松更新PHP,而不会遇到任何麻烦。 PHP 5.3 is EOL and you should make your server more secure by upgrading to at least 5.4. PHP 5.3是EOL,您应该通过升级到至少5.4来使服务器更安全。 Check out Atomicorp Panda for more information. 查阅Atomicorp Panda以获得更多信息。

Second, Plesk tends to segment each client into its own area. 其次,Plesk倾向于将每个客户划分到自己的区域。 You can't just edit their php.ini or httpd.conf because Plesk generates those. 您不能只编辑他们的php.ini或httpd.conf,因为Plesk会生成它们。 What you'll need to do is create a vhost.conf file in their conf directory. 您需要做的是在其conf目录中创建一个vhost.conf文件。 You can then do something like this (change the path to their directory) 然后,您可以执行以下操作(将路径更改为其目录)

<Directory /var/www/vhosts/domain.com>
      php_admin_flag engine on 
      php_admin_value max_input_var 6000
</Directory>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM