Ubuntu – How to make apache tomcat comes with netbeans installation work

installationnetbeanstomcat

I have installed the "apache tomcat" server came with NetBeans along with Glassfish server.

Now How can i deploy php application on it ? How should I configure it ?

The default directory of apache tomcat is : /usr/local/apache-tomcat-7.0.22
I have given full r/w permission to it.

In netbeans there is a home path setting which is set : /usr/local/apache-tomcat-7.0.22
and a base path, which points to a void folder at my home directory.

How I configure netbeans so that It can start and shutdown tomcat automatically ?

I have checked that I can maunally start tomcat and deploy application by copying apps to /usr/local/apache-tomcat-7.0.22/webapps directory. But all these needs manual labour.

How can I configure netbeans so that I dont have to do these manual steps ? How I should run applications ?

Best Answer

  • To run php applications, you don't need a Tomcat server (see this question on Stackoverflow). Apache's httpd is sufficient (and, of course, a php environment) - see the Netbeans documentation and recommendations; there's even a Ubuntu-related documentation.

    You may configure Tomcat to run a PHP application (AFAIK even Glassfish can be configured to host PHP applications), but i wouldn't recommend it if you don't have much experience with tomcat or glassfish.