How do I create a phprc file via FTP?





Adding a phprc file through Filezilla

  2. Make sure you’re in your user's directory.
  3. In the user's directory, click into the .php directory which should already exist.
  4. In the .php directory you will see several folders for the different versions of PHP. Click into the version your site is running. Remember to first check which version of PHP your site is using. In this example, we’ll assume the site is using PHP 7.2.
  5. In this directory you'll see a phprc file.
  6. Right-click on the phprc file, and then choose View/Edit.
    A default text editor opens for you to add your customizations

    When you originally open this file, you will notice the following lines of code added by DreamHost.

    ; {{{ The following lines were automatically added by DreamHost
    ; }}} That's all from DreamHost

    Your code should be placed below the DreamHost code block. Do not add any lines within the beginning and ending semicolons. 

    If you place your code within the semicolons, it will be overwritten by the server.

  7. Enter any of your customizations below that line.
  8. When you try to save this file in Filezilla, the following pop-up box opens.
  9. Check the box which says 'Finish editing and delete local file', then click the Yes button to save.

Killing off running PHP processes


Confirming your changes





For example, if the user has three domains where two are running PHP 7.2 and the third is running PHP 7.3, only the first two domains running 7.2 would be affected by the phprc file. You would need to create a separate phprc file for the PHP 7.3 site.

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?