- Регистрация
- 24 Окт 2019
- Сообщения
- 44
- Реакции
- 31
Bash:
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip -O phpmyadmin.zip
apt install unzip
unzip phpmyadmin.zip
rm phpmyadmin.zip
mv phpMyAdmin-*-all-languages phpmyadmin
mkdir -p /usr/share/phpmyadmin/
mv phpmyadmin /usr/share/
chown -R www-data:www-data /usr/share/phpmyadmin
Bash:
nano /etc/apache2/conf-available/phpmyadmin.conf
PHP:
# phpMyAdmin Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options SymLinksIfOwnerMatch
DirectoryIndex index.php
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/templates>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Require all denied
</Directory>
a2enconf phpmyadmin