baddefense.blogg.se

Install phpmyadmin debian 10
Install phpmyadmin debian 10













Lets first delete the existing directory located there (note if you have existing configuration files from a previous install, be sure to back them up by default only an Example configuration is here) rm -rf /usr/local/lsws/conf/vhosts

install phpmyadmin debian 10

Now ideally we’d want our configuration files to all be in /var/www//confįor some silly reason OpenLiteSpeed wont allow that so we have to do a bit of a Linux trick to get make it think we are actually under its directory of /usr/local/lsws/conf/vhosts Un-comment the line: "origin=Debian,codename=$ Now edit the following file: sudo nano /etc/apt//50unattended-upgrades Sudo apt-get install unattended-upgrades apt-listchanges

install phpmyadmin debian 10

MariaDB > GRANT ALL PRIVILEGES ON 'database_name'.The preparation step is to install unattended upgrades as an un-patched web-server is a really bad thing sudo apt-get update & sudo apt-get upgrade MariaDB > GRANT ALL PRIVILEGES ON *.* TO WITH GRANT OPTION MariaDB > CREATE USER IDENTIFIED BY 'password' Type '\c' to clear the current input statement. Server version: 10.3.23-MariaDB-0+deb10u1 Debian 10Ĭopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. # Disallow web access to directories that don't need it Php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/ĪuthUserFile /etc/phpmyadmin/tup Php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp Sudo nano /etc/apache2/conf-enabled/nf Alias /phpmyadmin /usr/share/phpmyadmin $cfg = '/var/lib/phpmyadmin/tmp' # congig apache Generate phpMyAdmin blowfish secret phrase $cfg = 'H2OxcGXxflSd8JwrwVlh6KW6s2rER63i' Sudo mkdir /etc/phpmyadmin/ sudo chown -R /usr/share/phpmyadmin/ # add secrety phrase Restore configuration file sudo mv /usr/share/phpmyadmin/įresh installation sudo mv phpMyAdmin-*/ /usr/share/phpmyadmin sudo mkdir -p /var/lib/phpmyadmin/tmp Move new files sudo mv phpMyAdmin-*/ /usr/share/phpmyadmin

install phpmyadmin debian 10 install phpmyadmin debian 10

Remove existing installation sudo rm -R /usr/share/phpmyadmin Save existing configuration file cp /usr/share/phpmyadmin/. Rule #2 extends #1: If you do not have a VERY GOOD REASON to use PHP 8.1, stay with the current versionĭownload “the latest, the greatest” release from official website, and “unzip” it on the local drive. Number of “Deprecated” messages from twig/twig package just killed the system, and Composer failed to update outdated packages. I’ve had version phpMyAdmin 5.0.2 since 2020 without any problem (PHP 7.+, 8.0) until I decided to look at PHP 8.1. Rule #1: “Do not fix, if it’s not broken”















Install phpmyadmin debian 10