instalace mysql server a phpmyadmin ubuntu 22.04

apt update
apt install dialog
apt install phpmyadmin

– neukladat data do dbconfigu a vybrat apache2

Pokud chybi php podpora doinstalovat

sudo apt install libapache2-mod-php8.1
sudo systemctl restart apache2

apt install mysql-server

-prehlasit se jako root

sudo su –

prihlasit se na konzoli mysql server

mysql

– Vytvoreni noveho uzivatele a povolit vsechna prava

CREATE USER ‚sammy’@’localhost‘ IDENTIFIED WITH mysql_native_password BY ‚password‘;

GRANT ALL PRIVILEGES ON *.* TO ‚sammy’@’localhost‘ WITH GRANT OPTION;

FLUSH PRIVILEGES;

– stahnuti wordpresu pro maturitu a skolu ze serveru http://192.168.10.1/maturita/wordpress.tar.gz

prikaze na serveru „wget http://192.168.10.1/maturita/wordpress.tar.gz“

– rozbaleni archivu

tar xvfz wordpress.tar.gz -C /var/www/html/

chown www-data.www-data -R /var/www/htmp/wordpress

v prohlizeci napiseme http://[ip adresa]:/wordpress