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\www.yourdomain.com\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\www.yourdomain.com\wwwroot\phpinfo.php)
2. Add the following line to your phpinfo.php file:

<?php phpinfo(); ?>

3. Save phpinfo.php
4. Visit http://www.yourdomain.com/phpinfo.php 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!

Leave a Reply

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


4 − 2 =

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>