To create it automatically, run the following command: cat ~/phpmyadmin/current/ We recommend using a basic default configuration. To restrict access with basic auth, first create a user like so: $ htpasswd -c ~/phpmyadmin/.htpasswd USERNAMEĪnd then create ~/phpmyadmin/current/.htaccess: AuthType BasicĪuthUserFile /home/www-data/phpmyadmin/.htpasswd To restrict access by static IP addresses, create ~/phpmyadmin/current/.htaccess: Require ip 122.122.122.122 Using a “.htaccess” file, the access to the newly created phpMyAdmin instance can be restricted. If you would like to use your own, or a purchased SSL certificate for the site, please contact us for purchase and/or installation at Optional Access Restriction ![]() For details about the setup and usage of Let’s Encrypt, check the corresponding support article. On our “Managed Server” products you can use nine-manage-vhosts to use our Let’s Encrypt integration. We recommend to secure the web accesses to phpMyAdmin installations using a SSL certificate. We reference the formerly created symbolic link: $ sudo nine-manage-vhosts virtual-host create -webroot =/home/www-data/phpmyadmin/currentĪdditional details about nine-manage-vhosts can be found in our support article here: Create a SSL certificate ![]() Using our tool nine-manage-vhosts, you can create a virtual host for phpMyAdmin. ![]() $ curl -O $VERSION/phpMyAdmin- $ # download $ tar -zxf phpMyAdmin- $ # extract Symbolic LinkĬreate a symbolic link so that in the future you can easily update the phpMyAdmin installation without adjusting the webserver configuration: $ ln -vsf phpMyAdmin- $VERSION-all-languages current Please adapt the version mentioned in the following example to the newest version available. htaccess Files for Basic Auth enablement and/or ip access restrictionsĭownload the latest version of phpMyAdmin from /downloads and extract it to a folder of your choice: Installing phpMyAdmin in user space will come with severals benefits, including:
0 Comments
Leave a Reply. |