-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
You will need to use git to download the application.
Here's the process outlined:
git clone git://github.com/badsyntax/kohana3-examples.git kohana3-project cd kohana3-project git submodule update --init mkdir application/cache && mkdir application/logs && mkdir media/cache && mkdir -p media/assets/resized sudo chmod -R 777 application/cache application/logs media/cache media/assets/resized
It might take some time to download the data from the different submodules. Once the files have been checked out, you'll need to:
- Create the database, the SQL can be found in 'application/sql'
- Update config/database.php with your database details
- Use the example.htaccess OR 'application/apache/live.vhost.ubuntu.conf' for the Apache config
- Restart the webserver and you're good to go
IMPORTANT - you must ensure the project is in 'development' mode for install, this will allow you to view errors. If you are hit with a 'white screen of death' then project is probably in production mode (and might not be logging these errors!). You can change the production mode in the apache vhost or in bootstrap.php.
Add the admin repo as a submodule and update the admin submodules:
git submodule add git://github.com/badsyntax/kohana3-admin.git modules/admin cd modules/admin git submodule update --init cd media/js/jquery-tree && git pull origin master cd ../jquery-ui && git pull origin master cd ../tinymce && git pull origin master cd ../../ git submodule add git://github.com/badsyntax/kohana-imagemagick-driver.git modules/imagemagick-driver
- Enable the admin module in bootstrap.php
- The admin module needs to be loaded before the base module!
- Ensure you have the imagemagick libraries installed on your server
- Enable the imagemagick-driver module in bootstrap.php
It might take some time to download these repos, once they have finished downloading you'll need to build the scripts. Both jQuery UI and TinyMCE use Apache Ant to build the libraries. If you have ant installed, you simply navigation to the build folder and type 'ant'.
Build folders:
- media/js/jquery-ui/build
- media/js/tinymce
The default user details are:
- username: admin
- password: password
Once logged in, navigate to admin/migrations/save_config to setup the config.
If you have any problems getting the project running, please post an issue in the issue tracker.