Adminer – we save and restart the httpd server 8
Adminer (Adminer) Adminer. Adminer, Adminer, Adminer. Adminer, MariaDB, PostgreSQL, Adminer, Adminer, Adminer, Elasticsearch, MongoDB.
Adminer.
Adminer, Adminer:
1 | dnf install httpd mariadb-server php php-mysqli php-curl php-json -y |
Start the MySQL server
1 | systemctl start httpd mariadb |
1 | systemctl enable httpd mariadb |
we go to the mysql console:
1 | mysql |
We create the adminer database:
1 | CREATE DATABASE adminer; |
We create the adminer user:
1 | CREATE USER 'adminer'@'localhost' IDENTIFIED BY 'naszehaslo'; |
We give permission:
1 | GRANT ALL ON adminer.* TO 'adminer'@'localhost'; |
reload:
1 | FLUSH PRIVILEGES; |
We come out with mysql:
1 | EXIT; |
We create a download directory for the administrator, in our case it will be the directory / adminer
1 | mkdir /var/www/html/adminer |
We go to the directory and download:
1 | cd /var/www/html/adminer |
1 | wget -O index.php https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php |
We give permission:
1 | chown -R apache:apache /var/www/html/adminer/ |
1 | chmod -R 775 /var/www/html/adminer/ |
github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php
create a file:
1 | nano /etc/httpd/conf.d/adminer.conf |
content:
1 2 3 4 5 6 7 8 9 | <VirtualHost *:80> ServerAdmin admin@domena.pl DocumentRoot /var/www/html/adminer/ ServerName adminer.domena.pl DirectoryIndex index.php ErrorLog /var/log/httpd/adminer-error.log CustomLog /var/log/httpd/adminer-access.log combined </VirtualHost> |
we save and restart the httpd server:
1 | systemctl restart httpd |
we save and restart the httpd server, we save and restart the httpd server://we save and restart the httpd server
we save and restart the httpd server, we save and restart the httpd server, we save and restart the httpd server, we save and restart the httpd server.
we save and restart the httpd server, we save and restart the httpd server, we save and restart the httpd server, we save and restart the httpd server, we save and restart the httpd server.