Steps for installing.
1) Install CentOS 4.x choosing " Basic Server " using the CentOS server CD (one cd Wink )
2) once the system is installed, there are a few changes needed, you mush unintall sendmail, and all of it's dependancies. as well as any FTPd.
You can search what's installed with
rpm -qa [package name]*
e.g. rpm -qa php* lists that i have installed
php-ldap-4.3.9-3.22
php-mysql-4.3.9-3.22
php-pear-4.3.9-3.22
php-4.3.9-3.22
to remove a package use
rpm -e <package name>
e.g. to uninstall php i would simply type
rpm -e php
3) install packages you'll need. do this in " stages "
Stage A) yum groupinstall "Development Tools"
Stage B) yum install mysql-devel mysql-server php-gd php-pear php-mysql php-ldap mysql-devel apt cvs
Stage C) Next thing to do is to update everything with the following commands
yum update
updatedb
Now let's get on to the ugly stuff....
a few things you'll need to download... . THis is ugly, but it works... just copy and paste :p
--Start Copy --
cd /
mkdir DTC-DEPS
cd DTC-DEPS
mkdir RPMS
mkdir SRPMS
cd SRPMS
wget http://tusker.sg/redhat/SRPMS/maildrop-2.0.1-2.src.rpm
wget http://tusker.sg/redhat/SRPMS/mod_log_sql-1.100-2.dtc.src.rpm
wget http://tusker.sg/redhat/SRPMS/mod_log_sql-1.100-2.rf.src.rpm
cd /DTC-DEPS/RPMS
wget http://tusker.sg/redhat/RPMS/i386/chrootuid-1.3-rh.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-authlib-0.57-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-authlib-devel-0.57-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-authlib-ldap-0.57-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-authlib-mysql-0.57-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-authlib-pgsql-0.57-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-authlib-pipe-0.57-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-authlib-userdb-0.57-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/courier-imap-4.0.6-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/libnss-mysql-1.5-1.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/maildrop-2.0.1-2.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/maildrop-devel-2.0.1-2.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/maildrop-man-2.0.1-2.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/mod_log_sql-1.100-2.dtc.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/mod_log_sql-1.100-2.rf.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/proftpd-1.2.10-8.dag.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/proftpd-1.2.10-8_mysql.dag.i386.rpm
wget http://tusker.sg/redhat/RPMS/i386/sqwebmail-5.0.6-1.i386.rpm
rpm -Uvh *.rpm
--Stop Copy--
fix any dependancy issues you may have using
yum install <package name>
now for the src RPM's... you'll need to build the RPM's from teh src rpms...
go to /DTC-DEPS/SRPMS and start building the packages by typing in
rpmbuild --rebuild <package name>
for each package, pay particular note to the output, as you will see that it writes the RPM to a folder for you.. and will tell you in the output something similar to:
WROTE: /usr/src/redhat/SOURCES/blah.rpm
or whatever...
you'll copy that to a notepad or something, and build the next package... when you are done building you'll need to type in:
Example:
rpm -Uvh /usr/src/redhat/SOURCES/blah.rpm
the rest is up to you now... check out the CVS repository, and build from the CVS, and install DTC, pay particular attention to the dependancies they describe to you when you first start the installer script. you'll need to do those things.... but most of them will be done if you've followed this guide...
you'll need to install fakeroot.... once i get in touch with the admin of this project, and we decide where to put these files, i'll edit this post with a link so you guys can download all of the dependancies including mhonarc, fakeroot, and the likes....
""CVS INSTRUCTIONS:""
- Login and checkout dtc from CVS
cvs -d :pserver:anonymous@gplhost.com:/var/lib/cvs login # (password is anoncvs)
cvs -d :pserver:anonymous@gplhost.com:/var/lib/cvs checkout dtc
cvs logout
# Make DTC binary packages
cd dtc/bin
fakeroot ./makeRedHat
[I've collected all the dependancy files i used during my install, if the admin wants, i can send him a link to them so he can download them and put them up somewhere for CentOS / Redhat people to download. I will add more to this as i remember everything i did... i'm getting old, and my memory isn't what it once was :p ]
Extras ----------
Also for the version of ProFTPD used, you'll need to edit /etc/proftpd.conf
find
Code:
AuthPAM
and replace with ||
Code: ||
- Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
RequireValidShell off
-------
You may also have a problem with pop3 showing wierd email error in status of @
if so, just add an E-Mail address :)