Apache fails to run php unless browser ran by root

I have a Fedora live install with the following options installed: apache and wordpress

When I finished setting up the mysql database, configuring wordpress and finally browsing to the localhost in firefox nothing would show up as a general user.  I logged in as root on the server and launched firefox and it works perfectly.  Here are the log files from apache:
[Thu Feb 07 20:35:50 2008] [error] [client x.x.x.x] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Thu Feb 07 20:35:50 2008] [error] [client x.x.x.x] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/wordpress/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

Is there something the fedora install does that needs to be changed to allow users to run php?  I put a hi.txt file in the same directory and I can specify it from a browser and get it running as a regular user and remotely from another machine.
Who is Participating?
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.

this is because you installed some files under root and are running php as probably a non root user. usually apache and php run under their own account of nobody and if you install files using root it won't read it.

so change the permissions on the files in /www/ or run apache/php as root, not recommended.
jfolcikAuthor Commented:
I figured it out, with SELinux turned on php doesn't work, once I turned it off everything was perfect.

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
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 Distributions

From novice to tech pro — start learning today.