3

I'v installed Apache Tomcat and it's running. I have a php file which I want to run. Where do I have to put my php file so that going to http://localhost:8080/myPage.php (in my browser) will result in executing my php script?

EDIT: My OS is Windows 7

2 Answers 2

2

Right. I suspect you're quite confused here.

Apache Tomcat is a container for java applications. I think you should have installed Apache Web Server, and PHP. There's no sensible way to get Tomcat to handle PHP (without Resin, but that's a different story).

You'd probably be best to install XAMPP and use the server packages provided by that.

2
  • Thanks. If I install Apache Web Server (and PHP) will it coexist with my Apache Tomcat (which I also use)?
    – snakile
    Jan 3, 2011 at 22:22
  • Yeah, should be fine. Tomcat generally "lives" on port 8080, and Apache Webserver "lives" on port 80. I frequently use both on the same server with no problem. You could just ditch Tomcat if you never intend to deploy java web applications. Jan 3, 2011 at 22:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .