Step 1☆ 執行安裝命令
yum install httpd mysql mysql-server php php-*
Step 2☆ 下载解压软件包
wget http://www.sivann.gr/software/itdb/itdb-1.12.tar.gz
tar -zxvf itdb-1.12.tar.gz
mv itdb /var/www/html/
Step 3☆ 修改目录权限
cd data/
cp pure.db itdb.db
chown apache itdb.db
chmod u+w itdb.db
chown apache /var/www/html/itdb/data
chmod u+w /var/www/html/itdb/data/
chown apache /var/www/html/itdb/data/files/
chmod u+w /var/www/html/itdb/data/files/
chown apache /var/www/html/itdb/translations
chmod u+w /var/www/html/itdb/translations
Step 4☆ 重新启动HTTP服务
service httpd restart
Step 5☆ 浏览测试
http://ip/itdb
[root@System itdb]# cat /etc/httpd/conf.d/itdb.conf
alias /itdb "/home/data/itdb"
<Directory "/home/data/itdb">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
转载于:https://blog.51cto.com/fshuanglan/1380795