To apply this new Virtuahost, just restart Apache. #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 Then, save the changes and close the file 1.- Installing PHPMyAdmin on Ubuntu 20.04įinally, create a new Virtualhost for the application: :~$ sudo nano /etc/apache2/conf-enabled/nfĪnd add all this content inside: Alias /phpmyadmin /usr/share/phpmyadmin In this case I have established the following: $cfg = that same file, set the directory of temporary files that we have created for PHPMyAdmin: $cfg = '/var/lib/phpmyadmin/tmp' Then, you have to set a secret blowfish in the PHPMyAdmin configuration file: :~$ sudo nano /usr/share/phpmyadmin/ :~$ sudo cp /usr/share/phpmyadmin/ /usr/share/phpmyadmin/ The next step is to copy the default configuration and transform it into the program’s loaded configuration. :~$ sudo chown -R www-data:www-data /var/lib/phpmyadmin Then, assign Apache as the owner of the PHPMyAdmin temporary folder. :~$ sudo mkdir -p /var/lib/phpmyadmin/tmp It is advisable to change the name of the folder to one more easily manipulated like this: :~$ sudo mv /usr/share/phpMyAdmin-5.0.2-all-languages/ /usr/share/phpmyadminĪlso, create the directories that the application will use. Then, decompress it into another folder dedicated to PHPMyAdmin as /usr/share :~$ sudo unzip phpMyAdmin-5.0.2-all-languages.zip -d /usr/share/ 2.- Installing PHPMyAdmin on Ubuntu 20.04įor now, the last official version of PHPMyAdmin is 5.0.2, so we will proceed to download it using wget. I also advise you to create a dedicated user for PHPMyAdmin. Once the installation is finished, you can continue. Therefore, it requires a correctly installed LAMP server. PHPMyAdmin is created in PHP, so we are talking about a web application. Install PHPMyAdmin on Ubuntu 20.04 1.- Install LAMP on Ubuntu 20.04 Without consuming many resources you will have a quality application. It is simply installed on the server, we make a few small configurations and that’s it. PHPMyAdmin is an open-source application created in PHP that provides the administration of a MySQL or MariaDB database from a comfortable web interface. In this post, I will help you to install maybe one of the most popular ones there is, I mean PHPMyAdmin on Ubuntu 20.04 In this sense, an application that helps the data query and the administration of the MySQL or MariaDB instance becomes necessary. And many projects use MySQL or MariaDB to meet this need. '/var/run/mysqld/mysqld.Taskset Cheatsheet | Pandoc Cheatsheet | Curl Cheatsheet | Grep CheatSheet | Cron CheatSheet | Grep CheatSheet | More!įor developers, the application database is important. EDIT::The following is invalid so please don't botherĮRROR 2002 (HY000): Can't connect to local MySQL server through socket and then again i tried to reinstall, it reinstalled but i am not getting phpmyadmin. I thought it was phpmyadmin password and i proceeded but i got error and i aborted. I was trying to install phpmyadmin (and zend framework) through synaptic manager but in the middle i was prompted for password How to reinstall phpmyadmin with database (there is no phpmyadmin datbase)? unstalling it and reinstalling it didn't help. EDIT:: installed mysql-server but no phpmyadmin (since phpmyadmin was installed before mysql, that resulted an error).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |