php not working

Hi,

I am setting up a remote server running Redhat Linux Enterprise 3 to serve email and web pages.

My current project is trying to setup MailWatch to view email that has been scored by Mailscanner.  Mailscanner is working fine logging to mysql and email works fine.  Apache is working fine, but I need php running.  I know php is installed and I ran an update for it.  It seems that php is not configured correctly, but I know nothing about php and precious little about linux.  

How do I configure and test php in a linux environment?  Even a "Hello World" sample would be helpful.

Thanks,
mwclassen
mwclassenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ppfoongCommented:

Create a new file, call into phpinfo.php and put it inside the Apache html directory.

The content of the file will be:

<?
   phpinfo();
?>



If PHP is working fine, a browse to http://your.server.com/phpinfo.php will disclose all the PHP configuration and information to you.

mwclassenAuthor Commented:

I created the file and put it in the /var/www/html directory which is the home directory for Apache.  What happens when I browse to it is a download dialog pops up which gives me the file I created.

mwclassen
ppfoongCommented:

Then PHP is not working.

You need to load the PHP module in the httpd.conf configuration, and restart Apache.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mwclassenAuthor Commented:

That worked, ppfoong!  Thanks for your help.

mwclassen
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.