![]() Sudo service apache2 reload # within Ubuntu 14. Sudo systemctl reload rvice # within Ubuntu 16.04 Older versions of Laravel (8.52.0 and below) do not support these variables and will not accept debug connections. All options of the Docker image are documented in phpMyAdmin Docker hub page. provide proper connection details when logging in to phpMyAdmin. You need to: link the MySQL container (you already did that), supply a config file to phpMyAdmin, or. Then enable this configuration file and restart Apache or just reload its configuration: sudo a2enconf nf Your phpMyAdmin container doesn't know where to find the MySQL database server. The solution, that provided, is manual creation of this symbolic link: sudo ln -s /etc/phpmyadmin/nf /etc/apache2/conf-available/nf Im using docker on my project and I set up my docker-compose file like this: dbservice: containername: database image: mysql:latest ports: - '3306:3306' environment: - MYSQLUSERroot - MYSQLPASSWORDmypassword - MYSQLROOTPASSWORDmypassword - MYSQLDATABASEmydatabase phpmyadmin: image. ![]() On its side, the file /etc/apache2/conf-enabled/nf is a symbolic link to the file /etc/phpmyadmin/nf.Īccording to the discussion below the question, during the installation process something goes wrong and the last symbolic link isn't created. Cannot access to phpmyadmin when using docker. if you want to login using your root user you don't have to specify MySQL user and it will look like this (you don't need to specify a user for phpmyadmin because it's always root): version: '3.1' volumes: mysql-volume: services: mysql: image: mysql containername: mysql volumes. I removed the -P option, which means the container is not publicly accessible, but it is accessible from network (s) it's connected to. In my example above I use the MySQL user to login with phpadmin. Start the mysql container, and connect it to the myprivatenetwork. This file is a symbolic link to the file /etc/apache2/conf-available/nf and when we type a2enconf or a2disconf we 'enable' or 'disable' this symbolic link. Create a custom network docker network create myprivatenetwork. If I understood correctly, you want to use phpMyAdmin for the existing Laravel application(not with sail. Within the default Ubuntu's installation ( apt install phpmyadmin) PhpMyAdmin is included (and enabled) into the Apache's configuration through this additional configuration file: /etc/apache2/conf-enabled/nf
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |