安装完成ispconfig后,如果有些功能有问题,如apache不能重启之类,可以查看日志/home/admispconfig/ispconfig/ispconfig.log
一、准备工作
1.安装vsftpd
2.安装bind
安装
bind-chroot-9.3.4-6.P1.el5.i386.rpm
bind-9.3.4-6.P1.el5.i386.rpm
bind-devel-9.3.4-6.P1.el5.i386.rpm
配置bind
cp -r /usr/share/doc/bind-9.3.4/sample/etc/ /var/named/chroot/
cp -r /usr/share/doc/bind-9.3.4/sample/var/named/ /var/named/chroot/var/
修改/var/named/chroot/var/etc/named.conf里的
/usr/sbin/dns-keygen生成TSIG keys然后替换secret ""引号内的内容.
添加dns域
注意:
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot (一定要执行,否则启动时会报错)
chkconfig --levels 235 named on
注意,ispconfig启动并正确配置后会修改named.conf文件,使用模板/root/ispconfig/isp/conf/named.conf.master来替换该文件。
BIND will run in a chroot jail under /var/named/chroot/var/named/. I will use ISPConfig to configure BIND (zones, etc.).
3、关于之前编译安装的apache、mysql,需要做以下的操作
ln -s /usr/local/apache/bin/httpd /usr/local/bin/httpd
ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
ln -s /usr/local/apache/bin/apachectl /usr/local/bin/apachectl
ln -s /usr/local/mysql/include/ /usr/include/mysql
ln -s /usr/local/mysql/lib/mysqllib /usr/local/mysql/lib
如果之前不是编译安装的mysql,需要安装以下rpm包
mysql-devel-5.0.45-7.el5.i386.rpm
libmysql-devel
4.安装perl的相关模块
perl-XML-Parser-2.34-6.1.2.2.1.i386.rpm
perl-DBI-1.52-1.fc6.i386.rpm
perl-Digest-SHA1-2.11-1.2.1.i386.rpm
perl-Net-IP-1.25-2.fc6.noarch.rpm
perl-Digest-HMAC-1.01-15.noarch.rpm
perl-Net-DNS-0.59-3.el5.i386.rpm
5.时钟同步
crontab -e
1-60/5 * * * * /usr/sbin/ntpdate 0.pool.ntp.org
二、开始安装ISPConfig
1、使用RHEL5.2,执行setup时报错,版本问题,使用centos5.2,centos5.3不会有问题
修改setup1文件,注销掉下面这一段就不会对操作系统版本进行检查了
if [ "$dist_supported" == "" ] || [ "$distvers" == "" ]; then
error "Ihr Betriebssystem wird nicht unterstützt! / Your operating system is not supported! / Votre systeme d'exploitation n'est p
as supporté!"
fi
在询问是否使用ssl密码时,选择no
2、安装程序会编译一个支持PHP5的Apache,它将运行在81端口。这个Apache是ISPConfig需要的,它不会影响到已经安装好的apache,新的apache会安装在/root/ispconfig/httpd目录下
3、Please select the protocol (http or https (SSL encryption)) to use to access the ISPConfig system:
1) HTTPS
2) HTTP
Your Choice:
HTTP并不省事,可能会报错一大堆,建议选择使用HTTPS。
4、关于DNS
安装完成后修改 Management-Server-Settings-DNS-
Zonefiles Dir.: 改为/var/named/chroot/var/named/ (ispconfig会根据这个修改/var/named/chroot/etc/named.conf文件)
修改/root/ispconfig/isp/conf/named.conf.master文件中的
删除这一行 pid-file "/var/named/chroot/var/named/data/named.pid";
关于报错:
named: _default/pp.com/IN: file not found
或
1)named: /etc/named.conf:2: change directory to '/var/named/chroot/var/named' failed: file not found
需要确认以下几点
/var/named/chroot/etc/named.conf中:
directory "/var/named/chroot/var/named";
2)ispconfigweb管理界面中Management-Server-Settings-DNS- 中:
Zonefiles Dir.: 为/var/named/chroot/var/named/
3)执行了
cd /var/named/chroot/var/named/
ln -s ../../ chroot
5、关于建立web站点
首先需要有一个Reseller、Customer
需要注意的是,如果在建立时填写了Apache Directives (Optional): ,可能会造成建立新站点失败,是否建立成功,查看是否/usr/local/apache/conf/vhosts/Vhosts_ispconfig.conf 文件里是否写入了配置。
如果没有写入,执行以下命令查看是否正确执行/root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php
注意:新建完站点后,注意在该站点的“User&Email”选项里建立一个User,否则不能登陆管理该站点。
通过管理界面重启web失败时,手动重启试一下,有可能是Vhosts_ispconfig.conf这个文件存在语法错误,常见于填写了Apache Directives (Optional)这个选项造成配置文件语法错误,apache不能启动。
另:管理界面--server--settings--web
修改httpd user 和httpd group为daemon(apache的conf里指定的用户)
6关于server setting里的两个问题
1)Q:the tab Web: Frontpage Path, when frontpage isn't installed, should this be made empty or can I leave the default value as is? For Suexec, when do I have to mark the checkbox and when not, and why exactly is it for (short explanation, it's only to check if I'm on the right track)?
A:You can leave the default value. Frontpage is enabled when you select frontpage active on the functions tab.
2)Q:the Save Log on some of the pages, are they for debugging or should I leave them always checked, or uncheck them later (won't they grow to big when I leave them always on)?
A:I recommend to disable save log. This log is not rotated, it is a log function that is nescessary due to the law in some countries.
7、如果apache上有原来的应用,可能在配置完ispconfig后不能正常访问,如图片不能显示等。
原因:vhost文件更改了非域名型虚拟主机的documentroot目录
解决:更改文件/usr/local/apache/conf/vhost/Vhosts_ispconfig.conf
NameVirtualHost 192.168.7.191:80
ServerName localhost
ServerAdmin root@localhost
#DocumentRoot /var/www/sharedip #ispconfig配置的目录。
DocumentRoot /usr/local/apache/htdocs #你原来的apache的配置
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
8、关于第三方软件
可以从官方网站上下载第三方软件进行安装,如phpmyadmin
下载后为.zip或.pkg包,zip里面包含.ins文件,在管理界面上选择Management-Update,浏览到zip或pkg包,直接点击install即可,安装好以后的工具可以在tools菜单下看到。