Advertisement
WriterofDestiny

laravel 1

Apr 29th, 2025
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.19 KB | None | 0 0
  1. open ssh
  2. ubuntu server command:
  3. sudo apt update && sudo apt upgrade -y
  4. sudo apt install openssh-server -y
  5. sudo systemctl start ssh
  6. sudo systemctl status ssh
  7. ip a (tas pangitaa ang ip nimo)
  8.  
  9. window command:
  10. open cmd
  11. ssh username@ip
  12. naay option ana, type yes and then enter
  13. [tas input password]
  14. then done, pwede naka mag copy paste
  15.  
  16. tas make sure imong network kay naka bridge network
  17. tas if wlay name ang bridge network: name: not selected
  18. uninstall and install ra usab ang vbox
  19.  
  20. laravel:
  21. 1. sudo apt update && sudo apt upgrade -y
  22. 2. sudo apt install tasksel
  23. 3. sudo tasksel
  24. 4. sudo apt install mysql-server
  25. 5. sudo mysql_secure_installation
  26.         - when prompted for secure password, answer with 'N'
  27.         - the rest answer with 'Y'
  28. 6. sudo mysql
  29. 7. select user,authentication_string,plugin,host from mysql.user;
  30. 8. alter user 'root'@'localhost' identified with mysql_native_password by 'password';
  31. 9. flush privileges;
  32. 10. select user,authentication_string,plugin,host from mysql.user;
  33. 11. exit;
  34. 12. mysql -u root -p
  35. exit
  36. 13. sudo apt install php php-mysql phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
  37. 14. sudo phpenmod mbstring
  38. 15. sudo systemctl restart apache2
  39. 16. sudo apt install composer nodejs npm
  40. sudo apt install php-sqlite3
  41. sudo chown $USER /var/www
  42. 17. cd /var/www
  43. 18. git clone https://github.com/teachasgreywolf/se2-sample-app.git
  44. 19. cd se2-sample-app
  45. 20. composer install
  46. 21. npm i or npm install
  47. 22. sudo cp .env.example .env
  48. sudo chown $USER:$USER .env
  49. 23. php artisan key:generate
  50. 24. php artisan migrate --seed
  51. 25. npm run build
  52. 26. sudo nano /etc/apache2/sites-available/se2-sample-app.conf
  53.     <VirtualHost *:80>
  54.         ServerName [server ip]
  55.         ServerAdmin navarezphilip@gmail.com
  56.         DocumentRoot /var/www/se2-sample-app/public
  57.         <Directory /var/www/se2-sample-app>
  58.             AllowOverride All
  59.         </Directory>
  60.         ErrorLog ${APACHE_LOG_DIR}/error.log
  61.         CustomLog ${APACHE_LOG_DIR}/access.log combined
  62.     </VirtualHost>
  63. 27. sudo a2dissite 000-default.conf
  64. 28. sudo a2ensite se2-sample-app.conf
  65. 29. sudo a2enmod rewrite
  66. 30. sudo service apache2 restart
  67. 31. cd ..
  68. 31. sudo chmod -R 777 se2-sample-app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement