Okay maybe this question has been asked before, I couldn't find the solution I searched both StackOverflow and Serverfault.
Fist of all I'm running
CentOS release 5.5 (Final)
I had by default PHP 5.1.6
and HTTPD (Apache/2.2.3
)
Now I had to upgrade PHP 5.1.6
to PHP 5.3
to enable zip support.
I ran a few yum commands such as.
yum remove php php-*
Then I ran
yum install php53 php53-cli php53-devel php53-gd php53-mbstring php53-mysql php53-pdo php53-xml php53-xmlrpc php-pear
After the installation was a success.
I ran
service httpd restart
service httpd reload
And now when I go to MyDomain.com
it downloads the PHP page as plain-text.
Now if I go to www.MyDomain.com
it parses the page properly.
Can someone tell me whats wrong?
Man I screwed up big time.
My httpd.conf
file is below how it was when PHP 5.1.6 was and it worked properly with that PHP 5.1.6.