I'm a little new to linux and had used the rpm php/mysql installation with Red Hat Linux 7.1. My apache server works fine, but when I try to view a php page on my browser, I can only see the code. Any help would be greatly appreciated.
First of all you need to make sure PHP is installed. Create a file called phpinfo.php and put it in you web server root. In this file put this code only: <?php phpinfo(); ?> This will show you if PHP is installed and its variables.
I did create a php file with the phpinfo() function in it, but I only see the source code when I access it with a browser. I've already looked through the apache config file and I think I've completed activated all php modules, but when I type httpd -l I don't see anything that looks like one of the php module. Is there some other command I should enter to activate php in apache?
I have notes on how to install PHP/MySQL on Red Hat 7.1 RPMs in order at work. I can post them for you on Monday. It sounds as if PHP/MySQL are not installed correctly.
Check your httpd.conf file for PHP modules.
Do you have Webmin installed?