Overview
This article explains how to customize your PHP settings on a DreamPress website from the control panel or by using a .user.ini file. 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.
Customizing PHP settings from the panel
To customize your PHP settings from the panel:
- Navigate to the Manage Websites page.
- Click the Manage button to open Website settings, which allows you to modify various configurations for your site.
- Click the Settings tab.
-
In the Website Settings section, click Manage next to PHP.
The PHP Settings page opens. - Scroll down to the PHP settings section.
- On the General row, click the Modify button.
- Adjust the desired PHP values.
- Click Save Changes.
If you need to set PHP values that are not available in the control panel, you can customize them manually using a .user.ini file. See the section below.
Customizing PHP settings manually with 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.comYou 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.
Create 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.
Create 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.