googleopencart

Check PHP configuration

The easiest way to check the PHP configuration, including which modules are installed, is to create a test script using the phpinfo() function. Open your favorite text editor and type:

<?php phpinfo(); ?>

Save the file as phptest.php in the Web server document root (/opt/bitnami/apache/htdocs/ for Apache or /opt/bitnami/nginx/html for NGINX). Make sure the Web server is running, open a browser and type http://SERVER-IP/phptest.php. You should then see a screen showing detailed information about the PHP version you are using and installed modules.

PHP info

You can also run the following command to list installed modules only:

$ /opt/bitnami/php/bin/php -m
Last modification December 21, 2022