install lamp on ubuntu 22.04
sudo apt update

sudo apt install apache2
sudo ufw app list
sudo ufw allow "Apache Full"

sudo apt install mysql-server
sudo mysql

CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY 'YOUTPASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost';
flush privileges;

sudo apt install php libapache2-mod-php php-mysql php-curl php-zip php-gd php-mbstring php-xml
or
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php7.4-curl php7.4-zip php7.4-gd php7.4-mbstring php7.4-xml
if error
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
How to install LAMP in Ubuntu 18.04?
sudo apt-get update -y
 
sudo apt install apache2 // install apache 2
 
sudo ufw app list // adjust your firewall settings to allow HTTP traffic
 
sudo ufw allow in "Apache"
 
sudo ufw status // check status
 
sudo apt install mysql-server // install mysql database
 
sudo mysql_secure_installation // set user and password
 
sudo mysql // enter into database to verify
 
exit // exit from database
 
sudo apt install php libapache2-mod-php php-mysql // install latest php and php-ext
 
php -v // verify php version

Shell/Bash相关代码片段

npm not working

shell parameter expansion

shell string manipulation

shell manipulation

download skype deb

fish shell batch process file

lualatex install

git get folder from one repo to another

create virtual hosts in rocky linux

ubuntu docker image

dotnet remove package from cache

brew cdk not found

STEAM LINUX APEX NOT WORKING

unrar password protected rar file

alias pip to pip3

zsh compinit

linux check docker daemon running

git how to uncommit a commit --amend

remove containers with images and volumns

tauri cargo

can you upgrade the ram in msi p65 creator

ubuntu ssh add private keys

ssh-copy-id proxy jump

postgresql shell

powershell allow port 27017 udp tcp

ufw allow from interface

mac compress folder

shell escape

bash scripting cheat sheet

how to install prisma

uploadthing install

docker pull stuck on waiting

golang nodemon

powershell alias for git

winetricks.sh

gnome software not showing nvidia

sed remove lines between matches

cannot install dotenv python

Download ProtonVPN Fedora

give file execute permission mac

git diff show only changed lines

WINE keyrings setup

install opencv runtime only on linux ubutnu

Wine PGP key setup

smartctl fedora install

linux reload sysctl.conf

npm install formidable

docker build print logs

kill connection using process id

connections to port netstat command windows

linux adapter command

see existing users linux

resolv.conf search

nativefier ubuntu

ubuntu dart sdk path flutter

kubernetes ssh into pod

pass variable from one script to another bash

rm nvidia driver linux ubuntu

ngrok for ubuntu

where are pip packages installed

git authen failed

bun list global packages

ubuntu os update login black screen

adb packages path

windows command create file

swithc pphh versoij ubuntu

apache2 installation missing files

uninstall simple screen recorder

insteall .deb

cpptraj rmsd each traj

kill all dockers

upgrade to rustc 1.70.0

ubuntu search process by pid

Shell/cURL POST request example

grep word not line

how to uninstall nvm itself ubuntu

parameterized function in shell script

windows 10 symbolic link folde

zustand redux

open terminal in any folder in finder