Overview
A php.ini (phprc) file lets you override DreamHost's default PHP settings — such as memory_limit — by editing a single text file. This article walks you through how to set one up.
DreamPress websites
See this article if you need to adjust your PHP settings within DreamPress.
How do I create a php.ini file?
The following steps explain how to create a php.ini file to manage your PHP settings.
The standard term for this file is php.ini; however, DreamHost uses the term phprc file instead. This acts the same way — only the name is different. In this article, only the term phprc is used.
Determine which PHP version your website uses
Before you create a phprc file, you’ll need to know which version of PHP your site is running. The following articles explain how to view the PHP version of your site and change it:
When you create your phprc file on the server, you'll use this PHP version to specify the correct location of the file.
Create a phprc file
You can create a phprc file by logging into your server via FTP or SSH. The following articles walk you through each option:
- Create a phprc file via FTP (easier for beginners)
- Create a phprc file via SSH (for advanced users)
Update your changes
After you've created your phprc file, you should update your PHP configuration to ensure the new settings take effect. See this article to learn more.
See also
DreamHost links
- Create a phprc file via FTP
- Create a phprc file via SSH
- Enable PHP extensions and loaders
- Custom Configurations