nativeInstallerredmine

Check PHP configuration

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and Mac OS X) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). Learn more.

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 (installdir/apache2/htdocs/ for Apache or installdir/nginx/html for NGINX. Make sure the Web server is running, open a browser and type http://localhost/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:

$ installdir/php/bin/php -m