PHP is a scripting language used primarily on the web. PHP is highly customizable and has many settings that you will be able to modify if needed for a certain program or application.

How do I view my php settings?

To view your current php settings, create a php page with the following code:

<? phpinfo(); ?>

The output of the above page is referenced as a 'php info page' and generally is named phpinfo.php. The result of your php info page should be similar to this page:

http://ehub22.webhostinghub.com/phpinfo.php

How do I modify my php settings?

You can update your local php.ini file in order to make modifications to your php setup.  In your php.ini file, do a search to find the directive that you need to modify. A few of the most frequently changed settings are:

max_execution_time = 30
max_input_time = 60
memory_limit = 256M

In this example, to change the max_input_time from 30 seconds to 120, simply change 30 to 120 and save the file. Refresh your php info page, and you should see the changes. 

I can't find my php.ini file!

The php.ini file by default will be located at public_html/php.ini. If you do not see a file named php.ini in your public_html, please contact our Support Department and we will be happy to add one to your account for you. 

I made changes to the php.ini file, but I do not see the changes!

By default, the php.ini only affects the files in the folder that it is placed in, and not other folders on the account.  In other words, updating your php.ini values in public_html/php.ini will not affect php files in subfolders of your public_html, such as public_html/shop. To correct this problem, you can either:

1. Copy your public_html/php.ini file to each folder
2. Add the following to the top of your public_html/.htaccess file:

suPHP_ConfigPath /home/username/public_html

For example, if your username is userna5, replace username in the above line to userna5. More information can be found in our article How Do I Make My php.ini File Recursive? The .htaccess file is a hidden file, so make sure that hidden files are viewable if you are accessing your files through the cPanel File Manager or via FTP.

Did you find this article helpful?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

The Community Support team wrote the article you're looking at now. We like to think it's perfect, but we're sure you have some suggestions. Please, let us know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.