Skip to content

Script aimed to upgrade environments of Cloud9 instances (php 7.2, mysql 5.7, ...) and install Laravel

Notifications You must be signed in to change notification settings

fla91fr/laravel-c9-php-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Script used to upgrade environment of Cloud9 instances or other linux based environments

The following actions are made :

  • Installs php 7.2.x (+ main modules)
  • Installs mysql 5.7.x
  • Installs Laravel 5.7.x
  • Installs Composer (up to latest version)
  • Adds Authentication to Laravel
  • Creates the default user homestead and default db homestead
  • Executes Laravel Migration
  • Changes .htaccess file to modify DocumentRoot of laravel project (to ./public)
  • Downloads adminer.php and put it in public directory (public/adminer.php --> should be deleted in production)

To install everything in just one command line :

wget -O - https://raw.githubusercontent.com/fla91fr/laravel-installer/master/laravel_c9_php_mysql.sh |bash

Otherwise, for security reasons, you can download and then execute the installation script :

wget -O laravel_c9_php_mysql.sh https://raw.githubusercontent.com/fla91fr/laravel-installer/master/laravel_c9_php_mysql.sh
chmod +x laravel_c9_php_mysql.sh
./laravel_c9_php_mysql.sh 

Environment is now ready to be used, and Laravel is usable.

To upgrade only Php/Mysql :

wget -O c9_php_mysql.sh  https://raw.githubusercontent.com/fla91fr/laravel-installer/master/c9_php_mysql.sh 
chmod +x c9_php_mysql.sh 
./c9_php_mysql.sh 

To update AWS Cloud9 Instance (php 7.2 modules + composer installation) :

wget -O aws-composer-php7.2-modules.sh https://raw.githubusercontent.com/fla91fr/laravel-installer/master/aws-composer-php7.2-modules.sh chmod +x aws-composer-php7.2-modules.sh ./aws-composer-php7.2-modules.sh

About

Script aimed to upgrade environments of Cloud9 instances (php 7.2, mysql 5.7, ...) and install Laravel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages