- Work on package management system
At the end of the last set of notes loading the "package/config/backfire/sown_openwrt_core/1/credentials" page would result in the following error:
Could not find driver
This is due to pdo (part of php 5) not having the mysql driver enabled. This can be checked for by creating a phpinfo(); page and looking the PDO section to see if any drivers are enabled.
To install PDO_mysql do the following (and mysql-server while we are at it):
apt-get install php5-mysql mysql-server libmysqlclient15-dev apache2ctl restart
You can then check your phpinfo(); again to see if you now have support.
Getting the database working
Create a database called sown_data, create a user and grant privileges.
Import the database from sql/sown_data.sql
chown -r username:www-data application chown -r username:www-data package
In config/backfire/core.php there are some hard coded paths:
Update as necessary.
In a browser go to /~username/package/config/backfire/sown_openwrt_core/1/credentials and it should now return some information about a node.