• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Startup Hero

The Official Blog Of Name Hero

Learn To Fly Above The Competition Get Started
  • HomeWelcome
  • CoursesVideo Training Center
  • About UsWhat is StartupHero?
  • BlogGet the latest
  • Start HereStartup 101
  • SpeakingPodcast & Media
  • ResourcesTools to help You
    • Reselling WordPress Hosting
    • Resell Hero
    • How To Start A Blog
  • NameHeroCloud Web Hosting

How To Change The Value Of A PHP Setting In InterWorx

By Ryan Gray on February 25, 2020 9

How To Change The Value Of A PHP Setting In InterWorx

Since announcing free InterWorx with all our VPS hosting packages and Cloud Dedicated servers, we’ve had hundreds of happy customers switch from cPanel where they don’t have to worry about the new “per account” license structure.

While InterWorx comes native with a PHP selector, allowing users to select specific PHP versions for their domains/sub-domains, often we’ll get support requests on how to change values of a php setting so they can customize their website with a specific WordPress theme or plugin (i.e. max input variables, upload limit, memory limit, etc.):

PHP Selector In SiteWorx

View Default PHP Values

Prior to customizing PHP values, it’s always a good idea to view the server-default values to see what needs to be modified.

This can easily be done by uploading a PHP info file to the root directory of your domain or sub-domain.

Simply create a file called info.php inside the public html folder of the domain/sub-domain (i.e. /example.com/html/) with the following line of code:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

