Configuring Apache2.0 to use SSL

I followed this site to get the basics up and running, in particular how to generate self-signed certificates: Raible’s Wiki: ApacheSSL

The actual configuration of my Virtual Hosts in the httpd.conf file was more trial and error. There is plenty of info about not mixing name and ip based Vitual Hosts, but I couldn’t find a good working example. It turns out that this configuration works fine:

<code>
NameVirtualHost x.x.x.x:80

#Use SSL for this Virtual Host
&lt;VirtualHost x.x.x.x:443&gt;
   SSLEngine On
   SSLCertificateFile /path_to/server.crt
    SSLCertificateKeyFile /path_to/server.key
    DocumentRoot /doc_root_for_ssl_protected_files
    ServerName server.name.com
&lt;/VirtualHost&gt;

&lt;VirtualHost x.x.x.x:80&gt;
    DocumentRoot /doc_root_for_files_on_port_80/
    ServerName otherserver.server.com
    DirectoryIndex index.jsp index.html
&lt;/VirtualHost&gt;


&lt;VirtualHost x.x.x.x:80&gt;
    DocumentRoot /doc_root_for_other_files_on_port_80/
    ServerName otherserver2.server.com
    DirectoryIndex index.jsp index.html
&lt;/VirtualHost&gt;

#ssl config
SSLMutex sem
SSLRandomSeed startup builtin
SSLSessionCache none

ErrorLog logs/ssl.log

</code>

Diagnosing SquirrelMail problems on Apache

I have been trying to deploy SquirrelMail to my webserver, which is currently set up as Apache 2.0.40 and mod_jk2 to Tomcat 4.1.24 on JBoss3.2.1.

When I try and access any page in SquirelMail other than the log on page, I get a blank page come back, with no errors.

Looking in the Apache error_log (/var/log/httpd/error_log) shows a few PHP errors:

<code>PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 4097 bytes) in
 /usr/share/squirrelmail/functions/imap_general.php on line 48</code>

This memory setting is in the /etc/php.ini file. Increasing this from 8M to 64M, and the max_execution_time from 30 to 120 fixed the memory and timeout problems.

The /var/log/messages file also showed the following error:

<code>Nov  7 11:17:52 localhost xinetd[20446]: libwrap refused connection to imap from 127.0.0.1
</code>

Adding imapd: 127.0.0.1 to /etc/hosts.allow fixed this.

PalmOne looking to broaden support on Palm devices to other OSes

In a bizarre twist since Palm split into two separate companies, PalmOne in control of the hardware and PalmSource owning the PalmOS and software, there is a story in News.com today stating that PalmOne are looking to move to support different OSes on the Palm devices.

Quite how this will leave PalmSource is uncertain, but I am sure PalmSource are not too happy about this, since PalmOne is their main customer for the PalmOS operating system.

Other mentioned OSes are a modified version of Linux and/or Windows (PocketPC?)

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…