PHP info & configuration in CentOS Web Panel

Most of the present websites run on PHP w/ MySQL/MariaDB. So it’s very important for a web hosting admin to know PHP information and to configure the PHP settings.

cwp php info

To view the PHP settings:

  1. Go to CWP admin panel
  2. Look for PHP Settings menu
  3. Here you can view PHP settings in three entries:
    PHP Info – very detailed info about your PHP system
    PHP short info – list of the PHP modules
    PHP Addons – list of the PHP addons

To edit the PHP settings:

  1. Go to CWP admin panel
  2. Look for PHP Settings menu
  3. Here you can view PHP settings in two entries:
    PHP Simple Editor – here you can edit fast only a few PHP settings – these are: memory_limit, upload_max_filesize, post_max_size, max_execution_time, display_errors and date.timezone
    PHP.ini Configuration – here you will have access to edit the PHP configuration file, which is /usr/local/php/php.ini 

You can also get PHP information from the command line:

[root@cwp1 ~]# php -i

or

[root@cwp1 ~]# php -m

and many other commands.

To get configuration values from a script use the PHP function ini_get

The short video tutorial for this article:

PHP info in CWP

Leave a Reply