Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Friday, June 1, 2012

Change php settings of service in Godaddy linux

When I was looking for how to change the maximum upload file size in Godaddy, I was misled by php.ini in the root directory. Actually, the individual configuration file should be php5.ini if your php version is V5.x.x.

Three steps are needed to change the php settings:
1. Check your current php version.
     1) Add a phpinfo.php file in one directory of your website
     2) Add <?php phpinfo();?> to the file
     3) Access /yourwebsite.com/xxx/phpinfo.php
2. If your version is V5.x.x.
    1) Create a new file with name php5.ini in root directory.
    2) add the parameters you need to the file,like

  • memory_limit = 50M
  •   post_max_size = 10M
  • file_uploads = On
  • upload_max_filesize = 10M

   ELSE If your php version is V4.x.x. or lower
     The configuration file is the php.ini file in the root directory.
3. Check your phpinfo.php and find the parameters' values of what your care about. If it doesn't change, follow these steps to reload your php settings.

To Kill Web System Processes on Linux Shared Hosting Accounts
  1. Log in to your Account Manager.
  2. Click Web Hosting.
  3. Next to the hosting account you want to use, click Launch.
  4. In the Content section of the Hosting Control Center, click the System Processes icon.
  5. Click End Web and follow any prompts.
  6. Reload the phpinfo.php page to see if the desired changes have taken effect.
NOTE: You will not find the start button because the End Web is for restart.