1 |
# yum -y remove httpd* sendmail* *sasl samba* bind* |
1 |
# yum update |
1 |
# yum -y install gcc gcc-c++ make patch flex bison perl dbus-libs quota screen |
1 |
# screen |
1 |
# wget http://www.directadmin.com/setup.sh |
1 |
# chmod 755 setup.sh |
1 |
# ./setup.sh |
1 |
# yum -y install zlib-devel |
1 |
# yum -y install e2fsprogs* |
1 |
# yum install libcom_err-devel |
1 |
# cd /usr/local/directadmin/scripts |
1 |
# ./install.sh |
1 |
# iptables -F |
1 |
# iptables –S |
1 |
# /etc/init.d/iptables save |
Запуск Mysql
1 |
# /etc/init.d/mysqld start |
1 |
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/mydomain.com.pid). |
(логии смотрим в )
1 |
# tail -f /var/lib/mysql/vm2099.ovz2.ukrnames.com.err |
1 2 3 |
130927 17:05:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql /usr/sbin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory 130927 17:05:22 mysqld_safe mysqld from pid file /var/lib/mysql/vm2099.ovz2.ukrnames.com.pid ended |
1 |
# yum install libaio |
1 |
[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist |
1 |
# mysql_install_db |
1 |
[ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' |
1 |
# chown -R mysql:mysql /var/lib/mysql/mysql/ |
1 |
# /usr/bin/mysql_secure_installation |
1 2 |
[ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure 130927 17:28:10 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/file_summary_by_instance.frm' (errno: 13) |
1 |
# chown -R mysql:mysql /var/lib/mysql/performance_schema/ |
Проверить,чтобы не было пропущенных зависимостей пакетов
1 |
# yum check |
Если есть,тогда доустановить требуемые пакеты. http://admin.site-helper.com http://www.directadmin.com/newinstall.html http://External-IP-address-server/:2222/ […]