
apache-host-control
Package for control your virtual hosts, users and zones on Apache/Nginx/Lighttpd/MySQL/Vsftpd/Bind.
This package Is intended for programmers who have to deal with Ubuntu/Debian Linux and develop on PHP, Python, Ruby, Django & RoR. This package automatizes the process of working with virtual hosts and etc.
Скрипт, для контроля виртуальных хостов, пользователей и зон в Apache/Nginx/Lighttpd/MySQL/Vsftpd/Bind.
Данный набор предназначен, для облегчения жизни программиста, работающего с: PHP, Python, Ruby, Django, RoR в Ubuntu/Debian Linux. Скрипт автоматизирует процесс удаления, добавления хостов/учетных записей.
Git repository: https://github.com/gotlium/ahc.git
Installing / Установка :
From deb / Пакета:
$ sudo apt-get install -y python-pip python-mysqldb python-flup
$ wget http://apache-host-control.googlecode.com/files/ahc-v.1.5.deb
$ sudo dpkg -i ahc-v.1.5.deb
From source / С исходников:
Download source file / Скачайте скрипт:
$ sudo -i
$ cd /usr/src/ && wget http://apache-host-control.googlecode.com/files/ahc-v.1.5.tar.gz
Unpack them / Распакуйте:
$ tar xzf ahc-v.1.5.tar.gz && rm -f ahc-v.1.5.tar.gz && cd ./ahc/
Install requirements and source / Установите:
$ sudo apt-get install python-pip
$ pip install -r requirements.txt && make install
Install all packages for development / Установка всех необходимых пакетов:
$ ahc -m install -s lamp
You can change default settings. To do it, open the /etc/ahc.conf file, and change necessary values. / Если Вам понадобиться изменить стандартные настройки, откройте /etc/ahc.conf и измените необходимые значения.
Apache:
$ ahc -m install -s apache2_ssl
$ ahc -m test -s apache
$ ahc -m apache -t php -a example.com
Nginx:
$ ahc -m install -s nginx_ssl
$ ahc -m test -s nginx
$ ahc -m nginx -t php -a example.com
FTP users:
$ ahc -m install -s ftp
$ ahc -m test -s ftp
$ ahc -m ftp -a example.com -u User -p Password
MySQL users:
$ ahc -m install -s mysql
$ ahc -m test -s mysql
$ ahc -m mysql -a example.com -u User -p Password
Bind zones:
$ ahc -m install -s bind
$ ahc -m test -s bind
$ ahc -m bind -a example.com -i 127.0.0.1
Projects encryption:
$ ahc -m crypt -a mount
$ ahc -m crypt -a umount
Firewall:
$ ahc -m install -s firewall
$ iptables -L -n
OR
$ cat /etc/init.d/rc.fw
Depends: python>=2.6, python-mysqldb, php5, apache2, libapache2-mod-php5, libapache2-mod-python, ssl-cert, vsftpd, libpam-mysql, mysql-server, mysql-client, lighttpd, nginx
compatible with ISPManager / Совместим с ISPmanager