CustomBuild Install Kinda Messed My Server Up

tygersclaw

Verified User
Joined
Nov 6, 2006
Messages
24
I attempted to do a install of CustomBuild to my CentOS 5.0 Pentium server this evening, and I ended up with a brick unfortunately.

MySQL is not working, and cannot find sockets.

I have the following error after trying to redo the install, specifically attempting to address httpd which is also down, using the ./build Apache then ./build php and attempt to restart httpd....

Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot

load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: cannot open shared object file: No such file or directory

As well it seems that the server cannot find the MySQL socket for the upgrade from 4.1.xx I had on there to MySQL 5.0 or 5.1.

Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I have been all over the forums this evening trying to find a solution. Note that I do not use the server commercially, although I have 2 friends who have sites on it, but all of my own business sites are on the server so this is a downer for my potential business clients who are wanting to contact me. So therefore I am not as proficient at trouble shooting linux based systems as most of you are...so I am kinda perplexed.

I have also run ./build rewrite_confs in an attempt to possibly retrieve a working httpd conf. file.

Other errors I have encountered of note...

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

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

And that is just the tip of the iceberg unfortunately. I actually had httpd come up for about 15 minutes, then, in closing out the update session, I somehow undid it, and cannot get it back.

Can anyone help me out of this as I have a server basically doing nothing now, whereas before this, it was working just fine, and I am not even sure that email is working now either :(
 
Last edited:
for mysql.sock you should do this

set socket=/tmp/mysql.sock
in /etc/my.cnf
and restart MySQL.

for apache you should try

cd /usr/local/directadmin/custombuild/
./build rewrite_confs

then try restart apache
 
Note that if you mean you were trying to install DirectAdmin via custombuild it is supposed to be installed on a clean server, not one that is currently in use.

Installing custombuild involves downloading the script and that is all. Everything after that is designed to update DirectAdmin and other services that were installed when DirectAdmin was installed.

If you tried to do this to a server that did not already have DirectAdmin running on it then yes it probably totally messed it up.

Tell us step by step what you did.
 
When attempting to start MySQL, I get the following errors...

/etc/init.d/mysqld: line 128: my_print_defaults: command not found
/etc/init.d/mysqld: line 128: my_print_defaults: command not found
No mysqld pid file found. Looked for /var/lib/mysql/ns1.itechosting.net.pid.
/etc/init.d/mysqld: line 128: my_print_defaults: command not found
Can't execute /usr/bin/mysqld_safe from dir /


I have run the ./build rewrite_confs a few times and apache does not start after so kinda pfffft.

Using 72.35.83.89 for your server IP
Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: cannot open shared object file: No such file or directory


As for the server Floyd, as mentioned before I have had this server in place for a while now (2-3 years), DA installed and functioning properly.

It was only when I downloaded and tried to run CB that I developed any problem (I am REALLY wishing I didn't run it at this point).

Before trying CB, I used DA with Custom Apache, and even used Wael's program for updating the server with no problems, however I moved to Custom Build when I got errors in downloading the latest update from Wael's server.

So for CB, I followed the instructions to download, edited the options.conf file (so that mysql install was on and proftp also on as it was off), and then ran the updates and did ./build all d. After the build was done, that is when I got the Apache errors, MySQL errors etc. Apache and MySQL are the only programs that I cannot get started.
 
Last edited:
As for the server Floyd, as mentioned before I have had this server in place for a while now (2-3 years), DA installed and functioning properly.

You had not mentioned that you already had DA installed and functioning properly.

I would use customapache to fix everything.
 
Well I ran Custom Apache to try and "fix everything" and got this error when restarting apache

configure: error: Cannot find MySQL header files under /usr

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

[root@ns1 customapache]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: cannot open shared object file: No such file or directory
[FAILED]
[root@ns1 customapache]#

:(
 
My options.conf settings

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

#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
"options.conf" 64L, 862C
 
Hey,

Like Floyd asked... What exactly did you do... What commands did you run when you first went to CustomBuild...

Obviously you upgraded Apache, PHP and MySQL when you made the move to CB...

David
 
I followed the commands per the FAQ at top of this forum. Apparently, Apache 1.3.X is still supported even though Apache 2.x is installed.

I got this reply from my server provider just now...

Well, after looking around on your system, I can tell you that at 22:14 last night a update was copied down to your server and the files were extracted. At this point, I think the problem lies in the fact that php is missing and mysql (the binary parts, not the databases) are missing. So, I can only assume that this is a failed update where the old versions were uninstalled so the new versions could be installed. I am going to engage DA on this as this may be a bunch of work for us, but may be five for them. I'll continue to work on it until I have a solution.

I followed the instructions, and it failed? With on 1 hours sleep I don't understand...and am looking for any suggestions?
 
Please contact me on any instant messenger and I'll fix your problems.
 
Please contact me on any instant messenger and I'll fix your problems.


Will do...let me know via PM what your IM contact info is and I will message you.

Server provider got httpd to work, however MySQL is still for crap. Here is what I got when I tried to use CustomBuild to do MySQL....

[root@ns1 custombuild]# ./build mysql d
Dumping database caravan_forum
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect

Dumping database caravan_gallery2
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database da_roundcube
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database djtechchat_blogger
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database djtechchat_forum
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database djtechchat_gallery
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database dynaadmin_forum
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database gemradio_livechat
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database itecadmin_accounts
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database itecadmin_bloghome
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database itecadmin_forum
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database itecadmin_support
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database katsmaple_blog
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database mysql
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Dumping database test
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket ' /var/lib/mysql/mysql.sock' (2) when trying to connect
Found /usr/local/directadmin/custombuild/mysql/MySQL-client-5.1.45-1.glibc23.i38 6.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-devel-5.1.45-1.glibc23.i386 .rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-server-5.1.45-1.glibc23.i38 6.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-shared-5.1.45-1.glibc23.i38 6.rpm
Stopping mysqld ...
MySQL manager or server PID file could not be found! [FAILED]
Updating MySQL 5.1.45 to 5.1.45
warning: MySQL-client-5.1.45-1.glibc23.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [ 25%]
2:MySQL-client ########################################### [ 50%]
3:MySQL-devel ########################################### [ 75%]
4:MySQL-server ########################################### [100%]
ERROR: 1034 Incorrect key file for table 'db'; try to repair it
100409 11:42:57 [ERROR] Aborting

100409 11:42:57 [Note] /usr/sbin/mysqld: Shutdown complete


Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!

Starting MySQL.Manager of pid-file quit without updating file.[FAILED]
Starting MySQL.Manager of pid-file quit without updating fi[FAILED]

Giving mysqld a few seconds to start up...
Looking for 'mysql' as: /usr/bin/mysql
Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Running 'mysqlcheck with default connection arguments
/usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server throug h socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
/usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server throug h socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
Restarting MySQL.
MySQL manager or server PID file could not be found! [FAILED]
Starting MySQL.Manager of pid-file quit without updating fi[FAILED]

It is recommended to do "./build php n" after MySQL update.
 
Martynas and I have communicated and between the datacenter and Martynas, everything is back working and totally updated.

Thanks to those who tried to assist. It was appreciated sincerely.
 
Back
Top