Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

PHP.ini not working!!!

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
tanquang
Posts: 14
Joined: Wed Nov 21, 2018 4:55 pm

Os: CentOS 5x
Web: apache
PHP.ini not working!!!
  • Quote

Post by tanquang » Fri Dec 07, 2018 11:25 am

I changed php.ini with upload_max_filesize and post_max_filesize in /etc/php.ini and in /home/username/web/domain/public_html as follows:

Code: Select all

upload_max_filesize = 3G
post_max_size = 3G
And the .htaccess file is as follows:

Code: Select all

<IfModule mod_php5.c>
   php_value upload_max_filesize 3G
   php_value post_max_size 3G
</IfModule>
But when I check using phpinfo(), I get the following information:

Code: Select all

Local Value | Master Value
upload_max_filesize 10M | 3G
post_max_size 8M | 3G
How to change the value of Local Value?
I used ini_get() and got the result returned like phpinfo():

Code: Select all

echo 'post_max_size = ' . ini_get('post_max_size') . "\n"; -> 8 MB
echo 'upload_max_filesize= ' . ini_get('upload_max_filesize') . "\n"; -> 10 MB
What is this error? How to fix?
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password