Tag Archives: max

Adjusting PHP Settings With GoDaddy cPanel

To correspond with our video on using the php.ini file, the phpinfo.php file and the Select PHP Version PHP Options in GoDaddy cPanel to adjust php settings; I have provided the code below to put in the files that you will upload to your root folder. In our case it is the public_html folder which is the root folder for GoDaddy cPanel hosting accounts.

As shown in the YouTube Video, you will create the php.ini file and the phpinfo.php file through FTP on the server. Then using your text editor you will edit the php.ini file and the phpinfo.php files. While Notepad or TextEdit are acceptable it is a better practice to use a code editor like Sublime Text, Coda or Notepad++. In our video you will see us use Sublime Text as our code editing program and Transmit for our FTP.

Creating the phpinfo.php File

First you’ll need the code that you will add to the phpinfo.php file after you create it on the server through FTP. Copy and paste the code into your phpinfo.php. After you have saved the file back to your hosting account be sure to Kill Processes on you cPanel. Type your domain into the URL bar of the browser and add /phpinfo.php to the end of your domain.

FILE NAME – phpinfo.php
TO VIEW THIS FILE – PasteYourDotWhateverHere/phpinfo.php
CODE-

<?php phpinfo(); ?>

Creating the php.ini File

Below is the code that you will need to add to the php.ini file after you create it on the server through FTP. Copy and paste the code into your php.ini. After you have saved the file back to your hosting account be sure to Kill Processes on you cPanel. Type your domain into the URL bar of the browser and add /phpinfo.php to the end of your domain. Find the settings that you have updated on the phpinfo.php table to be sure they have taken effect on the hosting account.

FILE NAME – php.ini
CODE-

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

These are just a few of the php settings that can be added to the php.ini file. For a full list of php directives check out the php.net manual.

Fixing common php website errors including php errors from WordPress, Drupal, Joomla!, OpenCart, PrestaShop, ZenCart, Magento, WooCommerce and more, can be easily solved with the php.ini file. Additionally these php website programs will run better after php settings adjustments are made.