Customizing your PHP settings with DreamPress

 

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:

  1. Navigate to the Manage Websites page.
  2. Click the Manage button to open Website settings, which allows you to modify various configurations for your site.
    • If in Grid view, click the Manage button at the bottom of the website box.
    • If in List view, click the Manage button at the far right of your domain name.
  3. Click the Settings tab.
  4. In the Website Settings section, click Manage next to PHP.

    The PHP Settings page opens.
  5. Scroll down to the PHP settings section.
  6. On the General row, click the Modify button.
  7. Adjust the desired PHP values.
  8. 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.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.

Create a .user.ini file via FTP (recommended for beginners)

  1. Log in to your DreamPress website. You can use the file manager in the panel or a third-party client to log in.
  2. Once logged in, navigate to your website directory where your files are located.
  3. 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)

  1. Locate your login credentials.
  2. Log in to your server via SSH.

    [server]$ cd ~/example.com
  3. Navigate to your website's directory.
  4. In your website's directory, create a new .user.ini file.

Your new settings are active approximately five minutes after saving the file.

See also

Did this article answer your questions?

Still not finding what you're looking for?