• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • Hosting
    • Web Hosting
    • VPS Hosting
    • WordPress Hosting
    • WooCommerce Hosting
  • Reseller
  • Enterprise
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

How To Change The Value Of A PHP Setting In InterWorx

Ryan Gray

Published on: February 25, 2020

Categories: Website Development 11

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.

Related Posts

How to Forward with Masking: And Is It a Good Idea?

Here's all you need to know about how to forward with masking. Typically, it's not a good idea to do this.

3 Best WordPress Accordion Plugins

Don't get overwhelmed - we've got three of the best options for WordPress accordion plugins based on our hands-on experience.

Have A Plan For Your Website When You Die!

A bit of a morbid topic, I know, but it recently came to my attention when I read that Bill Slawsky died in mid-May via a Tweet from his company: For decades, Bill Slawsky managed a blog called SEO by the Sea, keeping track of the latest Google updates and more. For the community, it […]

Table Size in PostgreSQL: Everything You Need To Know

What is PostgreSQL? What is a database? What is a table? What are the three parts of a postgres table? How to get table size in postgres? How to get table tablespace size in postgres? How to get table index size in postgres? How to get total table size in postgres? Why are tables larger on-disk than in memory?

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
  7. Edbert says

    December 4, 2021 at 3:20 am

    Hello, when I have created the info.php, and then I try mywebsite.com/info.php it mentions 404 Not Found The requested URL was not found on this server…

    And when I have changed the hidden files into “show”, I can’t find the public html you mentioned there…

    Reply
  8. Edbert says

    December 4, 2021 at 4:05 am

    Hello, I create the info.php and then went to mywebsite.com/info.php but then it just display error 404 not found. And then when I have change the hidden files into show, I can’t find the public HTML you showed… Please help.

    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

Follow & Subscribe

Exclusive promos, content and more!

Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup (2023)

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • Domains
Help & Support
  • NameHero Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2023 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA