markdown LAMP和PHPMyAdmin在Ubuntu 18.04

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown LAMP和PHPMyAdmin在Ubuntu 18.04相关的知识,希望对你有一定的参考价值。

``` sh
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 apt install mariadb-server mariadb-client
sudo systemctl status mysql
sudo mysql_secure_installation
set root password? [Y/n]: y
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
sudo apt install php php-common php-mysql php-gd php-cli
echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/info.php
sudo apt install phpmyadmin
sudo systemctl restart apache2
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf 
sudo a2enconf phpmyadmin
sudo systemctl restart apache2
sudo mysql -u root -p
```

******************************************************************************************
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'Contraseña';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Exit;


https://www.solvetic.com/tutoriales/article/5609-como-instalar-lamp-phpmyadmin-en-ubuntu-18-04/

以上是关于markdown LAMP和PHPMyAdmin在Ubuntu 18.04的主要内容,如果未能解决你的问题,请参考以下文章

LAMP实例——在Centos6中部署Discuz!wordpress和phpMyAdmin

忘记了使用 Lamp Fedora 的 phpMyAdmin 的用户名和密码

基于lamp+fastcgi+https搭建phpMyAdmin和wordpress

Ubuntu14.04麒麟版lamp安装+phpmyadmin

利用docker-compose搭建LAMP+phpmyadmin环境

lamp +discuz+wordpress+phpmyadmin实例安装详解