Updating and installing Redhat9.0 to run latest Apache and mod-jk2 with JBoss3.x/Tomcat4.x

02/21/06 This info is now long out of date. Google for mod_jk instead, which should be used instead of mod_jk2.

I’m setting up Apache on my Redat9.0 Linux server to run SquirrelMail, and amongt other things, re-enable/rebuild the Apache–>Mod-JK2–>JBoss3.x/Tomcat4.x confinguration I had running before my server’s harddrive failed 🙁

See the other post here in my JBoss section about downloading and installing the Mod-JK2 connector for connecting Apache to Tomcat.

It seems in order to install the Mod-JK2 connector on this version of RedHat9.0 I installed, I need to update my Apache server version as Mod-JK2 is dependent on a later version of httpd-mmn (whatever that is). I downloaded Httpd-2.0.51-2.7 from pbone.net, but this is dependent on a whole bunch of other stuff.

Not being too familiar with updating large numbers of dependent RPMs, I’ve found in the past that automated solutions such as Ximian’s RedCarpet are the easiest way (for me) to do this.

RedCarpet was dependent on later versions of glibc and glibc-common (2.3.2-27.9.7.i386), which I also donwloaded from pbone.net.

Next I installed the 3 RPM packages for RedCarpet.

Still in progress…

Configuring Samba for Windows file shares

Samba allows Windows machines to access shared areas of a Linux filesystem.

These notes are for configuration on a RedHat 9.0 linux installation and assume that the SMB services are already installed.

Startup

The two SMB daemons are /usr/sbin/smbd and /usr/sbin/nmbd. These are started from init.d.
Check if the smb service is already setup to run automatically from init.d with:

chkconfig --list

Look for SMB in this list for the level that you intend it to run at (eg 3= multiuser text mode)

If it is not in the list, add it with:

chkconfig --add smb

Configure the service to start with:
chkconfig smb on

To startup the services now (only have to do this once), use:

./etc/init.d/smb start

Configuration

Configuration is via the /etc/smb.conf file. Here is a sample basic config:

<code>
[global]
; Uncomment this if you want a guest account
; guest account = nobody
   log file = /var/log/samba-log.%m
   lock directory = /var/lock/samba
   share modes = yes
   encrypt passwords = yes
   smb passwd file = /etc/smbpasswd



[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mode = 0750

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

</code>

Test the config using:
testparm – this validates that the file is correct.

Ensure ports 137, 138 and 139 are open on the Linux server. On my RedHat machine I config the firewall using Lokkit. Run this and to the list of open ports.

Further References: