PDA

View Full Version : Tomcat with DA



prophecy
08-02-2003, 02:10 PM
Anybody tried this?

I'm going to be giving it a shot today so hopefully it works out ok. The one thing i'm worried about is if DA will overwrite httpd.conf when it changes it?

DirectAdmin Support
08-04-2003, 10:12 PM
Havn't tried tomcat myself, good luck :)

DirectAdmin will not overwrite the main /etc/httpd/conf/httpd.conf file, it only modifies it. The user httpd.conf files however will be overwritten, so you'll have to be careful of that.

John

prophecy
08-07-2003, 10:24 AM
Could you make it so that you can edit the user conf files without worrying about being overwritten? This is required for setting up Tomcat with Apache.

Maybe have sections that DA would ignore like:

#DA-IGNORE
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
#DA-ENDIGNORE

loopforever
08-07-2003, 10:26 AM
Just add the Tomcat stuff into the vhost templates. Every user you create will follow that template, and include those Tomcat directives.

prophecy
08-07-2003, 11:26 AM
Ya, but I don't want every site to have it, just select ones.

travisbell
08-07-2003, 03:57 PM
That sounds like a useful feature (per user/site).

Think that could be added John?

prophecy
08-07-2003, 05:32 PM
Got it all working!

Then I put in an SSL certificate and doh! the conf file gets overwritten.

Pretty please add this feature... ;-) You add this feature and then you can now start saying "Easily integrate Tomcat with DA".

jdlitson
08-07-2003, 06:45 PM
What is Tomcat, or where can I go to get more info?

Found it http://jakarta.apache.org/tomcat/

Thanks for your time and help -Jason

DirectAdmin Support
08-07-2003, 06:46 PM
I think I might add a feature, where an admin can add apache config snippets to a particular domain. All vhost templates would have a |CUSTOM| token or something, and if a domain has custom data to be put in, DirectAdmin would grab that data and fill in the token. All other domains would have CUSTOM filled with their custom data (could be empty), which would allow custom settings for any domain.

John

prophecy
08-07-2003, 06:57 PM
That would be perfect. Could this be pushed up the priority ladder or let me beta test it? :)

I am at a stand still right now because I have like 15 sites on one user, half of them being java sites that need this and my settings keep getting toasted.

scottking
08-07-2003, 07:53 PM
we have had two other requests for tomcat with our dedicated servers in the last month, so tomact support would be a very welcome addition.

as far as i know, it woulld make yours the only cp with built in support for it as well... looks good on a features list, that's for sure.

prophecy, perhaps you can walk me through the install sometime... it would be very useful for us to know how you installed it for future clients.

The Prohacker
08-07-2003, 08:01 PM
Originally posted by DirectAdmin Support
I think I might add a feature, where an admin can add apache config snippets to a particular domain. All vhost templates would have a |CUSTOM| token or something, and if a domain has custom data to be put in, DirectAdmin would grab that data and fill in the token. All other domains would have CUSTOM filled with their custom data (could be empty), which would allow custom settings for any domain.

John


That would be great :D


Many times I need to add something custom to a vhost for a site.. Such as turning safe mode off or something special for their logs...

DirectAdmin Support
08-07-2003, 08:06 PM
Alright ... the demand is there, thus so is the feature :D I'll get on it right away. You guys realize that all the time taken to add these features, is time away from the completion of FreeBSD? (which by the way is getting closer, not finished yet, but its closer) ... hehe ...

John

scottking
08-07-2003, 08:07 PM
what's freebsd? ;)

prophecy
08-07-2003, 08:07 PM
Getting the core features in place is more important. :D

prophecy
08-07-2003, 08:08 PM
Originally posted by scottking
what's freebsd? ;)

lol

The Prohacker
08-07-2003, 08:09 PM
Originally posted by DirectAdmin Support
Alright ... the demand is there, thus so is the feature :D I'll get on it right away. You guys realize that all the time taken to add these features, is time away from the completion of FreeBSD? (which by the way is getting closer, not finished yet, but its closer) ... hehe ...

John


Come on.. I thought you were a sys admin.. Don't you remember the requirements to be a sys admin?

Able to preform multipe tasks at once...
Read the minds of your employers and know exactly what they want..
Understand every question customers ask...
And preform miracles/acts of god on demand :D

DirectAdmin Sales
08-07-2003, 08:10 PM
Keep it up guys, we'll have a going out of business sale soon. ;)

Mark

The Prohacker
08-07-2003, 08:21 PM
Originally posted by DirectAdmin Sales
Keep it up guys, we'll have a going out of business sale soon. ;)

Mark

Would the source be on sale at that point? :D

DirectAdmin Sales
08-07-2003, 08:23 PM
Yes, on eBay. :rolleyes: Starting bid: $0.01 :D

Mark

prophecy
08-07-2003, 08:23 PM
Originally posted by scottking
prophecy, perhaps you can walk me through the install sometime... it would be very useful for us to know how you installed it for future clients.


I'll start the official "how to setup tomcat" thread after this is done because you can't fully set it up right now (well you can if you never use DA again). ;)

The Prohacker
08-07-2003, 08:27 PM
Originally posted by DirectAdmin Sales
Yes, on eBay. :rolleyes: Starting bid: $0.01 :D

Mark

*digs around in pockets* Ah ha! Quater!

Current Bid: $0.25 :D

