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 89Updated now 4 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 102Updated now 4 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 371Updated now 3 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 164Updated now 4 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 120Updated now 3 monthsPublished 04/07/2021
When accessing the site I get 500 Internal Server Error, white page or PHP errors. How can I find out details about the problem?Frequently Asked Questions Tehnic | 500 | error | internal server
Known error 500. For many users it presents a major problem. In this article you will find all the information you need.
by Mihai BobriucViews 50Updated now 4 monthsPublished 18/08/2022