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