Skip to content

Instantly share code, notes, and snippets.

@robertzibert
Last active June 13, 2019 06:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertzibert/f8e2ecc6c10c6565b4c3b426079db46c to your computer and use it in GitHub Desktop.
Save robertzibert/f8e2ecc6c10c6565b4c3b426079db46c to your computer and use it in GitHub Desktop.
Ubuntu Laravel and Lumen Installation
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomKey!!!
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=memcached
QUEUE_DRIVER=sync
<VirtualHost *:80>
DocumentRoot "/var/www/html/alertCenter/public"
ServerName localhost
<Directory "/var/www/html/alertCenter/public">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
</Directory>
# Root privileges
sudo su
#!/usr/bin/env bash
# Update the box
# --------------
# Downloads the package lists from the repositories
# and "updates" them to get information on the newest
# versions of packages and their dependencies
apt-get update
# Install Vim
# Git-core
# Apache 2
# python-props
# curl
# libapache2-mod-php5
apt-get install -y vim python-software-properties curl apache2 git-core libapache2-mod-php5
#Installing PHP 5.6
add-apt-repository ppa:ondrej/php5-5.6
apt-get update
apt-get install php5
# Should return php5.6
php -v
# Installing php libraries
apt-get install -y php5-cli php5-mysql php5-curl php5-mcrypt php5-soap php5-soap php5-pgsql
# Install MySQL quietly
apt-get -y install mysql-server-5.6
# Install Composer
curl -s https://getcomposer.org/installer | php
# Make Composer available globally
mv composer.phar /usr/local/bin/composer
#Should return a command list
composer
# Enabling rewrite
a2enmod rewrite
# Enabling webpage
vim /etc/apache2/sites-enabled/000-default.conf
# Write the same content of 000-default.conf
apache2 restart
# Installing proyect
cd /var/www/html
# password: gestion123
git clone https://robertzibert@bitbucket.org/uaicloudlab/alertcentral.git
# Install project
cd /var/www/html/alertcentral
composer install
#copy and paste everything in .env file
vim .env
# Si todo está ok deberían visitiar la ip de la máquina y se debería generar un ticket.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment