Cannot increase upload filesize limit on WordPress installation

#1
I am using this plugin to migrate a WordPress site from another server.

My file is over 2GB, however, and the plugin interface tells me the file cannot be larger than 256MB.

I followed their advice and made edits to two files:

/var/www/html/wp-config.php:
Code:
@ini_set( 'upload_max_filesize' , '3072M' );
@ini_set( 'post_max_size', '3072M');
@ini_set( 'memory_limit', '3072M' );
@ini_set( 'max_execution_time', '300' );
@ini_set( 'max_input_time', '300' );
/var/www/php.ini:
Code:
upload_max_filesize = 3072M
post_max_size = 3072M
max_execution_time = 1800
I restarted the server with these changes, but the limit remains. What can I do?

1685688869831.png
 

Colcol

New Member
#2
I am a complete OLS amateur, but from what I can tell there are different versions of PHP floating around on OLS (php, lsphp etc): https://forum.openlitespeed.org/threads/lsphp74-bin-lsphp-vs-php-vs-php7-4-and-wp-cli.4746/

I had a similar WordPress problem and looking back at my notes the file to create/alter for upload_max_filesize etc was:

/usr/local/lsws/lsphp74/etc/php/7.4/mods-available/wordpress.ini

You may be running a different version of lsphp and OS (Debian for me). I think when we set up a website vHost in OLS, we have to link it to a particular PHP in a script handler (in my case Command: /usr/local/lsws/lsphp74/bin/lsphp)

Hope this helps a bit
 

Cold-Egg

Administrator
#3
@mark.norgate

Not sure if you have per-vhost php.ini setup correctly. What if you try to edit the default php.ini file e.g. /usr/local/lsws/lsphp81/etc/php/8.1/litespeed/php.ini directly, and reload PHP with "killall lsphp" command? Does that work?
 
Top