How to Install Polr on Ubuntu 16.04 01-14-2019, 04:02 PM
#1
The installation is quite confusing since you have to install it via Github AND composer. I have never used this before and after installing it, I would recommend using something else. Creating a URL shortening service/website is SUPER EASY. I will write a tutorial on it soon after this, maybe today. This website is also built using Laravel (you can tell by the directory structure and artisan).
Installation via UNIX (Ubuntu xenial)
1. Move into the web root directory
2. Download via Github
3. Move into directory
4. Install composer deps
5. Use the composer file
6. Rename the .env.setup file
7. Serve via artisan
8. Visit, http://localhost:8000/
Installation via UNIX (Ubuntu xenial)
Code:
(xenial)sunjester@localhost:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
1. Move into the web root directory
Code:
(xenial)sunjester@localhost:~$ cd /var/www/html/
2. Download via Github
Code:
(xenial)root@localhost:/var/www/html/polr# git clone https://github.com/cydrobolt/polr.git --depth=1
3. Move into directory
Code:
(xenial)root@localhost:/var/www/html# cd polr/
4. Install composer deps
Code:
curl -sS https://getcomposer.org/installer | php
5. Use the composer file
Code:
php composer.phar install --no-dev -o
6. Rename the .env.setup file
Code:
(xenial)root@localhost:/var/www/html/polr# mv .env.setup .env
7. Serve via artisan
Code:
(xenial)root@localhost:/var/www/html/polr# php artisan serve
8. Visit, http://localhost:8000/
![[Image: nxDKFsj.png]](https://i.imgur.com/nxDKFsj.png)