ubuntu安装itdb

ubuntu安装itdb

1、安装itdb需求的环境
sudo apt-get install apache2 libapache2-mod-php5 php5-sqlite sqlite3

2、下载itdb
wget http://www.sivann.gr/software/itdb/itdb-1.7.tar.gz

3、解压并将目录移动到/var/www
tar -xvf itdb-1.1.tar.gz
sudo mv itdb /var/www

4、重命名pure.db为itdb.db
cd /var/www/itdb/data
sudo mv pure.db itdb.db

5、修改apache配置
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/itdb
sudo nano /etc/apache2/sites-available/itdb
修改DocumentRoot /var/www 为 DocumentRoot /var/www/itdb
修改
修改Error /var/log/apache2/error.log 为 Error /var/log/apache2/error-itdb.log
修改CustomLog /var/log/apache2/access.log combined 为 CustomLog /var/log/apache2/access-itdb.log combined
sudo a2dissite default && sudo a2ensite itdb
sudo /etc/init.d/apache2 restart

6、修改itdb.db目录data/和目录data/files/的读写权限
cd /var/www
sudo chown www-data itdb
sudo chmod u+w itdb
sudo chown www-data /var/www/itdb/data/
sudo chmod u+w /var/www/itdb/data/
sudo chown www-data /var/www/itdb/data/files/
sudo chmod u+w /var/www/itdb/data/files/
cd /var/www/itdb/data
sudo chown www-data itdb.db
sudo chmod u+w itdb.db

Leave a Comment

You must be logged in to post a comment.