DirectAdmin Sales
08-08-2003, 09:01 AM
Just to let you guys know, apache config snippets are complete and should be available later today. That should make Tomcat a go. You can customize the Virtual Hosts however you want on a per-domain basis.

The option will be in the "Admin Settings" link.

We won't be releasing it through the auto-updater yet, so when you see v. 1.18 on our main site, go to your Admin panel, Licensing, and manually update DirectAdmin.

Thanks,

Mark

travisbell
08-08-2003, 09:04 AM
Wow, that was quick! Thank a lot John, you guys rock!

DirectAdmin Sales
08-08-2003, 10:07 AM
And, 1.18 is now available for manual update.

Mark

prophecy
08-08-2003, 11:14 AM
Awesome!

So far so good.

gmilazzo
11-03-2003, 02:25 PM
is the how to for tomcat coming any time soon please i beg some one to do a walk thru I have many requests for it.

prophecy
11-03-2003, 03:04 PM
I could probably get something written up on how to do this, just been a while. the hardest part is getting mod_jk going.

UltimeWWW
11-03-2003, 05:19 PM
Where is it? :(

interfasys
11-03-2003, 05:46 PM
It would be very nice if this could be supported straight from the cp. Something like Ensim or Plesk.

gmilazzo
11-03-2003, 06:02 PM
yes but mark and john have tons on their plates right now

interfasys
11-03-2003, 06:12 PM
That's why I opened a thread about a roadmap =)

SlashChick
12-31-2003, 01:01 PM
Any word on this? We have a customer who would really like Tomcat on their dedicated.

Thank you,
Erica

DirectAdmin Support
01-01-2004, 12:13 PM
Hello,

You can have Tomcat right now. You'll have to install it yourself, and just use the "custom httpd.conf" feature to set it up on a per-site basis. I'm not sure if/when we'll include it, as if we did, it would be on all servers, and I've heard its quite a hog; not what most people want.. but the tools are already in place to add it yourself.

John

ProWebUK
01-01-2004, 01:27 PM
if you need the java server you can afford the resources if you ask me :p .... you could always have the option to turn tomcat off aswell.... then if you want a resource hog running for your customers you can :)

Chris

SlashChick
01-01-2004, 03:12 PM
Originally posted by DirectAdmin Support
Hello,

You can have Tomcat right now. You'll have to install it yourself, and just use the "custom httpd.conf" feature to set it up on a per-site basis. I'm not sure if/when we'll include it, as if we did, it would be on all servers, and I've heard its quite a hog; not what most people want.. but the tools are already in place to add it yourself.

John

What would be best is if you could give us a simple script to run to install Tomcat support... something like wget http://www.directadmin.com/installtomcat.sh; ./installtomcat.sh.

The script could then add an checkbox in DA to install Tomcat support per-site, so you would just edit the site and check the checkbox to install Tomcat for that site.

Just my two cents. :)

-Erica

loopforever
01-01-2004, 04:00 PM
What would be even neater than Tomcat would be a DA add-on system. Once we have that, we can release things like this Tomcat add-on without John having to set them up :).

ProWebUK
01-01-2004, 04:53 PM
That just seems inappropriate and far to cPanel like for more liking, I agree with simple intergartion on / off for domains, modules - no no no!

Chris

SlashChick
01-01-2004, 06:27 PM
Forgot to add this...

I feel Tomcat should default to OFF and should be enabled on a per-site basis, not as an all-or-nothing script. A checkbox in the DA UI (that could be enabled for a single site or as part of a package) would be best.

This would be an awesome addition to DA. In addition, I would envision a similar system for PostgreSQL (but IMHO, Tomcat is more important... we have far more people using Tomcat on our servers than we do PostgreSQL, and my guess is that this holds true for the majority of hosting companies.)

Thanks!

loopforever
01-01-2004, 06:33 PM
Yeah, definitely needs to be on a per site basis. And if no sites use it, it should not be running at all, but that shouldn't be hard to do.

ProWebUK
01-01-2004, 06:45 PM
Originally posted by loopforever
it should not be running at all,

Forgot to mention that in the post, we keep tomcat off as default apart from when its requested.

Chris

SlashChick
01-14-2004, 01:11 AM
Any news? Is there a HOWTO available? We now have three DA servers awaiting Tomcat support. I'm going to have our developer attempt to install it tomorrow. Any reports from the DA team on how well the integration is going?

DirectAdmin Support
01-14-2004, 10:25 AM
Hello,

We havn't planned on adding Tomacat so far with our default install. Not sure about any How-To's.

John

brundle
04-16-2004, 04:24 PM
So is there now the ability to add custom user httpd.conf settings and not have them get overwritten? If so, how is this done?

DirectAdmin Support
04-19-2004, 11:58 AM
Hello,

You can either modify the virtualhost templates, or use the custom httpd.conf feature to insert httpd.conf snippets into the virtualhost.

1) cd /usr/local/directadmin/data/templates
cp virtual_host* custom
cd custom
#edit the 4 virtual hosts as needed.
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

and/or

2) Admin Panel -> Admin Settings -> Customize Httpd Configurations -> domain.com
Then add the httpd.conf code into the text area. The code you enter will be inserted into the |CUSTOM| token in the virtualhost templates that are mentioned in 1) (above). (So do not past a whole virtualhost, just the few lines you want to insert).

John

brundle
04-19-2004, 12:30 PM
Ahh... That is exactly what I was looking for. Thanks!