[et_pb_section fb_built=”1″ _builder_version=”3.13.1″ custom_padding=”0|0px|3px|0px|false|false”][/et_pb_section][et_pb_section fb_built=”1″ fullwidth=”on” admin_label=”Page Header” _builder_version=”3.0.79″ background_image=”https://digitallythrive.com/wp-content/uploads/2018/08/business-12.jpg” parallax=”on” animation_direction=”top”][et_pb_fullwidth_header title=”View your PHP Settings with a phpinfo Page” text_orientation=”center” scroll_down_icon_size=”48px” admin_label=”Hero Section” _builder_version=”3.16.1″ title_font=”Cardo|700|||||||” title_text_align=”center” title_font_size=”36px” title_line_height=”1.4em” content_font_size=”22px” content_line_height=”1.8em” subhead_font=”||||” background_color=”rgba(255, 255, 255, 0)” use_background_color_gradient=”on” background_color_gradient_start=”rgba(58,52,226,0.93)” background_color_gradient_end=”rgba(73,108,220,0.7)” background_size=”initial” background_position=”top_left” background_repeat=”repeat” custom_button_two=”on” button_two_text_size=”16px” button_two_border_width=”2px” button_two_border_color=”#ffffff” button_two_border_radius=”0″ button_two_letter_spacing=”2″ button_two_font=”Montserrat|||on|” button_two_use_icon=”off” custom_button_one=”on” button_one_text_size=”16px” button_one_bg_color=”#6eba01″ button_one_border_width=”2px” button_one_border_color=”#6eba01″ button_one_border_radius=”0″ button_one_letter_spacing=”2″ button_one_font=”Montserrat|||on|” button_one_use_icon=”off” module_alignment=”left” custom_margin=”|||-40px” custom_padding=”|||0px” animation_style=”fade” button_one_text_color_hover=”#6eba01″ button_two_text_color_hover=”#6eba01″ button_one_border_color_hover=”#ffffff” button_two_border_color_hover=”#ffffff” button_one_border_radius_hover=”0″ button_two_border_radius_hover=”0″ button_one_letter_spacing_hover=”2″ button_two_letter_spacing_hover=”2″ button_one_bg_color_hover=”#ffffff” button_two_bg_color_hover=”#ffffff” button_one_text_size__hover_enabled=”off” button_two_text_size__hover_enabled=”off” button_one_text_color__hover_enabled=”on” button_one_text_color__hover=”#6eba01″ button_two_text_color__hover_enabled=”on” button_two_text_color__hover=”#6eba01″ button_one_border_width__hover_enabled=”off” button_two_border_width__hover_enabled=”off” button_one_border_color__hover_enabled=”on” button_one_border_color__hover=”#ffffff” button_two_border_color__hover_enabled=”on” button_two_border_color__hover=”#ffffff” button_one_border_radius__hover_enabled=”on” button_one_border_radius__hover=”0″ button_two_border_radius__hover_enabled=”on” button_two_border_radius__hover=”0″ button_one_letter_spacing__hover_enabled=”on” button_one_letter_spacing__hover=”2″ button_two_letter_spacing__hover_enabled=”on” button_two_letter_spacing__hover=”2″ button_one_bg_color__hover_enabled=”on” button_one_bg_color__hover=”#ffffff” button_two_bg_color__hover_enabled=”on” button_two_bg_color__hover=”#ffffff”][/et_pb_fullwidth_header][/et_pb_section][et_pb_section fb_built=”1″ admin_label=”Blog” _builder_version=”3.0.78″ background_color=”#f4f4f4″][et_pb_row custom_padding=”0|0px|0|0px|false|false” _builder_version=”3.12.2″][et_pb_column type=”4_4″ _builder_version=”3.12.2″ parallax=”off” parallax_method=”on”][et_pb_video src=”https://www.youtube.com/watch?v=PTphCQ4jtm4&t=1s” _builder_version=”3.13.1″][/et_pb_video][et_pb_text _builder_version=”3.13.1″ text_font=”Open Sans||||||||” text_font_size=”16px” text_line_height=”1.8em” header_font=”||||||||”]

How to Read PHP Settings

In this tutorial, we will show you how to create a file to read what PHP version your hosting is set to, as well as output all of the PHP settings on your hosting.  We used our cPanel hosting account for this video.  To grab your own hosting, jump over to www.githosts.com for really cheap hosting – starting at $2.49/month.

PHP has many environmental variables that you are able to update as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are. To do that, you will need to create a phpinfo page. A phpinfo page shows you all of your php environment settings.

A phpinfo page is simply a php page with the following code:

[/et_pb_text][et_pb_text _builder_version=”3.13.1″ text_font=”||||||||” background_color=”#ffffff” border_radii=”on|1px|1px|1px|1px” border_width_all=”1px” custom_margin=”|||0px” custom_padding=”|||40px”]

<?php phpinfo(); ?>

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row custom_padding=”27px|0px|5px|0px|false|false” _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_text _builder_version=”3.13.1″ text_font=”||||||||” text_font_size=”16px” text_line_height=”1.8em” header_font=”||||||||” header_3_font=”||||||||”]

How to Create a phpinfo File

If you’re not familiar with how to create a phpinfo file, follow the steps below to create a phpinfo file using your File Manager.

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row custom_padding=”16px|0px|0|0px|false|false” _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_text _builder_version=”3.13.1″ text_font=”Open Sans||||||||” text_font_size=”16px” text_line_height=”1.8em”]
  1. Log into your cPanel.
  2. Get ready to upload through FTP or your File Manager.
  3. Navigate to the directory you are working with. This is important because each folder can actually be set to have different php settings. In this example, we are viewing the php settings for our main domain, so we are navigating to the public_html folder.
  4. In the top menu, click New File.
  5. When prompted for the file name, enter phpinfo.php (it can actually be named anything, phpinfo.php is simply a common name for the file).
  6. Find the phpinfo.php file in your list of files (it should have automatically updated). Right click on it and choose “Edit”. If you see a “Text Editor” prompt, choose “utf-8” from the drop down list and then click “Edit”.
  7. Enter the following text:       <?php phpinfo(); ?>

    Then click Save Changes.

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row custom_padding=”0|0px|27px|0px|false|false” _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_image src=”https://digitallythrive.com/wp-content/uploads/2018/09/phpinfo.png” _builder_version=”3.13.1″][/et_pb_image][/et_pb_column][/et_pb_row][et_pb_row custom_padding=”41px|0px|27px|0px|false|false” _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_text _builder_version=”3.13.1″ text_font=”||||||||” text_font_size=”16px” text_line_height=”1.8em”]

