Why So Seriouz!?!?

Source Based Apache Installation

leave a comment

I’ve been spoiled by CentOS/Fedora’s yum and Ubuntu’s apt for along time, so when I need to install a new Apache, I have to learn again. The machine is Fedora Core 6. Yes, it’s an old version.

After unpack it, this is my configure options:

./configure --prefix=/opt/apache2215 --enable-mods-shared=most \
--enable-so --enable-ssl  --enable-deflate

and then, as usual, make and make install command. In /opt/apache2215/conf/httpd.conf, change the lines:

DocumentRoot "/var/www/htdocs"
 
<Directory "/var/www/htdocs">
    ...
</Directory>

You may wish to change /var/www/htdocs.

I’m using /etc/init.d/httpd from Fedora, and just change:

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/opt/apache2215/bin/apachectl
httpd=${HTTPD-/opt/apache2215/bin/httpd}

Everything else are the same.

I’m editing /etc/sysconfig/httpd too and add these lines:

OPTIONS='-d /opt/apache2215'
PIDFILE=/var/run/httpd.pid
LOCKFILE=/var/lock/subsys/httpd
CONFFILE=/opt/apache2215/conf/httpd.conf

To prevent ever growing log files, I add these lines in /etc/logrotate.d/httpd (if you install logrotate):

/opt/apache2215/logs/*log {
   missingok
   nocompress
   daily
   rotate 14
   notifempty
   sharedscripts
   postrotate
       /sbin/service httpd reload > /dev/null 2>/dev/null || true
   endscript
}

Try to start/stop/restart to test it. If succeed, the next step is activate mod_ssl. Execute these lines below:

# Generate private key
openssl genrsa -out ca.key 1024
 
# Generate CSR
openssl req -new -key ca.key -out ca.csr
 
# Generate Self Signed Key
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
 
# Move the files to the correct locations
mv ca.crt /etc/pki/tls/certs
mv ca.key /etc/pki/tls/private/ca.key
mv ca.csr /etc/pki/tls/private/ca.csr

Those command will generate self-signed certificate key for aour server. In /opt/apache2215/conf/httpd.conf, add the modules and make sure that the line contain Include conf/extra/httpd-ssl.conf not commented:

LoadModule ssl_module           modules/mod_ssl.so
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

In /opt/apache2215/conf/extra/httpd-ssl.conf, edit these lines:

<VirtualHost _default_:443>
   ...
   ErrorLog "/opt/apache2215/logs/error_log"
   TransferLog "/opt/apache2215/logs/access_log"
 
   SSLCertificateFile "/etc/pki/tls/certs/ca.crt"
   SSLCertificateKeyFile "/etc/pki/tls/private/ca.key"
</VirtualHost>

Try to restart and access https://yourhost to test it.

Written by admin

March 14th, 2010 at 11:37 pm

Posted in Uncategorized

Tagged with

It’s easy to upgrade Zimbra Mail Server

leave a comment

I’m fairly new with Zimbra Mail Server, just 5 months, migrate from our old Postfix+MySQL (3 years operational, 2 weeks for build it on Debian,many days for tweaking). Fortunately, it’s easy too to migrate 20GB old data to Zimbra. Without change user password! half hour installation, but many hours moving the old mail with imapsync

The version was 5.0.16, build on CentOS 5.3. My manager then decided to replace the server with the new one. Based on Moving ZCS to Another Server, the 50GB data successfuly transfered to the new server (but not new machine). With similar way, (just ./install.sh, without -s parameter), successfuly upgrade to 5.0.18, and then 6.0.2.

There is no complain from coworker with their mail, except 1.5 hours downtime for data backup and upgrade for each version.

Written by admin

October 28th, 2009 at 11:19 pm

Posted in Uncategorized

Tagged with ,

My Ubuntu chronicle: 11 JUNI 2009

one comment

It’s been almost three years since last time I use Linux in my desktop environment. Eventhough this past 10 years I use GNU/Linux OS, especially Debian system, but I’m still a little bit confusing with it’s desktop environment.

Thank God, my Ubuntu 9.04 doesn’t have difficulty installed to Lenovo Thinkpad R61. Right now, Pidgin, OpenOffice, Firefox, Thunderbird is adequate for my daily job, because I use them in my last Windows XP. So after the installation is finished, I began to find software that I frequently use, that have similar functionality with software in Windows XP. Some already found, but still there are many that I am not found yet. For now, the software that have similar function with WIndows XP version, are:

  • Tucan Manager as rapidshare download manager (especially for free user), counterpart for RapidsharePlus. But, Tucan Manager have more feature than RapidsharePlus, as it can handle more site, not only rapidshare. But, these 3 days, I got problem regarding download from rapidshare. This software not in Ubuntu repository, I got the deb packages from http://www.getdeb.net.
  • lxsplit, counterpart of HJSplit. Linux version of HJSplit GUI failed to work, so I use this instead.

Below are the list of software in Windows XP, I have not yet found in my desktop environment:

  • Onenote/Evernote as note taking tool or personal information manager. I am not organized person, using software to help me in this area (LOL). Yes, there are Basket Note Pads or Tomboy, but I still those software has not fulfilled my need yet.

Written by admin

June 11th, 2009 at 9:10 pm

Posted in Uncategorized

Tagged with

Hello world!

one comment

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Written by admin

June 2nd, 2009 at 10:17 am

Posted in Uncategorized