Changing "upload_max_filesize" in php.ini has no effect

travisbell

Well-Known Member
#1
Hey guys,

Any idea why when I change the "upload_max_filesize" variable in my php.ini it has no effect on a PHP vhost?

**Edit, actually, same goes for the "upload_tmp_dir" variable. No matter what I change these to, they are not reflected in my php info script.

I am editing /opt/lsws/conf/php.ini

Cheers,
 
Last edited:

mistwang

LiteSpeed Staff
#2
Please check the file path of php.ini listed in the phpinfo() page, make sure the correct php.ini file has been used.

If you run php in suEXEC mode, the PHP process may not have permission to read /opt/lsws/conf/php.ini, put php.ini somewhere else like /opt/lsws/php/php.ini
 

travisbell

Well-Known Member
#3
Yup, that did it.

Next up, I am using Wordpress and I have noticed files over ~500KB just don't want to upload.

You think this is a LS/PHP problem, or WordPress? Basically, just wondering if you have ever seen something like this before.

Cheers,
 
Top