-
Notifications
You must be signed in to change notification settings - Fork 0
Installing
#Linux Install
I assume that you have a full LAMP installation. If not, simply run
sudo apt-get install php5 mysql-server apache2
The Alphasquare Linux Instance Installer is very easy to use, and will install everything in a series of simple steps.
First, wget the Installer:
git clone https://github.com/Alphasquare/Alphasquare.git
Second, acquire a copy of the SQL dump. It is located in the SQL folder.
Third, make the script in the root, called installer.sh, executable. Run it right after WITH sudo. Do not forget that.
sudo 'installer.sh'
Finally, input the data required by the wizard. Congratulations, you have a fully working Alphasquare instance!
Note: if you do not have the permissions to modify files in the directory created, simply follow the steps mentioned in http://askubuntu.com/questions/46331/how-to-avoid-using-sudo-when-working-in-var-www thread.
For the purposes of this guide, I will assume you're running apache and MySQL.
You can start off by moving to your web server's default directory:
cd /var/www
Now, clone the Alphasquare source into the current working directory (this method will install it so it is accessable like http://localhost/alphasquare
):
git clone https://[email protected]/alphasquare/alphasquare.git
Next, you need to prepare your database for Alphasquare's information. Start off by downloading the Alphasquare source and opening a MySQL console.
mysql -u {username}
Enter the following into the MySQL console to create the alphasquare
database.
mysql> create database alphasquare;
mysql> exit
Then load the dump into our fresh database.
mysql -u {username} alphasquare < ./alphasquare.sql
Your next step will be to tell Alphasquare some information about your database server. Change directories into your alphasquare
folder:
cd ./alphasquare
Fire up your favorite text editor (nano
in this case) and edit ``./application/config/database.php.sm`. You'll need to change the following fields:
$db['default']['username'] = '{account}';
$db['default']['password'] = '{password}';
Then, after this, rename the file into a php extension from the sm. Same with config.php.sm.
At this point, fire up http://localhost/alphasquare in your browser. Hopefully you should see no errors! Create yourself an account to use as an admin.
Log in to your MySQL shell again and issue the following command to set your account as an admin:
use alphasquare;
update users set employee=1 where username="{username}";
That's it! Congratulations, you've successfully installed a development copy of Alphasquare!