Custom php.ini On Windows Hosting

To create your custom php.ini, you just need to follow these steps:

1. Create a file named “.user.ini” (without quotes)
2. Place your new .user.ini file in the wwwroot of your application (example: E:\HostingSpaces\Username\\wwwroot\.user.ini) This can be done either through your File Manager in your WebsitePanel or through FTP.
3. Add PHP directives to your new .user.ini file such as:

memory_limit = 600M;
upload_max_filesize = 1000M;

4. Recycle your website’s application pool.

The values you configure in this document will override the master values set in your PHP instance’s global php.ini file, the same way it does on Linux.
The next part is testing our change:

1. Create a phpinfo.php file in your wwwroot root (Example: E:\HostingSpaces\Username\\wwwroot\phpinfo.php)
2. Add the following line to your phpinfo.php file:

<?php phpinfo(); ?>

3. Save phpinfo.php
4. Visit in your browser.
5. If done followed the steps above correctly, you should now see the new, modified value(s) in the first column, like this:

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , | Posted under DotNet/Windows Hosting | RSS 2.0

Author Spotlight

Arian Jahansouz

Arian Jahansouz

Hello, I am Arian! I have been writing for Arvixe since 2009 and now head the Arvixe Blog. Feel free to contact me at any time with questions or comments!

3 Comments on Custom php.ini On Windows Hosting

  1. Hi Arian,
    I have a problem with php.ini.
    Yesterday I couldn’t install joomla because it says ‘MAGIC_QUOTES_GPC’ must be off. However in the php.ini files it is ‘OFF’ also in the cpanel under PHP Settings I try to change to ‘OFF’ but it doesn’t want to.
    So now how to do. Do you have any advise ?? Please.
    Thks, Alain

  2. manish z says:

    Thanks a lot for this :)

Leave a Reply

Your email address will not be published. Required fields are marked *

3 × 8 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>