From GD Walkthroughs and Advice
Jump to: navigation, search

Creating the file from the file manager

1. Inside of file manager click the add new file button

2. Name the file .user.ini

3. Select the file in the list of files

4. Edit the file

5. Put in the desired code

What is a .user.ini file?

a .user.ini file is one of the default configuration file for running applications that require PHP. It is useful for some hosting plans that can not use/ should not use a php.ini or a php5.ini. It is used to control variables such as upload sizes, file timeouts, and resource limits.

What values can be edited inside it?

There are a lot of values that can be set in the .user.ini file but only a couple are going to be used often.

memory_limit = 128M

Most hosting defaults to around 128m In some cases you may need to raise this value, in those circumstances I would recommend moving up your memory limit by 64m increments. If you are still having issues with your memory make sure that the values are being excepted using a phpinfo() script. In rare cases a plugin or theme may need you to set the memory to infinite(-1m); This can cause major problems so make sure to backup your site before making the change.

upload_max_filesize = 100M

The maximum size of an uploaded file.

post_max_size = 100M

Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. Generally speaking, post_max_size should be larger than memory_limit.

max_execution_time = 30

This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server.