Apple missed the header files for MySql from the Leopard Server DVD. Download and follow it's instruction. 1. Download and install the following Intel Leopard based packages:
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
cpan
install Bundle::CPAN
install HTML::Parser
install Net::DNS
quitBuild and install DBI-1.604 and DBD-mysql-4.006:
curl -O http://cpan.mirror.clemson.edu/authors/id/T/TI/TIMB/DBI-1.604.tar.gz
gunzip DBI-1.604.tar.gz
tar -xvf DBI-1.604.tar
cd DBI-1.604
perl Makefile.PL
make
make test
make installTo build DBD-mysql-4.006, create a database called "test" and replace 'testpassword' with your mysql root password.
curl -O http://ftp.daum.net/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.006.tar.gz
gunzip DBD-mysql-4.006.tar.gz
tar -xvf DBD-mysql-4.006.tar
cd DBD-mysql-4.006
perl Makefile.PL --testdb=test --testuser=root --testpassword=secret
make
make test
make installInstall PEAR and PEAR DB:
curl http://pear.php.net/go-pear > go-pear.php
php -q go-pear.phpDuring PEAR installation you can type in the name of the directory where you want PEAR installed. Alter the location for prefix and binaries as follows:
1. Installation prefix ($prefix) : /usr/lib/php
3. Binaries directory : /usr/binTowards the end of the installation process confirm "Y" to add an include_path to your php.ini file.
Would you like to alter php.ini </private/etc/php.ini>? [Y/n] : yWhich will add the following to php.ini.
include_path=".:/usr/lib/php/PEAR"Continue to install PEAR DB
pear install DB
sudo cpan install Mail::SpamAssassin quit
ecm2Admin should be in your home (root) directory unpacked:
Set up MySql database via terminal:
mysql -u root -p mysql> CREATE database ecm2_db; mysql> use ecm2_db; mysql> \. /private/var/root/ecm2Admin/ecm2_db.sql mysql> quitAfter you finished with mysql installation, move the "ecm2Admin" folder to wherever you serve files via apache.
EXIM: Open exim "configure" file and edit the top part of "Main configuration Setting":
open -e /usr/local/exim/configureFill in username and password, server ip number and your primary hostname:
SERVER_IP = 0.0.0.0
primary_hostname = example.com
hide mysql_servers =
localhost::(/var/mysql/mysql.sock)/ecm2_db/username/passwordCOURIER (Authlib): Open courier "authmysqlrc" file to edit the following lines near the top:
open -e /usr/local/courier-authlib/etc/authlib/authmysqlrcMYSQL_USERNAME username
MYSQL_PASSWORD passwordSPAMASSASSIN: Open SA's "local.cf" file and edit with appropriate values:
open -e /private/etc/mail/spamassassin/local.cMYSQL_USERNAME
MYSQL_PASSWORDECM2ADMIN: Open "config.inc.phpf" file and enter database username/password:
open -e /Library/WebServer/ecm2Admin/config/config.inc.phpMYSQL_USERNAME
MYSQL_PASSWORD
Apple's mail.log needs to be fixed in order to show courier logging. Login as root to your terminal and open syslog.conf file.
open -e /private/etc/syslog.conf
Replace 'crit' with '*' after mail.
mail.* /var/log/mail.logREBOOT
After you finished with the installation you can log in via web browser at http://yourdomain.com/ecm2Admin.
Inital username/password will be username: siteadmin and password: change in order to gain access as an administrator to set up admins and domains.When ECM2 is installed and correctly functioning, it sends a new email to the postmaster and/or users upon creation of their accounts. The initial email can be customized within the config file (config.inc.php) for ecm2Admin.
![]()