Workshop:2012/04/12

From SOWNWiki
Jump to: navigation, search

Workshop (to be) held on 2012/04/12 at 17:30 in Access Grid Room

Previous workshop: 29 March 2012 17:30:00 Next workshop: 19 April 2012 17:30:00


Task List

  • Work on package management system

Kohana Continued

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


More changes

chown -r username:www-data application
chown -r username:www-data package

In config/backfire/core.php there are some hard coded paths:

  • authorized_keys
  • config_URL

Update as necessary.

State

In a browser go to /~username/package/config/backfire/sown_openwrt_core/1/credentials and it should now return some information about a node.

Facts about "2012/04/12"
Has date12 April 2012 17:30:00 +
Has end date12 April 2012 20:00:00 +
Has location32/3073 +