How do I test PHP or make sure it's working on Red Hat Enterprise Linux?

Updated -

Create the file /var/www/html/test.php that contains the following line:

/var/www/html/test.php

<?php phpinfo(); ?>

Start your web server:

# service httpd start

On a properly configured system, pointing your web browser to http://<your-web-server>/test.php should give you a php information page with v...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.