Reh5+mysql+apache+php+mantis
环境:
InstantMantis-1.1.1.zip
apache2.2.28
mysql和php是系统安装时用的rpm包
安装配置:
#tar zxvf httpd-2.2.8.tar.gz
# cd httpd-2.2.8
#./configure
#make
#make install
为apache配置php
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
LoadModule php5_module modules/libphp5.so
DirectoryIndex index.html index.php index.php3 index.html.var
为apache安装mantis目录
Alias /mantis "/usr/local/apache/htdocs/InstantMantis-1.1.1/root/mantis"
order deny,allow
Deny from all
Allow from 192.168.1.223
mantis配置
vi /usr/local/apache/htdocs/InstantMantis-1.1.1/root/mantis/config_inc.php
添加并修改以下内容:
putenv("TZ=/Asia/Shanghai"); 如果putenv无效,在/etc/php.ini中设置date.timezone =PRC
$g_db_type='mysql';
$g_database_name='mantis';
$g_db_username='root';
$g_db_password='admin123'?>
service mysqld restart
/usr/local/apache/bin/apachectl restart
址栏输入
安装配置mantis库,然后
应该可以看到初始页面了。用amdinistrator/root登录,mantis 开始为你工作。
阅读(1863) | 评论(0) | 转发(0) |