File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes PHP and the fly likes lots of confusion in installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "lots of confusion in installation" Watch "lots of confusion in installation" New topic

lots of confusion in installation

sparsh khandelwal
Ranch Hand

Joined: Dec 20, 2010
Posts: 76
hello everyone
i am trying to run the php program on browser
for that , first i download microsoft web installer through which i install php manager on iis then successfully install the php
now i able to run my php program on command prompt which means that i have successfully installed the php.
even i have download apache and tomcat.
while searching the youtube : come to know that during installation of php you need to configure with apache.
but i have already installed php through iis
now my problem is
1)i am not able to run my program on web browser ( even by iis).
2)not able to configure my apache and tomcat with already installed php
is there any need to uninstall php then configure it with apache
i want to run my webpage on all the three servers i have
please help
K. Tsang

Joined: Sep 13, 2007
Posts: 3132

From what I see, you want Apache(PHP) as a front end and Tomcat to execute Java? Just like those web hosting? If so look into mod_jk.

For example you have index.php and a java app called MyApp (which say maps to the URL "localhost/myapp"). Then when you type "localhost" will load up index.php then when you type "localhost/myapp" goes to Tomcat MyApp.

But first get Apache and Tomcat to work on their own first.

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

You could manually configure Apache to work with PHP, the steps are fairly simple. This page in the documentation tells you how:
Of course, the PHP installer will do the work for you, so you could uninstall PHP and reinstall it and select both IIS and Apache during the installation.
I agree. Here's the link:
subject: lots of confusion in installation
It's not a secret anymore!