mysql>create database bugs;
mysql>GRANT SELECT, INSERT,UPDATE, DELETE, INDEX, ALTER,CREATE,LOCK TABLES,
CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'bugs';
mysql>FLUSH PRIVILEGES;
mysql>quit
将Bugzilla项目文件放到对应目录,假设为/var/www/bugzilla
cd bugzilla
./checksetup.pl
<VirtualHost *(所对应IP地址):8086>
DocumentRoot /var/www/bugzilla/
<Directory "/var/www/bugzilla">
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
5.增加简单的ssl支持(这里使用bugzilla并且用8806端口做测试)
ssl : http://www.openssl.org/source/ mod_ssl: http://www.modssl.org/contrib/ftp/source/
5.1.生成所需文件:
cd /etc/httpd/conf
mkdir ssl
cd ssl
创建一个 RSA 私用密钥 openssl genrsa -out server.key 1024
用 server.key 生成证书签署请求 CSR openssl req -new -key server.key -out server.csr
生成证书CRT文件 openssl x509 -days 365 -req -in server.csr -signkey server.key -out server.crt
5.2.修改httpd.conf
<VirtualHost *(所对应IP地址)
:8086>
DocumentRoot /var/www/bugzilla/
SSLEngine On
SSLCertificateFile conf/ssl/server.crt
SSLCertificateKeyFile conf/ssl/server.key
<Directory "/var/www/bugzilla/">
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
</VirtualHost>
并增加监听端口8086 Listen 8086
这样就需要使用https://xxx.xxx.xxx.xxx:8086/并接受证书访问,而使用http://xxx.xxx.xxx.xxx:8086/不可访问
联系客服