How to View your PHP Settings

After you have uploaded and created the file phpinfo.php, you may now visit the file in your browser.   For example, if you owned the domain example.com, you would type http://example.com/phpinfo.php.  The results should look like the picture below.

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_image src=”https://digitallythrive.com/wp-content/uploads/2018/09/upload_max_filesize.png” _builder_version=”3.13.1″][/et_pb_image][et_pb_text _builder_version=”3.13.1″ text_font=”||||||||” text_font_size=”16px” text_line_height=”1.8em”]

How to use this to your advantage.

If the entire reason you are reading this article, is because you have been trying to increase php settings, like memory_limit, or max_execution_time, you now have a cheat sheet that will show you live values.  

Hit ( Ctrl + f ) to search for your values.  Make the necessary changes to your .user.ini file, your php.ini file, or if you are lucky and have cPanel – literally go down to the ‘select php version’ button, and hit ‘select php options’ on the top right.  Click and edit the values and save.   

Don’t forget to kill php processes after making changes!  This is the most common mistake.  PHP needs to reset, in order for your changes to take effect.  To do this, scroll down to the software section in cPanel, click on ‘PHP Processes’, and click ‘Kill All’.  

Reload your phpinfo.php file, and check to see if the values have updated.  

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row custom_padding=”0|0px|0|0px|false|false” _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_video src=”https://www.youtube.com/watch?v=PTphCQ4jtm4&t=1s” _builder_version=”3.13.1″][/et_pb_video][et_pb_text _builder_version=”3.13.1″][/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row custom_padding=”27px|0px|0|0px|false|false” _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_text _builder_version=”3.13.1″ text_font=”||||||||” text_font_size=”16px” text_line_height=”1.8em”]

Here is an article from GitHosts.com about how to change your php settings on various servers.

