Установка панели управления сервером Directadmin довольно простая и практически не отличается и не зависит от того, куда ставится на VDS/VPS или dedicated сервера. Хотя, если есть возможность ребилда (из бэкапа) всей системы на VPS, то ошибок можно не боятся, т.к. всегда есть возможность быстрого восстановления. Будьте готовы, что в процессе установки панели управления на сервер будет загружено немногим более 200Мб. ШАГ 1: Знакомство с системными требованиями- «Голая» операционная система: сверьтесь с перечнем поддерживаемых ОС на странице «Подготовка к установке Directadmin»
- Как минимум один внешний IP адрес (Системы работащие на основе NAT/LAN не подойдут)
- Убедитесь, что SSH установлен и работает.
- Убедитесь, что установлены такие пакеты, как gcc и g++, которые потребуется дл сборки apache и php
ШАГ 2: Проверка лицензии- Зайдите под своим аккаунтом в клиентский раздел https://www.directadmin.com/clients и нажмите на ссылку «view» рядом с необходимой лицензией.
- Убедитесь, что IP адрес и операционная система указаны верно. Так же убедитесь, что статус лицензии значится как «Active and Verified» (если не так, значит оплата еще не была обработана).
ШАГ 3: Начинаем установку! **** ОСОБЕННОСТИ УСТАНОВКИ НА FreeBSD **** Если для входа в систему вы используете логин, отличающийся от admin или root (используя su для получения root-доступа): Вам в обязательном порядке необходимо добавить строку "AllowUsers username" в /etc/ssh/sshd_config до того, как разорвете SSH сессию с сервером, в противном случае есть риск потерять шелл доступ к серверу. Ввойдите в систему как суперпользователь (root) и загрузите setup.sh # wget http://www.directadmin.com/setup.sh
Подсказка: Используйте "fetch" вместо "wget" на FreeBSD системах. Установите права на setup.sh # chmod 755 setup.sh
Запустите скрипт! # ./setup.sh
У вас запросят номер клиента (client ID), номер лицензии (license ID number), и имя сервера (hostname). Important: The hostname should not be the same as the primary domain name. e.g. gary.com is not a good hostname, where server.gary.com is. Having the same host/main domain name will cause e-mail and FTP problems. Also, please make sure the hostname resolves once you setup DNS. That's it! Please see below if you are installing on a VPS, or wanting to setup DirectAdmin for secure (https://) control panel access. Special notice for VPS/VDS installs: After the install, add: ethernet_dev=devicename
for example, on many vps systems it will be: ethernet_dev=venet0:0
other systems where the IP is not the base IP on the device, you'd need to simply set the correct number: ethernet_dev=eth0:1
or other systems with the IP on a different device, it might be: ethernet_dev=eth1
type: /sbin/ifconfig
to see which device your IP is in. to /usr/local/directadmin/conf/directadmin.conf. Replace devicename with the FULL devicename reported by ifconfig. If your VDS/VPS system emulates eth0, then you may skip this step. Setup SSL Certificates: This step is only required if you wish to use DirectAdmin through SSL. You will also have to change set SSL=1 in the directadmin.conf file: http://help.directadmin.com/item.php?id=15 Named Reload Bug (RedHat 7.2 Only) Make sure that the /etc/rndc.conf file has the following data for the "server localhost" directive: # cat /etc/rndc.conf ... server localhost { key "rndckey"; }; ...
If you don't see that anywhere, use an editor such as pico or vi to make the file contain the above text. Accessing the Control Panel DirectAdmin can be accessed at http://server.ip.address:2222 -- use the Admin username/password specified in the setup.txt file in your scripts directory. Dealing with RPM errors When installing RPMs, errors can sometimes occur. Don't panic, solving them is usually easy. If you didn't know what to install during your RedHat installation, you might have installed a few services, such as apache and sendmail. These services must be removed before the rpm will be able to be installed.
For example, lets say you are trying to install exim and you get the following: # rpm -ivh exim-3.36-2.i386.rpm Preparing... ########################################### [100%] file /somefile from install of exim-3.36-2 conflicts with file from package sendmail-8.1 ...
This would mean that sendmail is already installed on your server and you must remove it. This can easily be accomplished by running the following: # rpm -e --nodeps sendmail
Then you will be able to install your rpm. This follows for other services such as apache, apache-devel, wu-ftp, php, MySQL and so forth. If you need to figure out if you already have a service installed, you can run # rpm -q servicename
or # rpm -qa | grep substring
Where substring is just a word. For example, using "apache" might return: # rpm -qa | grep apache apache-fp-1.3.27-2 apache-fp-devel-1.3.27-2 apache-fp-manual-1.3.27-2
Полный список требований и всегда актуальную информацию вы можете найти на официальном сайте разработчиков по ссылкам: www.directadmin.com/install.html и www.directadmin.com/installguide.html
|