2 Installing database for irreco backend configurations.
3 Current instructions aply on Ubuntu 7.04
11 Installing Apache2, MySQL, PHP5 and Pear.
14 sudo apt-get install apache2 php5 php-pear php5-mysql mysql-server
19 sudo apt-get install php5-curl
22 Install Pear packages.
24 sudo pear install MDB2 XML_RPC2 Log
27 Install more Pear packages.
29 sudo pear install MDB2#Mysqli
31 Checkout Irreco Webdb to /var/www
33 sudo mkdir /var/www/irreco
34 sudo chown USER:GROUP /var/www/irreco
36 ln -s /scratchbox/users/USER/home/USER/git/irreco/database/php/ webdb
38 Create database with a script at database -folder.
40 ./create-irreco-database.sh --create-db
43 Create database user with a script at database -folder.
45 ./create-irreco-database.sh --set-perms
48 Create webdb.log -file.
50 sudo touch /var/www/irreco/webdb/webdb.log
53 Grant file permissions for log file, so that Apache and PHP can write to it.
55 sudo chmod 666 /var/www/irreco/webdb/webdb.log
60 sudo /etc/init.d/apache2 restart
64 Open at browser http://127.0.0.1/irreco/webdb/
65 Should provide you a view of Available XMLRPC methods for this server
68 Configure dns server, if it does not work
70 nano /targets/DIABLO_X86/etc/resolv.conf
72 Add new row to resolv.conf (your real dns server) look /etc/resolv.conf outside of the scratcbox
74 nameserver xxx.xxx.xxx.xxx
76 Do same for /targets/CHINOOK_ARMEL/etc/resolv.conf