How can I find out about the PHP hosting directives and modules?

Frequently Asked Questions Tehnic | php | module | directive | php-fpm
Romanian English The displayed article presents the way in which you can find out information related to PHP hosting directives and modules
by Mihai BobriucViews 37Updated now 2 monthsPublished 18/08/2022

To find out information about loaded PHP directives and modules, we can use the phpinfo() function.
We will insert this function into a PHP script using the control panel's File Manager or via FTP.

As an example, in cPanel, we will click on File Manager.

  • We will select the root folder of the domain through which we want to access the information, after which we will click on +File on the top left.

  • We will give the file a name and click on Create New File.

  • Right click on the file and then edit.
  • The lines below will be inserted, after which we will click on the Save Changes button at the top right.
  • After saving, we will access domain.tld/denumire_script.php. Information about the hosting's settings, directives and loaded PHP modules will be loaded.

Similar Articles

1
When I acces my WordPress site I get the error: Error establishing a database connection. What can I do ?Frequently Asked Questions Applications | wordpress | database | error
Discover why when accessing your WordPress site you get the error: Error establishing a database connection, and what should you do in this sittuation.
by Ana RednicViews 76Updated now 2 monthsPublished 25/10/2018
What are the benefits of the additional SEO option?Frequently Asked Questions SEO | seo | nameservers | google | pagespeed | ip
Introducing the benefits of enabling the SEO option.
by Mihai BobriucViews 349Updated now 1 monthsPublished 13/03/2020
My site is loading slowly. Why?Frequently Asked Questions General | site | load | speed
Find out why your website is loading slowly!
by Ana RednicViews 137Updated now 2 monthsPublished 25/10/2018
I have purchased a hosting package and wish to transfer one/several sites to you. How should I proceed?Frequently Asked Questions General | migration | hosting | site
The migration procedure can be complex. This article gives you all the information you need.
by Mihai BobriucViews 93Updated now 1 monthsPublished 04/07/2021
How can I protect my website from attackers?Frequently Asked Questions General | update | security | infection
In this article we will give you some tips that you should follow to be as safe as possible from attackers.
by Mihai BobriucViews 25Updated now 2 monthsPublished 18/08/2022