Next, type the URL of that file in your browser to view the defaults (i.e. https://example.com/info.php). It should look something like this:

PHP Info File

You can use the find function in your web browser to locate the value you’re wanting to check/modify. For example, max_input_vars:

Default max_input_vars

You’ll notice the two columns. The first column is the local value – meaning the specific value for the unique domain and the second column is the master value – meaning the specific value for the server itself.

To customize the value for a specific domain/sub-domain, for things like a WordPress plugin or theme, it’s the local value you’re going to update (the first column).

Create A Custom .user.ini File

In order to customize the local PHP values, you’ll need to create a custom .user.ini file with the specifics inside the document root for the domain or sub-domain (i.e. /example.com/html).

This can be done inside your favorite FTP or SSH client or even easily inside the SiteWorx File Manager, using your web browser.

The easiest way is to simply login to the SiteWorx account for the domain or sub-domain and navigate to File Manager on the left menu:

SiteWorx File Manager

By default the File Manager doesn’t show “hidden files” which include any file or directory that starts with a period (i.e. .user.ini). Therefore we need to modify that setting so you’ll be able to double check one doesn’t already exist and can also easily modify the one you create.

To do this, you’ll want to hover Settings at the top and click on Preferences:

SiteWorx File Manager Preferences

Beside Hidden Files click the drop-down menu and change it to Show and click on Save Changes:

Show Hidden Files In SiteWorx File Manager

When you click Save Changes, it’ll take you back to your root directory. From here, you should click on the domain or subdomain that you’re wanting to modify. Additionally, you’ll notice a public_html folder, which is a symbolic link for the master domain of the SiteWorx account.

For my example, I’m going to modify the PHP values for the defaultpanel.com domain:

You’ll then be inside the root directory for the domain, where you can see a backup folder, as well as a directory called html, meaning where all of your public-facing files are stored. Click on the html folder:

If you created an info.php file as mentioned above, you’ll also see it inside this folder. This will be useful so you can confirm your changes take effect.

Next, click on New File and enter .user.ini for the File Name:

In the text area below, enter the values you wish to customize. Some of the most common are:

upload_max_filesize = xxM;
post_max_size = xxM;
memory_limit = xxM;
max_input_vars = xx;
max_execution_time = xx;

Replace ‘xx’ with the values you’re needing. Most WordPress plugins or themes will note these in their requirements or you may have experienced an error letting you know these values need increased.

For example, I may wish to change my max upload and post size to 64MB, memory limit to 256MB, max input variables to 5000, and max execution time to 300:

upload_max_filesize = 64M;
post_max_size = 64M;
memory_limit = 256M;
max_input_vars = 5000;
max_execution_time = 300;

This would make my custom .user.ini file look like this:

Custom PHP .user.ini File InterWorx

Click Save and then verify by visiting that info.php file in your web browser. You should notice the values on the first column should match your custom values:

Verify Custom PHP Values

Congratulations! You have now modified your PHP values for your website! If you need to add more in the future, you can simply go back and edit that file.

For security, you’ll also want to delete that info.php file.

If you have any questions, feel free to reach out to our team of SuperHeros 24x7x365 via phone, live chat, or helpdesk!

Ryan Gray

Ryan Gray is the founder and CEO of NameHero, one of the fastest growing independent web hosts in the United States. Ryan has been working online since 1998 and has over two-decades experience in Internet Entrepreneurship.

Reader Interactions

Comments

  1. Todd Fox says

    August 16, 2020 at 6:39 pm

    Hi Ryan! Thanks so much for this. I’m still fumbling my way through switching from cPanel to Interworx. This guide is exactly what I needed and it worked like a charm to meet my theme’s min requirements!

    Reply
    • Ryan Gray says

      August 17, 2020 at 4:49 pm

      You’re most welcome!

      Reply
  2. Steven Bowden says

    October 6, 2020 at 4:27 am

    Guys is there an easy way to change the upload limit on 20 subdomians I am a newbie Help

    Reply
  3. Fernando says

    October 9, 2020 at 1:54 am

    This was very helpful, thank you.

    Reply
    • Ryan Gray says

      October 12, 2020 at 10:35 am

      You are most welcome!

      Reply
  4. James West says

    October 9, 2020 at 1:25 pm

    Solved my problem, never knew about the local .user.php solution before, worked first time. Thank you so much Ryan

    Reply
    • Ryan Gray says

      October 12, 2020 at 10:35 am

      Glad to hear!!

      Reply
  5. JOSELINE RAMOS says

    October 26, 2020 at 2:15 pm

    Hi, How Can I update the PHP of WordPress is out dated. Using Interworks. I allready Change the setting for the file but wordpress site says my PHP is 7.3.23.

    Reply
  6. Rita says

    December 17, 2020 at 5:55 am

    Hello, thank you for the information but it gets some confusing. I purchased the upgrade of DFY and I hope to get full assistance on this issue. BUT let me tell you that is is a great product. Thank you and I will be on stand by or assistance,

    Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Connect With Us!

Superhero Resources

Fix Common Issues

  • How To Setup Free And Automatic SSL Certificates
  • How To Setup Cloudflare With Railgun
  • How To Fix Memory Exhausted Errors In WordPress
  • How To Edit PHP Version/Upload Limit/Add Extensions
  • How To Move/Migrate Your Business To Name Hero

Free Guides

  • How To Setup NameHero Hosting
  • How To Create A Web Hosting Business With WordPress
  • How To Start A WordPress Blog
  • How To Migrate WordPress To A VPS
  • How To Speed Test And Optimize Your WordPress Website
  • Magento 2.X Installation Guide
  • How To Clean Up A WordPress Hack

Training

Recent Posts

  • Disable JSON REST Entirely on WordPress!
  • Using Cloudflare’s “URL Normalization” Rules
  • Will Google FLOC Affect Website Owners?
  • Good Riddance To Contact Forms – Hello Google Forms!
  • How To Identify CLS Issues Using Google Chrome
  • How To Achieve ~90% Cache Hit Ratio On Cloudflare
Subscribe in a reader
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • VPS Hosting
  • Twitter
  • Facebook
  • LinkedIn
  • YouTube
  • FTC Disclosure
  • Earnings Disclosure
  • Privacy Policy

Copyright © 2021 · Smart Passive Income Pro on Genesis Framework · WordPress · Log in