When all you have is a hammer, everything looks like a nail. Thats as
true for Web servers as it is for work around the house. This overview
explains the pluses and minuses of the obvious candidates — IIS and
Apache — and suggests a few alternatives worth exploring.
| Installing Apache Tomcat 6 on Mac OS X 10.5
Leopard
| Installing Apache Tomcat 6 on OS X 10.5 Leopard is primarily a matter
of downloading the appropriate packages and then following the
installation instructions. However, you will have to make a few
modifications to some make scripts and source code to successfully
compile JSVC on Leopard. To compile the MOD_JK connector or the JSVC
daemon, you must have OS X development kit installed.
| All about Linux: Enabling and disabling services during start up in
GNU/Linux
| In any Linux distribution, some services are enabled to start at boot
up by default. For example, on my machine, I have pcmcia, cron daemon,
postfix mail transport agent ... just to name a few, which start
during boot up. Usually, it is prudent to disable all services that
are not needed as they are potential security risks and also they
unnecessarily waste hardware resources. For example, my machine does
not have any pcmcia cards so I can safely disable it. Same is the case
with postfix which is also not used.
| httpd: Syntax error on line 484 of /private/etc/apache2/httpd.conf:
Syntax error on line 3 of /private/etc/apache2/other/mod_jk.conf: \
| Cannot load /usr/libexec/apache2/mod_jk.so into server: \
| dlopen(/usr/libexec/apache2/mod_jk.so, 10): no suitable image found.\
| Did find:\n\t\
| /usr/libexec/apache2/mod_jk.so: mach-o, but wrong architecture
This error is because apache is compiled as a 64 bit executable and
configure builds a 32 bit shared library
| Working with PHP 5 in Mac OS X 10.5 Leopard - Professional
PHP
| Mac OS X is a great development platform for working with PHP. Leopard
comes with Apache, PHP and many other development tools, such as
subversion already installed. Leopard brings a much needed upgrade
from Tigers tired PHP 4 to a very modern version of PHP 5.2.4. This is
a guide for setting up a PHP development environment under 10.5 using
the version of PHP that ships with leopard.
| Time For A Grown-Up Server: Rails, Mongrel, Apache, Capistrano and
You | codablog | Coda
Hale
| More and more Rails developers are finding out that deploying a Rails
application isn’t as simple as upload and rename; Rails apps work best
when running all the time, and many Rails programmers are moving from
traditional, shared hosts, like Dreamhost, to virtual private servers,
like Rimuhosting, which allow them full control and responsibility of
production servers.
I was trying to set up Apache mod_jk to serve up my jboss traffic
without loadbalancing and I was running into the errors below. My
machine is running Red Hat Enterprise Linux ES release 4 with Apache2.
| [Wed Nov 14 19:00:28 2007][27581:63168] [debug] do_shm_open::jk_shm.c (415): Attached shared memory [8] size=28672 free=28672 addr=0xb7e5d000
| [Wed Nov 14 19:00:28 2007][27581:63168] [debug] do_shm_open::jk_shm.c (429): Reseting the shared memory for child 8
| [Wed Nov 14 19:00:28 2007][27581:63168] [debug] do_shm_open_lock::jk_shm.c (258): Duplicated shared memory lock /etc/httpd/logs/jk.shm.27572.lock
| [Wed Nov 14 19:00:28 2007][27581:63168] [debug] jk_child_init::mod_jk.c (2651): Attached shm:/etc/httpd/logs/jk.shm.27572
| [Wed Nov 14 19:00:28 2007][27581:63168] [debug] jk_child_init::mod_jk.c (2661): Initialized mod_jk/1.2.23
| [Wed Nov 14 19:00:28 2007][27582:63168] [debug] do_shm_open::jk_shm.c (415): Attached shared memory [9] size=28672 free=28672 addr=0xb7e5d000
| [Wed Nov 14 19:00:28 2007][27582:63168] [debug] do_shm_open::jk_shm.c (429): Reseting the shared memory for child 9
| [Wed Nov 14 19:00:28 2007][27582:63168] [debug] do_shm_open_lock::jk_shm.c (258): Duplicated shared memory lock /etc/httpd/logs/jk.shm.27572.lock
| [Wed Nov 14 19:00:28 2007][27582:63168] [debug] jk_child_init::mod_jk.c (2651): Attached shm:/etc/httpd/logs/jk.shm.27572
| [Wed Nov 14 19:00:28 2007][27582:63168] [debug] jk_child_init::mod_jk.c (2661): Initialized mod_jk/1.2.23
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (589): Attempting to map URI '/jmx-console/' from 7 maps
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (601): Attempting to map context URI '/jmx-console/*=node3' source 'uriworkermap'
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (616): Found a wildchar match '/jmx-console/*=node3'
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_handler::mod_jk.c (2111): Into handler jakarta-servlet worker=node3 r->proxyreq=0
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] wc_get_worker_for_name::jk_worker.c (114): found a worker node3
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] wc_maintain::jk_worker.c (321): Maintaining worker node3
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] wc_maintain::jk_worker.c (321): Maintaining worker loadbalancer
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] wc_get_name_for_type::jk_worker.c (290): Found worker type 'ajp13'
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] init_ws_service::mod_jk.c (607): Service protocol=HTTP/1.1 method=GET host=(null) addr=192.168.151.112 name=lin04.unitedfuture.com port=80 auth=(null) user=(null) laddr=192.168.151.20 raddr=192.168.151.112
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] ajp_get_endpoint::jk_ajp_common.c (2343): acquired connection pool slot=0
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (548): ajp marshaling done
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] ajp_service::jk_ajp_common.c (1796): processing node3 with 2 retries
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (335): socket TCP_NODELAY set to On
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (348): socket SO_KEEPALIVE set to On
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (398): timeout 120 set for socket=16
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (433): trying to connect socket 16 to 127.0.0.1:8009
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] jk_open_socket::jk_connect.c (451): connect to 127.0.0.1:8009 failed (errno=111)
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to (127.0.0.1:8009) (errno=111)
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] ajp_send_request::jk_ajp_common.c (1273): (node3) error connecting to the backend server (errno=111)
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] ajp_service::jk_ajp_common.c (1941): (node3) sending request to tomcat failed, recoverable operation attempt=1
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (335): socket TCP_NODELAY set to On
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (348): socket SO_KEEPALIVE set to On
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (398): timeout 120 set for socket=16
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] jk_open_socket::jk_connect.c (433): trying to connect socket 16 to 127.0.0.1:8009
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] jk_open_socket::jk_connect.c (451): connect to 127.0.0.1:8009 failed (errno=111)
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to (127.0.0.1:8009) (errno=111)
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] ajp_send_request::jk_ajp_common.c (1273): (node3) error connecting to the backend server (errno=111)
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] ajp_service::jk_ajp_common.c (1941): (node3) sending request to tomcat failed, recoverable operation attempt=2
| [Wed Nov 14 19:00:42 2007][27575:63168] [error] ajp_service::jk_ajp_common.c (1953): (node3) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
| [Wed Nov 14 19:00:42 2007][27575:63168] [debug] ajp_done::jk_ajp_common.c (2286): recycling connection pool slot=0 for worker node3
| [Wed Nov 14 19:00:42 2007]node3 lin04.unitedfuture.com 0.000743
| [Wed Nov 14 19:00:42 2007][27575:63168] [info] jk_handler::mod_jk.c (2254): Service error=0 for worker=node3
| Apache .htaccess tweaking tutorial at Vortexmind: free your
mind
| In this tutorial we are going to improve our website by tweaking out
the .htaccess file. Why I wrote this article? Because on the net I
have found many articles about this little beast, but every one of
them dealt with a specific issue and not look at the overall usage of
these files, or they are just too big when you need to do a thing in
little time. So I’m trying to collect all the useful bits of data in a
monolithic but slim tutorial, which will be updated as I collect more
information. But first, let’s see what .htaccess file is…
| Zenoss Blog » Open Source Software Configuration
Management
| If you are already familiar with open source monitoring, you might
also be interested in open source software configuration management.
Software Configuration Management (SCM) attempts to identify the
configuration of software at discrete points in time and to
systematically control changes to the configuration for the purpose of
maintaining software integrity, traceability, and accountability
throughout the software life cycle.
For example, say you have a cluster of Apache servers and you want to
update them all with an additional mime-type, or add a virtual host to
each. Rather than manually updating each configuration file on each
server you could use a tool that process all the changes simultaneously.
Or a tool that pools all the configuration variables into an easily
readable form driven interface. The other benefit for some of these
tools is the ability to have a changelog so that if your roll out a new
configuration and it doesn’t work you can revert to the last good
configuration easily.
| Set up a Web server cluster in 5 easy
steps
| Construct a highly available Apache Web server cluster that spans
multiple physical or virtual Linux® servers in 5 easy steps with Linux
Virtual Server and Heartbeat v2.
He shows you how to install Apache and PHP on Windows XP, as well as how
to set up a nice working environment. As a bonus, he also shows you how
to install MySQL if you're interested. You can have a complete working
server environment on your desktop and be able to do all your test
there.
read
more | digg story \<http://digg.com/programming/Installing_Apache_2.0_and_PHP_5\_(and_MySQL)\_on_Windows_XP\>__
One of the biggest issues involved with becoming a web publisher is the
question of hosting. With an internet clogged with false hosting review
sites, hosting companies trying to rip you off, and hosting companies
run by 14 year olds, the majority of web publishers are at the mercy of
random chance when it comes to finding a quality host. To solve this
huge problem and to grant freedom to all, we have come up with 75
extremely specific steps that will get you up and running with a *nix
box (running FreeBSD), along with the most recent versions of Apache,
Perl, PHP, and MySQL.