Customizing your PHP settings with DreamPress

A .user.ini file is a simple text file that allows you to adjust your PHP settings. For example, the version of PHP on the server comes with a few default settings such as a memory_limit of 90MB and you can change this using a .user.ini file.

What PHP settings can I customize?

View the following category for a list of articles of common PHP customizations:

Creating a .user.ini file

To customize your PHP settings, 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 into your server via FTP or SSH. The following sections describe how to do this for both methods.

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

  1. Download an FTP client. This example uses 'Filezilla'.
  2. Navigate to the (Panel > 'DreamPress' > 'Dashboard') page.
  3. To the right of your domain, click the Manage button.
    Your SFTP username and servername appear on this page. Make a note of them:
    DreamPress_user_ini_01.png
  4. Open the (Panel > 'Users' > 'Manage Users') page to view this user's password. You must include the user's password in the following steps.
    DreamPress_user_ini_02.png
    • When you locate your username, click the Edit button to the right. On this page, you can update the password.
  5. Open your FTP client and log into your server. For example:
    DreamPress_user_ini_03.png
  6. Click into your website folder. In this directory, a full list of all of your site's WordPress files appears.
  7. In this directory, create a new file named .user.ini.

    Make sure the filename starts with a period.

  8. Once you save it, your settings automatically update in approximately 5 minutes.

Creating a .user.ini file via SSH (for advanced users)

  1. Navigate to the (Panel > 'DreamPress' > 'Dashboard') page.
  2. To the right of your domain, click the Manage button.
    Your SFTP username and servername appear on this page. Make a note of them:
    DreamPress_user_ini_01.png
  3. Open the (Panel > 'Users' > 'Manage Users')) page to view this user's password. You must include the user's password in the following steps.
    DreamPress_user_ini_02.png
    • When you locate your username, click the Edit button to the right. On this page, you can update the password.
  4. Visit the SSH overview and SSH client software articles for instructions on how to log into your DreamPress server.
    [server]$ cd ~/example.com
  5. Navigate to your website's directory.
  6. In your website's directory, create a file named .user.ini.

    Make sure the filename starts with a period.

  7. Once you save it, your settings automatically update in approximately 5 minutes.

Updating your changes

After you've created your phprc file, you only need to wait 5 minutes for the changes to update. This value is set as 300 seconds in your PHP settings, so you do not need to manually restart PHP for the changes to take effect.

Did this article answer your questions?

Article last updated .