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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content