Hows to update limits in php on our servers

To edit the server default settings for Wordpress and Joomla requirements as well as other php applications you can edit and insert the following lines in the configuration files to allow your to change the limits on your website

You can create a .user.ini file in the root folder of the website, this is "wwwroot" in the file manager

.USER.INI File (please note the settings will only apply after a 5min period)

You can create .user.ini file and put setting (without any indent or space) . for example  .user.ini config is:

max_execution_time=600
upload_max_filesize=200M
post_max_size=200M
memory_limit=256M 

Alternatively you can do it in the application config file itself.


Wordpress

1. Edit wp-config.php file

@ini_set( 'upload_max_filesize' , '128M' );
@ini_set( 'post_max_size', '128M');
@ini_set( 'memory_limit', '256M' );
@ini_set( 'max_execution_time', '300' );
@ini_set( 'max_input_time', '300' );

for wordpress memory limit alone you can use
define( 'WP_MEMORY_LIMIT', '256M' );


OR

2. Navigate to your active theme folder in "wp-content" and edit your "functions.php" file. Open it up, and at the very top, insert:

@ini_set( 'upload_max_filesize' , '128M' ); 
@ini_set( 'post_max_size', '128M');
@ini_set( 'memory_limit', '256M' );
@ini_set( 'max_execution_time', '300' );
@ini_set( 'max_input_time', '300' );

for wordpress memory limit alone you can use
define(
'WP_MEMORY_LIMIT', '256M'
);

Joomla
edit the configuration.php file in the root folder and at the top of the file insert

ini_set('post_max_size','64M');
ini_set('upload_max_filesize','64M')

and then save the file

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Starting to send out bulk emails

Welcome to the bulk mail system, this document will take you through the first steps you need to...

How to create or update an FTP Account

How to create an FTP Account in SolidCp Login into SolidCP by going to...

How Do I FTP my website up to HostworX Servers with WSFTPPro

To upload your Website files using WS FTP Pro :   Please open the WS FTP program from your...

Wordpress - Migrating between sites, servers and folders

Wordpress saves certain parameters in the database which need to be modified if you move your...

How to install a SSL Certificate on your website

  1) Login to the SolidCp control panel http://cp.yourowndomainname or...