Not Equal C && !=C && 不等于西
RSS icon Email icon Home icon
  • Best way to create you own php.ini on Windows host

    Posted on June 25th, 2012 Sean Add comments

         I have a Windows host package on Godaddy.com, and recently moved my wordpress blog to this hosting server. Sometimes I need to change some php settings for the wordpress, so I decide to create my own php.ini instead of using Godaddy one.
         First of all, we don’t need to create a brand new php.ini from scratch. We can just use Godaddy’s default php.ini as reference. So, just create a php file called “phpinfo.php”, put the following code below and upload the file to your hosting server (this step is to find where the Godaddy’s php.ini file located. If you know the location, just skip this step):

         Browse this file from your hosting, and will see the phpinfo page including all the settings. Look at the line of “Loaded Configuration File” section, find the location of Godaddy’s php.ini. In my case, it’s “c:\cgi\php5\php.ini”.
         Next, create another file called “phpfile.php”, and put the following code below, then upload to the server.

         Browser this file and get a page with lot of plain text. Use your browser to view the source of this page, save the source as “php5.ini” (Note: NOT “php.ini”), and you got Godaddy’s php.ini already.
         In my case, I just need to change some settings like below:

         After modified your php5.ini, upload it to the root directory of hosting server. In Godaddy hosting, you need to do the following:

    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 IIS Management icon.
    5. Click Recycle App Pool and follow any prompts.
    6. Reload the phpinfo.php page to see if the desired changes have taken effect.
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading...Loading...
    173 views

    Leave a Reply

    Be the First to Comment!