Skip to content

pemiluAPI/developer.pemiluapi.org

Repository files navigation

developer.pemiluapi.org

The PemiluAPI developer website.

Installation

The steps below assume you are working on a Ubuntu machine.

Apache2, MySQL and PHP5

  1. Install Apache2

    $ sudo apt-get install -y apache2
  2. Enable mod_rewrite

    $ sudo a2enmod rewrite
    $ sudo service apache2 restart
  3. Install MySQL

    $ sudo apt-get install mysql-server
  4. Install PHP5

    $ sudo apt-get install -y php5 libapache2-mod-php5 php5-cli php5-curl php5-mcrypt php5-mysql

Application

  1. Install Git

    $ sudo apt-get install -y git
  2. Clone this project

    $ git clone https://github.com/pemiluAPI/developer.pemiluapi.org.git
  3. Go to the project directory and download Composer

    $ cd developer.pemiluapi.org
    $ wget http://getcomposer.org/composer.phar
  4. Install the framework's dependencies

    $ php composer.phar install
  5. Set the public directory as the DocumentRoot. Modify the /etc/apache2/sites-available/default file as follow

    DocumentRoot /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.

  1. Restart Apache2

    $ sudo service apache2 restart
  2. Laravel requires one set of permissions to be configured - folders within app/storage require write access by the web server

  3. Point your web server document root to public directory

  4. 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

  5. Modify app/config/database.php then modify the later to match your database setup

  6. Run migrations and seed the database

    $ php artisan migrate
    $ php artisan db:seed
  7. 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

  8. Change host value in app/config/pemiluapi.php to match your PemiluAPI installation.

About

The PemiluAPI developer website.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages