· 5 months ago · Apr 29, 2025, 12:50 PM
1open ssh
2ubuntu server command:
3sudo apt update && sudo apt upgrade -y
4sudo apt install openssh-server -y
5sudo systemctl start ssh
6sudo systemctl status ssh
7ip a (tas pangitaa ang ip nimo)
8
9window command:
10open cmd
11ssh username@ip
12naay option ana, type yes and then enter
13[tas input password]
14then done, pwede naka mag copy paste
15
16tas make sure imong network kay naka bridge network
17tas if wlay name ang bridge network: name: not selected
18uninstall and install ra usab ang vbox
19
20laravel:
211. sudo apt update && sudo apt upgrade -y
222. sudo apt install tasksel
233. sudo tasksel
244. sudo apt install mysql-server
255. sudo mysql_secure_installation
26 - when prompted for secure password, answer with 'N'
27 - the rest answer with 'Y'
286. sudo mysql
297. select user,authentication_string,plugin,host from mysql.user;
308. alter user 'root'@'localhost' identified with mysql_native_password by 'password';
319. flush privileges;
3210. select user,authentication_string,plugin,host from mysql.user;
3311. exit;
3412. mysql -u root -p
35exit
3613. sudo apt install php php-mysql phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
3714. sudo phpenmod mbstring
3815. sudo systemctl restart apache2
3916. sudo apt install composer nodejs npm
40sudo apt install php-sqlite3
41sudo chown $USER /var/www
4217. cd /var/www
4318. git clone https://github.com/teachasgreywolf/se2-sample-app.git
4419. cd se2-sample-app
4520. composer install
4621. npm i or npm install
4722. sudo cp .env.example .env
48sudo chown $USER:$USER .env
4923. php artisan key:generate
5024. php artisan migrate --seed
5125. npm run build
5226. 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>
6327. sudo a2dissite 000-default.conf
6428. sudo a2ensite se2-sample-app.conf
6529. sudo a2enmod rewrite
6630. sudo service apache2 restart
6731. cd ..
6831. sudo chmod -R 777 se2-sample-app