Created
May 30, 2021 16:42
-
-
Save LinuxPlaner/a7eb8f1603c3038797a93073270b905c to your computer and use it in GitHub Desktop.
I WILL DO LAMP (Linux, Apache, MySQL/MariaDB, PHP/Perl/Python) STACK ENGINEERING FROM HOME
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ping Me For LAMP related service: | |
SMS: +8801610932753 | |
IMO: +8801610932753 | |
BiP: +8801610932753 | |
Viber: +8801610932753 | |
Signal: +8801610932753 | |
Discord: supanta saha#3868 | |
Telegram: https://t.me/LinuxPlaner | |
WhatsApp: https://wa.link/njuw4c | |
Skype: https://join.skype.com/weW8UDI0u7o5 | |
Email: [email protected] | |
# Install Apache to check from web browser using 0.0.0.0 or localhost, check version, start,stop & restart Apache into Ubuntu | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install apache2 | |
sudo ufw allow in "Apache Full" | |
apache2 -v | |
sudo service apache2 start | |
sudo systemctl enable apache2 | |
sudo service apache2 stop | |
sudo service apache2 start | |
sudo service apache2 restart | |
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' | |
sudo apt install curl | |
curl http://icanhazip.com | |
sudo ufw allow ssh | |
sudo ufw allow 2222/tcp | |
# Visit: http://localhost/ | |
# Install MySQL & check version, start,stop & restart Apache | |
sudo apt install mysql-server | |
sudo mysql_secure_installation | |
mysql --version | |
sudo service mysql start | |
sudo service mysql enable | |
sudo service mysql start | |
sudo service mysql restart | |
# Create MySQL DB, User | |
sudo mysql | |
CREATE DATABASE mydb; | |
CREATE USER 'masum'@'localhost' IDENTIFIED WITH mysql_native_password BY '01722G@usia'; | |
ALTER USER 'masum'@'localhost' IDENTIFIED WITH mysql_native_password BY '01722G@usia'; | |
GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT on . TO 'masum'@'localhost' WITH GRANT OPTION; | |
use mydb; | |
FLUSH PRIVILEGES; | |
exit | |
# Install PHP & check version | |
sudo apt-get install software-properties-common | |
sudo apt install php7.2-fpm php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl | |
php --version | |
sudo apt install mlocate | |
locate php | |
whereis php | |
# Install PHPmyAdmin | |
sudo apt update | |
sudo apt install phpmyadmin | |
sudo apt install -y php-mbstring | |
sudo apt-get install gettext | |
sudo service apache2 restart | |
# visit: http://localhost/phpmyadmin/ |
Author
LinuxPlaner
commented
May 30, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment