Php max upload problem


(Alderman) #1

Hi.

 

In trying to get our preprod (5.0.2.0) and dev (4.16.0) environments in line with live (5.0.2.0 which squiz manage ) we've increased the php maximum file upload size to 20Mb from the default 2Mb.  We've restarted apache but Squiz on both platforms still reports the default 2Mb.

 

Any thoughts?

 

Thanks.

 

Jeff.


(Tbaatar) #2

You can find the answer here: http://forums.squizsuite.net/index.php?showtopic=11905


(Alderman) #3

Sadly both of those set and apache restarted to no avail :-)


(Marcus Fong) #4

I don’t know how your particular system is set up, but it’s possible for upload_max_filesize and post_max_size to be set via your Apache configuration, overriding the values configured in php.ini. If you’re running Apache on Red Hat Enterprise Linux, CentOS or Scientific Linux, try running the command:

egrep -ir ‘post_max|upload_max’ /etc/httpd/conf*


…and see if it gives you back any results.


(Alderman) #5

Thanks Marcus - will do.


(Alderman) #6

that returned nothing :-(


(Nic Hubbard) #7

that returned nothing :-(

 

Well, your conf file might not be in that location. Make sure you know the location, and change the path.


(Benjamin Pearson) #8

It might be located under /etc/php instead of the apache conf files.


(Marcus Fong) #9

One other possibility comes to mind... what's your OS and PHP version?

 

If you're running PHP 5.4 on Red Hat Enterprise Linux 6 or Scientific Linux 6, you may need to look in "/opt/rh/php54/root/etc/php.ini" instead of the usual "/etc/php.ini".


(Alderman) #10

Our apache is indeed in /etc/httpd

 

We are on Centos 6.4 with php 5.3.3