[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section][et_pb_section fb_built=”1″ admin_label=”Footer” _builder_version=”3.13.1″ background_image=”https://digitallythrive.com/wp-content/uploads/2018/06/MG_0856_large.jpg” parallax=”on” custom_padding=”90px||90px|” saved_tabs=”all”][/et_pb_section][et_pb_section fb_built=”1″ _builder_version=”3.13.1″ custom_padding=”54px|0px|62px|0px|false|false”][et_pb_row _builder_version=”3.13.1″][et_pb_column type=”1_2″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_button button_url=”https://digitallythrive.com/how-to-format-64gb-sd-card-from-exfat-to-fat32/” button_text=”Format 64GB SD into FAT32″ button_alignment=”center” _builder_version=”3.16″ custom_button=”on” button_font=”||||||||” button_icon=”%%19%%” button_icon_placement=”left” button_text_size__hover_enabled=”off” button_one_text_size__hover_enabled=”off” button_two_text_size__hover_enabled=”off” button_text_color__hover_enabled=”off” button_one_text_color__hover_enabled=”off” button_two_text_color__hover_enabled=”off” button_border_width__hover_enabled=”off” button_one_border_width__hover_enabled=”off” button_two_border_width__hover_enabled=”off” button_border_color__hover_enabled=”off” button_one_border_color__hover_enabled=”off” button_two_border_color__hover_enabled=”off” button_border_radius__hover_enabled=”off” button_one_border_radius__hover_enabled=”off” button_two_border_radius__hover_enabled=”off” button_letter_spacing__hover_enabled=”off” button_one_letter_spacing__hover_enabled=”off” button_two_letter_spacing__hover_enabled=”off” button_bg_color__hover_enabled=”off” button_one_bg_color__hover_enabled=”off” button_two_bg_color__hover_enabled=”off”][/et_pb_button][/et_pb_column][et_pb_column type=”1_2″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_button button_url=”https://digitallythrive.com/build-a-raspberry-pi-project-projector/” button_text=”Build a Raspberry Pi Projector” button_alignment=”center” _builder_version=”3.16″ button_text_size__hover_enabled=”off” button_one_text_size__hover_enabled=”off” button_two_text_size__hover_enabled=”off” button_text_color__hover_enabled=”off” button_one_text_color__hover_enabled=”off” button_two_text_color__hover_enabled=”off” button_border_width__hover_enabled=”off” button_one_border_width__hover_enabled=”off” button_two_border_width__hover_enabled=”off” button_border_color__hover_enabled=”off” button_one_border_color__hover_enabled=”off” button_two_border_color__hover_enabled=”off” button_border_radius__hover_enabled=”off” button_one_border_radius__hover_enabled=”off” button_two_border_radius__hover_enabled=”off” button_letter_spacing__hover_enabled=”off” button_one_letter_spacing__hover_enabled=”off” button_two_letter_spacing__hover_enabled=”off” button_bg_color__hover_enabled=”off” button_one_bg_color__hover_enabled=”off” button_two_bg_color__hover_enabled=”off”][/et_pb_button][/et_pb_column][/et_pb_row][/et_pb_section][et_pb_section fb_built=”1″ _builder_version=”3.13.1″ custom_padding=”0|0px|54px|0px|false|false”][et_pb_row custom_padding=”55px|0px|27px|0px|false|false” _builder_version=”3.13.1″][et_pb_column type=”4_4″ _builder_version=”3.13.1″ parallax=”off” parallax_method=”on”][et_pb_code _builder_version=”3.13.1″]<iframe src="//rcm-na.amazon-adsystem.com/e/cm?o=1&p=48&l=ur1&category=computers_accesories&banner=1HA0E4HMD35YCKKM2VR2&f=ifr&linkID=b7eb835ee8872d2587a5a95c21c1540e&t=hikiadveandge-20&tracking_id=hikiadveandge-20" width="728" height="90" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>[/et_pb_code][/et_pb_column][/et_pb_row][/et_pb_section]
Scroll to Top

gain access to Premium Content

Best Things In Life Are Free

Free Download: Our Ultimate Do-It-Yourself SEO Guide!

 Receive of latest SEO tips straight to your mailbox