Custombuild (mysql + exim not installing)

yourivdlans

Verified User
Joined
Apr 6, 2010
Messages
19
Hi all!

Lately i've been having some problems with my ubuntu 8.04 box on amazon EC2, so i decided to install a new instance (virtual machine) with ubuntu 10.04 and DA of course :)

After installing i get the following errors:

Code:
chmod 755 /usr/share/spamassassin
Running sa-update.
Starting SpamAssassin.
Dec 20 18:04:58.788 [4327] warn: server socket setup failed, retry 1: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:04:59.792 [4327] warn: server socket setup failed, retry 2: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:00.802 [4327] warn: server socket setup failed, retry 3: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:01.812 [4327] warn: server socket setup failed, retry 4: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:02.822 [4327] warn: server socket setup failed, retry 5: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:03.832 [4327] warn: server socket setup failed, retry 6: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:04.842 [4327] warn: server socket setup failed, retry 7: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:05.852 [4327] warn: server socket setup failed, retry 8: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:06.862 [4327] warn: server socket setup failed, retry 9: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Dec 20 18:05:07.872 [4327] error: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Restarting exim.
./build: line 6797: /etc/init.d/exim: No such file or directory
grep: /usr/local/directadmin/conf/mysql.conf: No such file or directory
grep: /usr/local/directadmin/conf/mysql.conf: No such file or directory
cp: `/var/www/html/roundcube/logs' and `/var/www/html/roundcubemail-0.4.2/logs' are the same file
cp: `/var/www/html/roundcube/temp' and `/var/www/html/roundcubemail-0.4.2/temp' are the same file
Inserting data to mysql and creating database/user for roundcube...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Database created, da_roundcube password is bYNth2jY
Editing roundcube configuration...
Roundcube 0.4.2 has been installed successfully.
MDB2 Error: connect failed (-24): _doConnect: [Error message: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)]
[Native code: 2002]
[Native message: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)]

Error connecting to database: MDB2 Error: connect failed

phpMyAdmin 3.3.8.1-all-languages installation is done.
cp: `/var/www/html/squirrelmail/data' and `/var/www/html/squirrelmail-1.4.21/data' are the same file
SquirrelMail 1.4.21 installation is done.




*************************************
*                                   *
*   All parts have been installed   *
*                                   *
*************************************

Type: /etc/init.d/httpd restart

Exim and mysql aren't running when i check the service monitor.

Code:
exim	Process is stopped
mysqld	Process is stopped

And when i want to start one of these i get the following error:

Code:
Cannot find the script

Details

/etc/init.d/exim

or

Cannot find the script

Details

/etc/init.d/mysqld

This is my options.conf

Code:
#PHP settings. default_php possible values - 4 or 5, php5_ver - 5.2 or 5.3
default_php=5
php5_ver=5.3
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
zend=no

#Possible values - 5.0, 5.1
mysql=5.1
mysql_inst=yes
mysql_backup=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no

#Mail options
exim=yes
spamassassin=yes
mail-header-patch=no
dovecot=yes

#Statistics
awstats=no
webalizer=yes

#FTP options
proftpd=yes
pureftpd=no

#Jailed shell (beta)
jail=no

#CustomBuild options
custombuild=1.2
autover=no
bold=yes
clean=yes
clean_old_tarballs=no
clean_old_webapps=yes

#Cron settings
cron=yes
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=yes
#Possible values - recommended or dist
php_ini_type=recommended
cleanapache=no
fileserver=1
eximconf=no
downloadserver=files.directadmin.com

I also ran./build clean; ./build all d multiple times, but this isn't working for me.

Hope someone can help!
 
I've tried reinstalling again, that also fails with the following error.

Code:
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

*******************************************
*******************************************

Cannot find /usr/local/bin/php
Please recompile php with custombuild, eg:
cd /usr/local/directadmin/custombuild
./build all d

*******************************************
*******************************************
 
Install the mysql headers via yum or apt-get. mysql-dev or mysql-devel
 
Sorry for the late response, didn't have time to try it out until this evening.

I installed "libmysqlclient-dev" and it fixed the install, it ran trough it in one go.

Code:
sudo apt-get install libmysqlclient-dev

But my mysql issues still haven't been resolved.

Code:
# ./build mysql
grep: /usr/local/directadmin/conf/mysql.conf: No such file or directory
grep: /usr/local/directadmin/conf/mysql.conf: No such file or directory
--2011-01-07 00:02:17--  http://files.directadmin.com/services/all/mysql/debian/mysql-5.1.54-linux-i686.tar.gz
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 130162468 (124M) [application/x-gzip]
Saving to: `mysql-5.1.54-linux-i686.tar.gz'

100%[===============================================================================================>] 130,162,468 1.12M/s   in 2m 7s

2011-01-07 00:04:24 (1003 KB/s) - `mysql-5.1.54-linux-i686.tar.gz' saved [130162468/130162468]

Stopping mysqld ...
./build: line 2864: /etc/init.d/mysqld: No such file or directory
chown: cannot access `/home/mysql': No such file or directory
./build: line 2894: /etc/init.d/mysqld: No such file or directory
Giving mysqld a few seconds to start up...
Looking for 'mysql' as: /usr/local/mysql/bin/mysql
Looking for 'mysqlcheck' as: /usr/local/mysql/bin/mysqlcheck
Running 'mysqlcheck with default connection arguments
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
Restarting MySQL.
./build: line 3004: /etc/init.d/mysqld: No such file or directory
It is recommended to do "./build php n" after MySQL update.
 
Last edited:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build mysql d

or

cd /usr/local/directadmin/scripts
./mysql.sh <pass> da_admin <pass>
 
Back
Top