There are a few things we will need right off the bat:
PHP5:
sudo apt-get install php5 php5-xmlrpc php5-curl
Apache2: sudo apt-get install apache2 libapache2-mod-php5
Sqlite: sudo apt-get install php5-sqlite
In the
/var/www
folder, download and extract the "flat" package from Baikal's website:sudo wget http://baikal-server.com/get/baikal-flat-0.2.7.zip
sudo unzip baikal-flat-0.2.7.zip
sudo mv baikal-flat/ baikal/
sudo chown -R www-data:www-data baikal/
sudo chmod 755 baikal
cd baikal/
sudo chmod 755 Specific/
sudo chmod 755 Specific/db
sudo chmod 755 Specific/db/db.sqlite
sudo touch Specific/ENABLE_INSTALL
Once that's done, load up your Pi's IP address, http://192.168.0.xx/baikal/admin/install, and follow the Baikal install. Refer to this post from the Initialization Wizard steps onward if things get confusing.
You misspelled sqlite. Should correct to:
ReplyDeleteapt-get install sqlite
Thanks for spotting the typo! Updated the post with your correction.
DeleteI tried access the url of my pi through a browser using the ip address ending with "/baikal/admin/install" but it keeps giving me the error "Baikal Fatal Error: Both PDO::sqlite and PDO::mysql are unavailable. One of them at least is required by Baikal." Am I doing something wrong?
ReplyDeleteBe sure that you have installed sqlite as above to your Pi. It looks like there is no database accessible to Baikal.
DeleteThe other possibility is that you might have missed one of the chown or chmod steps above, which means that Baikal can't read/write to the database either.
I think I spotted the Problem: You didn't install the PHP-Module for SQLite (maybe this should be added in this post). Try "sudo apt-get install php5-sqlite" to fix this. Then restart apache.
ReplyDeleteThanks for commenting, the post is now updated. Cheers!
Delete