Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 ?

share|improve this question

1 Answer 1

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.

share|improve this answer
    
I know. But Im habituated of using apache for php and glassfish for jsp. On windows 7 I had to configure nothing. Just install and Run. But on ubuntu Im having all these issues. –  Curious Apprentice Apr 19 '12 at 9:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.