SUSE Support

Here When You Need Us

Find out loaded loaded PHP modules and its compiled in features

This document (7002029) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 10 SP
SUSE Linux Enterprise Server 10 SP1
 

Situation

You are running PHP and want to find out which modules are actually loaded and/or which features inside the modules can be used.

Resolution

You can use the command line and simply type:
php -i
There is also a dedicated function in PHP called phpinfo() which shows this as an HTML page. Create a file with the extension .php and insert these lines of code:
<?php
phpinfo();
?>
You can now view this page with a browser through Apache.

Note: if you want to add PHP modules you only have to install them and restart Apache with rcapache restart. PHP will automatically load the new modules.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7002029
  • Creation Date: 28-Nov-2008
  • Modified Date:05-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.