Skip to content

magenik/perfect-world-webplatform

Repository files navigation

Build your PW Webserver Panel

Installation

Want a 10-minutes video overview?

Laravel 4.2 and Below

The Project is build under Laravel Framework through Composer

You can install Composer Global into your system by following this link

Install Composer

Next, update Composer from the Terminal: (if your composer is set properly as Global run)

composer update --dev

Next, Edit your http.config for match your public folder of this WebPlatform Pack

As i'm using Bitnami Stack on my local mine is located here :
C:\Bitnami\wampstack-5.4.36-0\apache2\conf\
Be sure that you mod_rewrite is enabled

<VirtualHost 192.168.2.10:80>
ServerAdmin root@localhost
ServerName dev.demopanel
DocumentRoot "C:/Bitnami/wampstack-5.4.36-0/frameworks/laravel/demopanel/public"
<Directory "C:/Bitnami/wampstack-5.4.36-0/frameworks/laravel/demopanel/public/">
Options +MultiViews
AllowOverride All
    <IfVersion < 2.3 >
        Order allow,deny
        Allow from all
    </IfVersion>
    <IfVersion >= 2.3>
        Require all granted
    </IfVersion>
</Directory>
</VirtualHost>

From Above it's mean Public folder will be your webstie

http://dev.demopanel

Restart your apache when this folder is created

Now Put all the project into this folder C:/Bitnami/wampstack-5.4.36-0/frameworks/laravel/demopanel/ Remember this Folder link is for demo purpose that may be different depend of your web setting

Once this operation completes, the final step is to create your database and run the sql file provide in the package .setup/demo.sql (Only if you gonna fresh install database for your server)

Begin the installation

Ok so now our database is created we have to set the project with our mysql information

1/ edit 'bootstrap\start.php'

$env = $app->detectEnvironment(array(

    'local' => array('YOURCOMPUTERNAME'),

));

2/ edit 'app\config\local\database.php' & 'app\config\database.php'

as we use Mysql on our server so we set Mysql part only edit your database info as below

        'mysql' => array(
            'driver'    => 'mysql',
            'host'      => 'localhost',
            'database'  => 'demo',
            'username'  => 'root',
            'password'  => 'root',
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
        ),

3/ then we have to generate your Laravel's key

php artisan key:generate

if it's doesnt load auto in app.php just copy past the key in it

4/ Now we are ready for import your admin account for that you have to edit file below with your informations 'app\database\seeds\AdminSeeder.php' & app\database\seeds\DatabaseSeeder.php

5/ Now we can run database seed for import your admin account as first record row

php artisan db:seed

Your Website is ready

you can now access to your website and wait for features updates from me :)