Skip to content

Installation: Aisel

mappedinn edited this page Oct 29, 2016 · 30 revisions

Add needed hosts for your hosts file

echo "127.0.0.1 aisel.dev" | sudo tee -a /etc/hosts
echo "127.0.0.1 admin.aisel.dev" | sudo tee -a /etc/hosts
echo "127.0.0.1 api.aisel.dev" | sudo tee -a /etc/hosts

and check with following

cat /etc/hosts

Next step is to add needed virtual hosts to apache hosts file, type

sudo nano /etc/apache2/sites-available/000-default.conf

and put following settings for frontend,backend and API. Aisel's backend,frontend & API are independent, it makes code and project more flexible and scalable which is the best strategy for huge applications.

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/var/www/Aisel/frontend/web/"
      ServerName aisel.dev
      <Directory /var/www/Aisel/frontend/web/>
                Options Indexes FollowSymLinks Includes ExecCGI
                AllowOverride All
                Order allow,deny
                Allow from all
      </Directory>
    ErrorLog /var/www/Aisel/aisel.error.log
    CustomLog /var/www/Aisel/aisel.access.log combined
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/var/www/Aisel/backend/web/"
        ServerName admin.aisel.dev
        <Directory /var/www/Aisel/backend/web/>
                Options Indexes FollowSymLinks Includes ExecCGI
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/var/www/Aisel/web/"
        ServerName api.aisel.dev
        <Directory /var/www/Aisel/web/>
                Options Indexes FollowSymLinks Includes ExecCGI
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

Give permissions to "/var/www/" with

chmod 777 /var/www/

Move to "/var/www/" with

cd /var/www/

and clone repo with git clone

git clone [email protected]:ivanproskuryakov/Aisel.git

In case if you would have problem with accessing gitgub, follow this manual it is easy: https://help.github.com/articles/generating-ssh-keys/#platform-linux

cd to Aisel and run "composer install"

cd Aisel
composer install

Finish installation with

php app/console aisel:install

Do not forget to give permissions to following directories

sudo chmod -R 777 app/cache/
sudo chmod -R 777 app/var/
sudo chmod -R 777 app/logs/
sudo chmod -R 777 web/media/

Once installation is done you may check that application is working by accessing following hosts: Frontend

Backend

API

  • URL: http://api.aisel.dev/ you will see that the error: "No route found for "GET /"" there is nothing wrong with this, API doesn't have a route for "/"
Clone this wiki locally