Servername Ostechnix1.Lan Serveralias WWW - Ostechnix1.Lan Documentroot /Var/Www/Html/Ostechnix1.Lan
Servername Ostechnix1.Lan Serveralias WWW - Ostechnix1.Lan Documentroot /Var/Www/Html/Ostechnix1.Lan
Servername Ostechnix1.Lan Serveralias WWW - Ostechnix1.Lan Documentroot /Var/Www/Html/Ostechnix1.Lan
04
Apache Installation
sudo apt update
sudo apt install apache2
sudo systemctl status apache2
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload
sudo cp /etc/apache2/sites-available/000-default.conf
/etc/apache2/sites-available/site.in.conf
sudo vi /etc/apache2/sites-available/site.in.conf
ServerAdmin [email protected]
ServerName ostechnix1.lan
ServerAlias www.ostechnix1.lan
DocumentRoot /var/www/html/ostechnix1.lan/
Starting from MySQL 5.7, root login requires sudo command, therefore the root login will fail via
phpmyadmin, you may need to create another admin user account.
sudo mysql
CREATE USER '<user>'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO '<user>'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
SELECT User FROM mysql.user; <To list all users>
DROP USER '<user>'@'localhost'; <To delete user>
ALTER USER 'userName'@'localhost' IDENTIFIED BY 'New-Password-Here'; <To
change password>
exit
systemctl status mysql.service