I want to adjust the post_max_size and upload_max_filesize without altering /etc/php.ini
PHP Version 5.3.27 root directory: /var/www/html/my_site
Here are the things that I did:
I added php.ini under html directory (didn't work)
memory_limit = 96M post_max_size = 64M upload_max_filesize = 64M
I added .htaccess file under html directory (didn't work)
php_value upload_max_filesize 64M php_value post_max_size 64M
I also added both of them under /my_site directory and none of them worked
Everytime I add each of them I restart the server
I also changed php.ini to php5.ini
I also changed
php_value
to
php5_value
Adjusted permission issues
What went wrong?
ini_get(flag_name)
in your php files. e.g.:echo ini_get('upload_max_filesize')
would output the value ofupload_max_filesize
. – Simon Robb