Overview
This article explains how to create a .user.ini file to customize your PHP settings on a DreamPress website. See these articles to learn more about common PHP customizations.
Adjusting the WordPress memory limit
If you're trying to increase your site's PHP memory limit in a WordPress site, you will need to take an extra step after you have edited your .user.ini file. See this article to learn more about how to edit your wp-config.php file.
How to create a .user.ini file
To customize your PHP settings, you create a file named .user.ini in your website's directory. For example:
/home/username/example.com
You can create a .user.ini file by logging in to your server via FTP or SSH. The following sections describe how to do this for both methods.
Make sure the .user.ini filename starts with a period.
Creating a .user.ini file via FTP (recommended for beginners)
- Log in to your DreamPress website. You can use the file manager in the panel or a third-party client to log in.
- Once logged in, navigate to your website directory where your files are located.
- In this directory, create a new .user.ini file.
Your new settings are active approximately five minutes after saving the file.
Creating a .user.ini file via SSH (for advanced users)
- Locate your login credentials.
- Log in to your server via SSH.
[server]$ cd ~/example.com
- Navigate to your website's directory.
- In your website's directory, create a new .user.ini file.
Your new settings are active approximately five minutes after saving the file.