php + apache + tomcat

I installed PHP, Apache, Tomcat in Cent OS 5

Tomcat and Apache work fine together.

But PHP! that's problem.

The Source inside php is this

<?php phpinfo(); ?> //This works well only if the Filename is index.html but doesn't work if it's index.php..

I have short knowledge neither in linux and php.

Hope my question is in right form. thank you

Answers


In your httpd.conf add a line like this:

AddType application/x-httpd-php .php .php3 .php4 .php5

Then restart Apache and you're on your way :)


If you want to make index.php as your default page add

DirectoryIndex index.php index.html

inside your Apache Virtualhost entry.


Need Your Help

Magento Partially Updated. Want to re-update

php magento

I have a site with magento version 1.8.1.0. For upgrading, I logged into magento connect and selected Version 1.9.2.2 for Mage_All_Latest and clicked "Commit Changes" button. After some time, the p...

How To Raise Property Changed events on a Dependency Property?

wpf binding

OK, so I have this control with two properties. One of these is a DependencyProperty, the other is an "alias" to the first one. What I need to be able to do is raise the PropertyChanged event for ...