[Resin-interest] How to start Resin at bootup time with non-root user
Hi, I'm running Resin 3.1.0 on Debian and would like to automate Resin startups after a reboot. I'm currently starting Resin as a non-root user on a non-root port, then using iptables to redirect traffic to port 80. I know how to start Resin as root at bootup but am not sure how to do this as non-root. Anyone doing this? Thanks, mike ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] How to start Resin at bootup time with non-rootuser
Kuntz, Tim wrote: Mike, You can only do this if you are running Resin Pro with a valid license. This also only works if you start Resin with watchdog as it changes the users. Are you saying that this is now fixed? Does it work when invoking resin via httpd.sh? Dave -- Visit Guardian Unlimited - the UK's most popular newspaper website http://guardian.co.uk http://observer.co.uk -- The Newspaper Marketing Agency Opening Up Newspapers http://www.nmauk.co.uk -- This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News Media Limited A member of Guardian Media Group PLC Registered Office Number 1 Scott Place, Manchester M3 3GG Registered in England Number 908396 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] How to start Resin at bootup time with non-rootuser
On Mar 13, 2007, at 9:09 AM, David Campbell wrote: Kuntz, Tim wrote: Mike, You can only do this if you are running Resin Pro with a valid license. This also only works if you start Resin with watchdog as it changes the users. Actually, you can also set LD_LIBRARY_PATH=$RESIN_HOME/libexec before starting Resin and then start Resin in the foreground. The main issue is that LD_LIBRARY_PATH needs to be set to pickup the JNI code before starting the JVM. -- Scott Are you saying that this is now fixed? Does it work when invoking resin via httpd.sh? Dave -- Visit Guardian Unlimited - the UK's most popular newspaper website http://guardian.co.uk http://observer.co.uk -- The Newspaper Marketing Agency Opening Up Newspapers http://www.nmauk.co.uk -- This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News Media Limited A member of Guardian Media Group PLC Registered Office Number 1 Scott Place, Manchester M3 3GG Registered in England Number 908396 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] How to start Resin at bootup timewith non-rootuser
On Mar 13, 2007, at 10:10 AM, David Campbell wrote: Kuntz, Tim wrote: It works partly and you must invoke it using bin/httpd.sh start. The start is important because the watchdog manager won't start otherwise and that is what handles the user switching. Well it doesn't work for me on 3.19 Pro with a valid licence This only applies to 3.1.x, not 3.0.x. -- Scott Dave ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] How to start Resin at bootup timewith non-rootuser
Scott Ferguson wrote: On Mar 13, 2007, at 10:10 AM, David Campbell wrote: Kuntz, Tim wrote: It works partly and you must invoke it using bin/httpd.sh start. The start is important because the watchdog manager won't start otherwise and that is what handles the user switching. Well it doesn't work for me on 3.19 Pro with a valid licence This only applies to 3.1.x, not 3.0.x. Thanks for the clarification. Is there a list of changers and er ... fixed bugs in 3.1 please? Dave ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Too many open files
I'm assuming this is on Linux or something else that's Unixy. You can find out what your limit for open files is by typing ulimit -a. Here's an example from one of my systems: # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited max nice(-e) 0 file size (blocks, -f) unlimited pending signals (-i) 131072 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size(512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 max rt priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 131072 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited As you can see, the default limit for open files is 1024. You can set this for your session uing ulimit like this: ulimit -n 1. To make it sticky across reboots you'll have to edit /etc/security/limits.conf and add a line that reads something like this: resin hardnofile 1 Do a man bash and search for ulimit if you want more details. HTH, Jose. sksamuel wrote: [2007-03-13 03:00:13] Error rotating logs java.io.FileNotFoundException: /home/live/clearcomm.7soft.co.uk/WEB-INF/logs/access.log (Too many open files) Using resin 3.0.21 Getting this in the log files got 2000 open descriptors if I check using lsof of which 600 odd are in use by resin. That doesn't seem a lot to me ? ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] How to start Resin at bootup time with non-rootuser
Is there a list of changers and er ... fixed bugs in 3.1 please? http://www.caucho.com/resin-3.1/changes/index.xtp -- Sam ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Quercus is fantastic !
Running apt-get install libapache-mod-php5 is a lot easier than running Resin for 99.99% of people in my experience. We are planning on creating a debian package after the 3.1.1 release. With the decision to package the Sun JDK as a debian package that should work fairly well. Why Caucho decided to have php support in their webserver rather than fix the bugs in the Servlet container is something that confuses my and my colleagues almost daily. We did consider that, and we hired more engineers to make sure that Quercus development would not impact the time and effort we had to apply to Resin. We actually have more resources working on Servlet/JSP/Java EE than we did at the time Quercus development was started. We are still looking to hire more people: http://www.caucho.com/sales/jobs.xtp For bug fixes, we follow the bugtracker closely (bugs.caucho.com) and try to prioritize. As mentioned in another post, it is helpful if there is a reproducable test case. Customers who sign up for platinum support almost always have bug fixes completed for the next release, and often we release an interim snapshot so that the bug fix can be tested. -- Sam ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Fwd: Quercus is fantastic !
OK - I wasn't going to say anything. I was gonna just be a silent lurker... I wanted to run Blojsom. It was a change from running Blosxom. I decided after much effort and consternation to run under Windows XP. I know... I know... evil empire and all that. But It was the only platform that would support the multiple applications I wanted AND give VMWare Server for the LINUX/BSD stuff I wanted too. So I started looking for a web server. I looked at a lot of Java web servers, open source and closed $ource. After struggling with about five or six of them, I settled on Resin. Why? Because, even on Windows, it was a piece of cake to install. It ran as a service right out of the box (with no requirement for hacking the registry!). The management effort required for me has been zero. Zero. ZERO, I tell ya! Using a cleverly defined resin.conf (I take a bow), I have four servers running different applications INCLUDING a PHP based wiki. So I am thinking... Resin is fantastic! Dan On 3/13/07, Sam [EMAIL PROTECTED] wrote: Running apt-get install libapache-mod-php5 is a lot easier than running Resin for 99.99% of people in my experience. We are planning on creating a debian package after the 3.1.1 release. With the decision to package the Sun JDK as a debian package that should work fairly well. Why Caucho decided to have php support in their webserver rather than fix the bugs in the Servlet container is something that confuses my and my colleagues almost daily. We did consider that, and we hired more engineers to make sure that Quercus development would not impact the time and effort we had to apply to Resin. We actually have more resources working on Servlet/JSP/Java EE than we did at the time Quercus development was started. -- Dan McGinn-Combs, Security+, GSEC, CISSP [EMAIL PROTECTED] Home: +1 770 487 6321 Mobile: +1 678 994 4040 Peachtree City, Georgia USA -- Dan McGinn-Combs, Security+, GSEC, CISSP [EMAIL PROTECTED] Home: +1 770 487 6321 Mobile: +1 678 994 4040 Peachtree City, Georgia USA ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] PHP and UTF-8
Hi MexIQ , I'm not sure about this solution. But you can try setting LANG environment variable like , export LANG=ja_JP.utf8 and restarting resin. -Anoop MexIQ wrote: Thank you Markus, It is not matter of the file encoding because the problem also happened with my database results (using mysql 5). If I run mysql from console it display correctly the Japanese text, but when displaying it on the browser not. So, I tried other way around. I installed Tomcat, php-cgi and java-php bridge and now all my applications are running without any problem and without having to configure any file. I'll continue testing caucho and quercus on other port because I think it can be useful on the future. So any configuration tip it would be welcome. Thank you! On 3/12/07, Markus Ken Baron-Moriyama [EMAIL PROTECTED] wrote: Hi, I tried out this configuration: servlet-mapping url-pattern=*.php servlet-class=com.caucho.quercus.servlet.QuercusServlet init script-encodingUTF-8/script-encoding /init /servlet-mapping and the php: ?php $charset = UTF-8; header(Content-Type: text/html; charset=.$charset); echo htmlbody; $var = utf8_encode(バリューパック); //Japanese text echo utf8_decode($var); echo /body/html; ? and it works for me with the correct Japanese output. I am using Resin 3.0.23 with JDK 1.5 on Win XP. Are you sure that your utf8Test.php is really in UTF-8? As default, I think japanese files are created with EUC-JP on linux, so maybe you will have to convert the file first. Best regards, markus MexIQ MexIQ wrote: Maybe I'm doing something else wrong... I added at the default resin-web.xml: servlet-mapping url-pattern=*.php servlet-name=resin-php initscript-encodingISO-8859-1/script-encoding/init /servlet-mapping And I had the same results. My directory structure is: /WEB-INF/web.xml /utf8Test.php I need something else? I'm sorry to ask, but I have been looking on the wiki and the web and I don't find what I need. Do you know what part of the documentation I have to read? thank you. On 3/11/07, MexIQ MexIQ [EMAIL PROTECTED] wrote: Thank you Sun, I have in my WEB-INF/web.xml script-encodingISO-8859-1/script-encoding I will try to add it to resin-web.xml and see what happen... I will reply... On 3/11/07, sun baoming [EMAIL PROTECTED] wrote: official document says in your web.xml or resin-web.xml : web-app xmlns= http://caucho.com/ns/resin; servlet-mapping url-pattern=*.php servlet-class=com.caucho.quercus.servlet.QuercusServlet init script-encoding ISO-8859-1/script-encoding /init /servlet-mapping /web-app give it a try. when i used this with chinese encoding ,maybe the same as your problem, in my experience it never worked . 2007/3/10, MexIQ MexIQ [EMAIL PROTECTED] : (Sorry to send it again, but I used other email account and I was not sure if it was received). Hello everyone, I was always expecting to have JAVA and PHP together (I develop in both languages and I wanted a simple and fast way to run my applications in just one server and one port and taking advantage of my java codes). I wanted to give caucho a look and I tried to run a small system buy I'm having some problems trying to get some special characters to display. I made this test: ?php $charset = UTF-8; header(Content-Type: text/html; charset=.$charset); echo htmlbody; $var = utf8_encode(バリューパック); //Japanese text echo utf8_decode($var); echo /body/html; ? I think it have to display it as the original text. But it just display the UTF-8 charset on the screen: ãƒãƒªãƒ¥ãƒ¼ãƒ'ック If I comment the line: header(Content-Type: text/html; charset=.$charset); and manually I select UTF-8 encoding, the correct (original) text is displayed. I'm using firefox in linux, but I tested also with I.E. and firefox (windows) from other computer. Maybe I have something wrong in my configuration. It is not just Japanese, I also tested with latin characters and was the same thing. By the way, do you know if Quercus will add the Multi-byte functions? And... sure! I would like to help Quercus to grow... ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- -- Dipl.-Ing. Markus Ken Baron-Moriyama [EMAIL PROTECTED] Director of Global IT Relations and Research Co-Founder Wazap AG Karl-Liebknecht-Str. 5 10178 Berlin Germany Tel: +49 30 278744