“UbuntuHelp:VHCS”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/VHCS}} {{Languages|UbuntuHelp:VHCS}} Basic installation instructions for the VHCS "Virtual Hosting Control Panel". IN PROGRESS VHCS - mkdir -p /...) |
小 |
||
第5行: | 第5行: | ||
IN PROGRESS | IN PROGRESS | ||
− | VHCS | + | === VHCS === |
+ | This procedure will install VHCS2 without using the .deb file. | ||
+ | |||
+ | === Installation Procedure === | ||
+ | ==== Preparation ==== | ||
+ | Create basic directories to work | ||
+ | <pre><nowiki> | ||
mkdir -p /tmp/vhcs_tmp/install | mkdir -p /tmp/vhcs_tmp/install | ||
cd /tmp/vhcs_tmp/install | cd /tmp/vhcs_tmp/install | ||
+ | </nowiki></pre> | ||
+ | |||
+ | Remove unwanted packages | ||
+ | <pre><nowiki> | ||
apt-get remove ppp pppconfig pppoeconf ubuntu-standard | apt-get remove ppp pppconfig pppoeconf ubuntu-standard | ||
+ | </nowiki></pre> | ||
+ | |||
+ | Shutdown unwanted services | ||
+ | <pre><nowiki> | ||
update-inetd --remove daytime | update-inetd --remove daytime | ||
update-inetd --remove telnet | update-inetd --remove telnet | ||
第17行: | 第31行: | ||
update-inetd --remove ftp | update-inetd --remove ftp | ||
update-inetd --remove discard | update-inetd --remove discard | ||
− | apt-get install ssh postfix postfix-tls proftpd-mysql courier-authdaemon courier-base courier-imap courier-maildrop courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl libmailtools-perl libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl perl-base perl-modules bind9 diff gzip iptables libmcrypt4 mysql-client mysql-common mysql-server patch | + | </nowiki></pre> |
+ | |||
+ | ==== Packages Installation ==== | ||
+ | Install base packages. | ||
+ | <pre><nowiki> | ||
+ | apt-get install ssh postfix postfix-tls proftpd-mysql courier-authdaemon courier-base courier-imap courier-maildrop courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl libmailtools-perl libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl perl-base perl-modules bind9 diff gzip iptables libmcrypt4 mysql-client-5.0 mysql-common mysql-server-5.0 patch php5 php5-mcrypt php5-mysql php-pear procmail tar original-awk libterm-readpassword-perl libsasl2-modules libsasl2-2 sasl2-bin apache2 apache2.2-common apache2-mpm-prefork libapache2-mod-php5 bzip2 build-essential | ||
+ | </nowiki></pre> | ||
+ | |||
+ | When asked: | ||
+ | <pre><nowiki> | ||
"courier" - No | "courier" - No | ||
"postfix" - defaults | "postfix" - defaults | ||
− | wget http://easynews.dl.sourceforge.net/sourceforge/vhcs/vhcs2-2.4.7.1.tar.bz2 | + | "proftpd" - standalone |
− | tar xjvf vhcs2-2.4.7.1.tar.bz2 | + | </nowiki></pre> |
− | cd ./vhcs2-2.4.7.1 | + | |
− | make install | + | |
− | cp -R /tmp/vhcs-2.4.7.1/etc/* /etc | + | ==== Database Setup ==== |
− | cp -R /tmp/vhcs-2.4.7.1/var/* /var | + | Setup MySQL password |
− | cp -R /tmp/vhcs-2.4.7.1/usr/* /usr | + | <pre><nowiki> |
− | + | # mysql -u root | |
+ | > create database vhcs2; | ||
+ | > use vhcs2 | ||
+ | > grant all privileges on *.* to 'vhcs2'@'localhost' identified by 'vhcs2' with grant option; | ||
+ | > \q | ||
+ | </nowiki></pre> | ||
+ | |||
+ | ==== Download and Extract VHCS2 ==== | ||
+ | Download VHCS2 2.4.7.1: | ||
+ | <pre><nowiki> | ||
+ | # wget http://easynews.dl.sourceforge.net/sourceforge/vhcs/vhcs2-2.4.7.1.tar.bz2 | ||
+ | # tar xjvf vhcs2-2.4.7.1.tar.bz2 | ||
+ | # cd ./vhcs2-2.4.7.1 | ||
+ | </nowiki></pre> | ||
+ | |||
+ | ==== Configuration File ==== | ||
+ | Edit configs/vhcs2.conf and change the following lines: | ||
+ | <pre><nowiki> | ||
+ | DEFAULT_ADMIN_ADDRES = your email | ||
+ | SERVER_HOSTNAME = your hostname | ||
+ | BASE_SERVER_IP = your ip | ||
+ | DATABASE_TYPE = mysql | ||
+ | DATABASE_HOST = localhost | ||
+ | DATABASE_NAME = vhcs2 | ||
+ | DATABASE_PASSWORD = vhcs2 | ||
+ | DATABASE_USER = vhcs2 | ||
+ | </nowiki></pre> | ||
+ | |||
+ | If you wish alter this line too: | ||
+ | <pre><nowiki> | ||
+ | DATE_FORMAT = m.d.Y | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | ==== Compile, Create VHCS Tree and Install ==== | ||
+ | Create the VHCS Tree: | ||
+ | <pre><nowiki> | ||
+ | # make install | ||
+ | </nowiki></pre> | ||
+ | This will create the VHCS tree into the /tmp directory | ||
+ | |||
+ | Copy files into correct directories: | ||
+ | <pre><nowiki> | ||
+ | # cp -R /tmp/vhcs-2.4.7.1/etc/* /etc | ||
+ | # cp -R /tmp/vhcs-2.4.7.1/var/* /var | ||
+ | # cp -R /tmp/vhcs-2.4.7.1/usr/* /usr | ||
+ | </nowiki></pre> | ||
+ | |||
+ | ==== Configuration Script ==== | ||
+ | Run the configuration script: | ||
+ | <pre><nowiki> | ||
+ | # cd /var/www/vhcs2/engine/setup | ||
+ | # ./vhcs2-setup | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | <pre><nowiki> | ||
+ | Welcome to VHCS2 '2.4 Spartacus' Setup Dialog. | ||
+ | This program will set up VHCS2 system on your server. | ||
+ | Please press 'Enter' to continue. | ||
+ | |||
+ | Please enter system hostname (Enter for defaults) [debian]: ''yourhostname'' | ||
+ | Please enter system network address (Enter for defaults) [192.168.0.128]: ''your ipaddress'' | ||
+ | |||
+ | Please enter SQL server host (Enter for defaults) [localhost]: | ||
+ | |||
+ | Please enter system SQL database (Enter for defaults) [vhcs2]: ''vhcs2'' | ||
+ | Please enter system SQL user (Enter for defaults) [root]: ''vhcs2'' | ||
+ | Please enter system SQL password (Enter for defaults) [none]: ''vhcs2'' | ||
+ | Please repeat system SQL password: ''vhcs2'' | ||
+ | |||
+ | Please enter VHCS ftp SQL user (Enter for defaults) [vftp]: ''vftp'' | ||
+ | Please enter VHCS ftp SQL user password (Enter for defaults) [none]: ''vftp'' | ||
+ | Please repeat VHCS ftp SQL user password: ''vftp'' | ||
+ | |||
+ | Please enter administrator login name (Enter for defaults) [admin]: | ||
+ | Please enter administrator password: your password | ||
+ | Please repeat administrator password: your password | ||
+ | |||
+ | Please enter admininistrator email address: ''your email address'' | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | ==== Final Settings ==== | ||
/var/www/vhcs2/engine/setup/vhcs2-setup | /var/www/vhcs2/engine/setup/vhcs2-setup | ||
"defaults + passwords" | "defaults + passwords" | ||
nano /etc/apache2/httpd.conf | nano /etc/apache2/httpd.conf | ||
"Include /etc/apache2/sites-available/vhcs2.conf" | "Include /etc/apache2/sites-available/vhcs2.conf" | ||
+ | |||
+ | <pre><nowiki> | ||
update-rc.d vhcs2_daemon defaults | update-rc.d vhcs2_daemon defaults | ||
update-rc.d vhcs2_network defaults | update-rc.d vhcs2_network defaults | ||
+ | </nowiki></pre> | ||
---- | ---- |
2007年11月21日 (三) 17:41的版本
Basic installation instructions for the VHCS "Virtual Hosting Control Panel".
IN PROGRESS
目录
VHCS
This procedure will install VHCS2 without using the .deb file.
Installation Procedure
Preparation
Create basic directories to work
mkdir -p /tmp/vhcs_tmp/install cd /tmp/vhcs_tmp/install
Remove unwanted packages
apt-get remove ppp pppconfig pppoeconf ubuntu-standard
Shutdown unwanted services
update-inetd --remove daytime update-inetd --remove telnet update-inetd --remove time update-inetd --remove finger update-inetd --remove talk update-inetd --remove ntalk update-inetd --remove ftp update-inetd --remove discard
Packages Installation
Install base packages.
apt-get install ssh postfix postfix-tls proftpd-mysql courier-authdaemon courier-base courier-imap courier-maildrop courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl libmailtools-perl libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl perl-base perl-modules bind9 diff gzip iptables libmcrypt4 mysql-client-5.0 mysql-common mysql-server-5.0 patch php5 php5-mcrypt php5-mysql php-pear procmail tar original-awk libterm-readpassword-perl libsasl2-modules libsasl2-2 sasl2-bin apache2 apache2.2-common apache2-mpm-prefork libapache2-mod-php5 bzip2 build-essential
When asked:
"courier" - No "postfix" - defaults "proftpd" - standalone
Database Setup
Setup MySQL password
# mysql -u root > create database vhcs2; > use vhcs2 > grant all privileges on *.* to 'vhcs2'@'localhost' identified by 'vhcs2' with grant option; > \q
Download and Extract VHCS2
Download VHCS2 2.4.7.1:
# wget http://easynews.dl.sourceforge.net/sourceforge/vhcs/vhcs2-2.4.7.1.tar.bz2 # tar xjvf vhcs2-2.4.7.1.tar.bz2 # cd ./vhcs2-2.4.7.1
Configuration File
Edit configs/vhcs2.conf and change the following lines:
DEFAULT_ADMIN_ADDRES = your email SERVER_HOSTNAME = your hostname BASE_SERVER_IP = your ip DATABASE_TYPE = mysql DATABASE_HOST = localhost DATABASE_NAME = vhcs2 DATABASE_PASSWORD = vhcs2 DATABASE_USER = vhcs2
If you wish alter this line too:
DATE_FORMAT = m.d.Y
Compile, Create VHCS Tree and Install
Create the VHCS Tree:
# make install
This will create the VHCS tree into the /tmp directory
Copy files into correct directories:
# cp -R /tmp/vhcs-2.4.7.1/etc/* /etc # cp -R /tmp/vhcs-2.4.7.1/var/* /var # cp -R /tmp/vhcs-2.4.7.1/usr/* /usr
Configuration Script
Run the configuration script:
# cd /var/www/vhcs2/engine/setup # ./vhcs2-setup
Welcome to VHCS2 '2.4 Spartacus' Setup Dialog. This program will set up VHCS2 system on your server. Please press 'Enter' to continue. Please enter system hostname (Enter for defaults) [debian]: ''yourhostname'' Please enter system network address (Enter for defaults) [192.168.0.128]: ''your ipaddress'' Please enter SQL server host (Enter for defaults) [localhost]: Please enter system SQL database (Enter for defaults) [vhcs2]: ''vhcs2'' Please enter system SQL user (Enter for defaults) [root]: ''vhcs2'' Please enter system SQL password (Enter for defaults) [none]: ''vhcs2'' Please repeat system SQL password: ''vhcs2'' Please enter VHCS ftp SQL user (Enter for defaults) [vftp]: ''vftp'' Please enter VHCS ftp SQL user password (Enter for defaults) [none]: ''vftp'' Please repeat VHCS ftp SQL user password: ''vftp'' Please enter administrator login name (Enter for defaults) [admin]: Please enter administrator password: your password Please repeat administrator password: your password Please enter admininistrator email address: ''your email address''
Final Settings
/var/www/vhcs2/engine/setup/vhcs2-setup "defaults + passwords" nano /etc/apache2/httpd.conf "Include /etc/apache2/sites-available/vhcs2.conf"
update-rc.d vhcs2_daemon defaults update-rc.d vhcs2_network defaults