Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

upload_max_filesize doesn't change !?

Hey there,

I am near to rage out -.-

I am running a Webserver at my home on a bananapi running raspbian.
now i need to allow bigger files to upload on my server.

in /etc/php5/apache2/php.ini
i changed following things:
PHP Code

<?php 
upload_max_filesize 
= 20M
post_max_size 
= 20M
memory_limit 
= 512M 

now when i take a look at phpinfo(); only memory_limit changes.. the other two just ignore everything i type in...

of course i restarted apache..

anybody some ideas what could be the problem?



--------- EDIT


Okay a freind found a solution.. if anyone ever has the same problem.

i just had to create a file calles "user.ini" at /etc/php5/apache2/conf.d
with this content:
PHP Code

<?php 
upload_max_filesize 
= 20M
post_max_size 
= 20M 
[Image: ln2sPXQ.gif]
I'm sure if you look in your php.ini there is somewhere further in the file that redefines the upload limit size, if you care or want to know why it's doing this. Because the extra file is being loaded after that second upload limit is set it overwrites it.
you can also change it via .htaccess

php_value post_max_size 20M
php_value upload_max_filesize 20M
php_value memory_limit 512M
Are you 100% sure its the right php.ini? use phpinfo() to confirm and see if the settings are active!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Javascript]  by KαѕρerNov 21, 2018 04:49 PM 1 136 Nov 21, 2018 04:49 PM
Last Post: Disease
[PHP] by vitalitasiaOct 13, 2014 11:21 AM 1 129 Oct 13, 2014 11:21 AM
Last Post: AppleJuice
[PHP] by vlajkeJul 5, 2012 08:53 AM 0 106 Jul 5, 2012 08:53 AM
Last Post: vlajke