The PemiluAPI developer website.
The steps below assume you are working on a Ubuntu machine.
-
Install Apache2
$ sudo apt-get install -y apache2
-
Enable
mod_rewrite
$ sudo a2enmod rewrite $ sudo service apache2 restart
-
Install MySQL
$ sudo apt-get install mysql-server
-
Install PHP5
$ sudo apt-get install -y php5 libapache2-mod-php5 php5-cli php5-curl php5-mcrypt php5-mysql
-
Install Git
$ sudo apt-get install -y git
-
Clone this project
$ git clone https://github.com/pemiluAPI/developer.pemiluapi.org.git
-
Go to the project directory and download Composer
$ cd developer.pemiluapi.org $ wget http://getcomposer.org/composer.phar
-
Install the framework's dependencies
$ php composer.phar install
-
Set the
public
directory as theDocumentRoot
. Modify the/etc/apache2/sites-available/default
file as followDocumentRoot /var/www/developer.pemiluapi.org/public <Directory /var/www/developer.pemiluapi.org/public> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory>
Please note that your modification need may vary depending on your Apache2 setup.
-
Restart Apache2
$ sudo service apache2 restart
-
Laravel requires one set of permissions to be configured - folders within
app/storage
require write access by the web server -
Point your web server document root to
public
directory -
I assume you will setup an virtual host, open file
bootstrap/start.php
and change 'developer.pemiluapi.local' on line 31 to your machine name -
Modify
app/config/database.php
then modify the later to match your database setup -
Run migrations and seed the database
$ php artisan migrate $ php artisan db:seed
-
I assume you will setup an virtual host, open file
bootstrap/start.php
and change 'developer.pemiluapi.local' on line 31 to your machine name -
Change
host
value inapp/config/pemiluapi.php
to match your PemiluAPI installation.