Guest User

Untitled

a guest
Jul 23rd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. sudo add-apt-repository ppa:ondrej/php -y
  2. sudo apt-get update -y
  3. sudo apt-get install php7.2 php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
  4. sudo apt-get install libapache2-mod-php7.2 -y
  5.  
  6. sudo a2dismod php5
  7. sudo a2enmod php7.2
  8. sudo service apache2 restart
  9.  
  10. sudo composer self-update
  11.  
  12. composer global require "laravel/installer"
  13.  
  14. echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
  15.  
  16. source ~/.bashrc
  17.  
  18. # phpMyAdmin install
  19. phpmyadmin-ctl install #Login with the url/phpmyadmin, your c9 user and empty password
  20.  
  21. # Create project
  22.  
  23. laravel new project
  24.  
  25. # As Lavarel is serving its content from the public directory we need to modify the apache config using nano (a text editor):
  26.  
  27. # sudo nano /etc/apache2/sites-enabled/001-cloud9.conf
  28. # Then do the following:
  29.  
  30. # Change this line
  31. # DocumentRoot /home/ubuntu/workspace
  32.  
  33. # To following
  34. # DocumentRoot /home/ubuntu/workspace/yourproject/public
  35.  
  36. # Edit the Laravel environment configuration file β€œ.env” (in the root directory) and add the database settings
  37.  
  38. # DB_HOST=localhost
  39. # DB_DATABASE=c9
  40. # DB_USERNAME=USERNAME
  41. # DB_PASSWORD=
  42.  
  43. # Update node
  44. nvm i v8
  45.  
  46. # Set as default
  47. nvm alias default 8.11.3
  48.  
  49. # change directory
  50. cd project
  51.  
  52. # Install node dependencies
  53. npm install
  54.  
  55. # You should put these lines for make a migration
  56. # path: app/Providers/AppServiceProvider.php
  57.  
  58. # use Illuminate\Support\Facades\Schema;
  59.  
  60. # inside of boot() function
  61. # Schema::defaultStringLength(191);
  62.  
  63. # make migration
  64. # php artisan migrate
Add Comment
Please, Sign In to add comment