Creating a phprc file

Helpful links

 * SSH wiki tutorial
 * FTP wiki tutorial
 * What is Vi?

Creating a phprc for your website via SSH
 Create the directory for your phprc file by running one of the following commands inside your /home/ directory:  PHP 5.3 mkdir -p ~/.php/5.3 PHP 5.4 mkdir -p ~/.php/5.4  After making that directory, run the following command to create the actual phprc file: vi phprc Inside the files, place your variables by pressing the i key on the keyboard to ‘insert’. 

Turning on error logging
log_errors = 1 error_log = /home/USERNAME/php.log


 * Replace USERNAME with your username.

Increasing memory limits
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 500 max_input_time = 500

Increasing just your memory limits
memory_limit = 128M


 * 1) Press ESC on the keyboard
 * 2) Type the following command:
 * :wq!
 * 1) Hit ENTER. Alternatively, you can press:
 * Shift + ZZ

That should help get you in the right direction. Just allow some time for it to reload php and begin to work.

Creating a phprc for your website via FTP

 * 1) Log in to your website through FTP
 * 2) Once you log in, navigate to /home/username
 * 3) Create a folder (right click > New Directory) named .php
 * 4) Follow the instructions above by creating that second directory for your version of php inside the .php directory
 * 5) Create a directory called 5.3 or 5.4 depending on the version you have on your site (you can view this at Manage Domains > Edit)
 * 6) Create the file called phprc with the variable above, or the ones you need in the text editor of your choice such as TextEdit (Mac) or Notepad (Windows)
 * 7) Save the file as phprc
 * 8) Upload that file to /home/username/.php/5.x/ and make sure the name of the file is just phprc