Skip to content

Instantly share code, notes, and snippets.

@csrgxtu
Last active April 8, 2018 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save csrgxtu/4fc2e45aeb6e1486add834761de6c43c to your computer and use it in GitHub Desktop.
Save csrgxtu/4fc2e45aeb6e1486add834761de6c43c to your computer and use it in GitHub Desktop.

How to install itdb in ubuntu?

first, install apache2+

sudo apt-get update
sudo apt-get install apache2

second, install php and related modules

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo apt-get install php5-gd php5-json php5-sqlite
sudo apt-get install sqlite3 libsqlite3-dev

third, download the itdb package and put it into apache root

wget https://github.com/sivann/itdb/archive/1.23.zip
unzip 1.23.zip
sudo mv itdb-1.23 /var/www

fourth, change permissions of itdb-1.23

sudo cp pure.db itdb.db
sudo chown www-data itdb.db
sudo chmod u+w itdb.db
sudo chown www-data /var/www/itdb-1.23/data
sudo chmod u+w /var/www/itdb-1.23/data/
sudo chown www-data /var/www/itdb-1.23/data/files/
sudo chmod u+w /var/www/itdb-1.23/data/files/
sudo chown -R www-data /var/www/itdb-1.23/translations
sudo chmod u+w /var/www/itdb-1.23/translations

fifth, change the apache configs and restart

# /etc/apache2/sites-available/000-default.conf

DocumentRoot /var/www/itdb-1.23

sudo services apache2 restart

sixth, login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment