One of the most common ways to test a successful PHP install is to place a test PHP file in the following location on your RHEL server
/var/www/html/
Only the following lines need to be put in the file
<?php phpinfo(); ?>
Once that is done, open a web browser and type the url : http://yourdomain.com/phptest.php or http://localhost/phptest.php where phptest.php is the filename you gave.
If the result comes back with a page full of information then PHP is successfully installed and running. If it comes with a blank page then among other things check the permissions on the file. File should have 755 for it to show up in the browser. A quick chmod 755 will solve the problem in most cases.
No comments:
Post a Comment