Skip to content
Advertisement

Tag: docker

docker-compose, WordPress and MariaDB, PHP Fatal error: Uncaught mysqli_sql_exception: Connection refused

I have a WP project with following docker-compose configuration. When I try to connect my http://localhost to access the installation, I get 500 and I read this in the log: PHP Fatal error: Uncaught mysqli_sql_exception: Connection refused in /var/www/html/web/wp/wp-includes/wp-db.php I assume there is something wrong with the ip or the host but the weird thing is that phpmyadmin is working

Bad hostname provided

Passport Version: ^10.1 Laravel Version: 8.77.1 PHP Version: 8.0.9 Database Driver & Version: mysql 8.0.27 I can not get access token. when I call it manual by curl it get this response. this host name is generate inside the docker container I’m test 192.168.224.6 ip of docker container but it also not work Answer if you don’t use any prefix

Docker – install wkhtmltopdf – error updating from 0.12.4 to 0.12.6

I have a dockerfile which successfully installs wkhtmltopdf v0.12.4 but I need to update this to a newer version (0.12.6) as it doesn’t seem to be compatible with some other upgrades I’ve made. Here’s the code that works (albeit incompatible) And here’s the code that’s not working… And here’s the error message I’m getting… Answer Based on the comments, the

Why nginx ignores root and location directives?

I’m running Nginx as a service in docker-compose, with a volume mounted at /app inside the container. I just copied the whole project structure from Linux to MacOS where it worked fine. Here is my docker-compose.yml: I have a simple configuration for a PHP app, but the root directive inside location seems to be ignored. I can’t understand why. This

Session Problem on Redis with Docker + Nginx + Yii2

The question is, i am having a problem with session using Docker with Nginx + Yii2 + Redis. I want use same login on banckend and frontend in Yii2 advanced template. I just configured all its ok, its work when i do not use Redis, but when i use Redis, dont work. My configuration is: Yii2 advanced 2.0.43 Nginx 1.17.8

docker php8.0-apache new relic – Unable to load dynamic library ‘newrelic.so’

I’m trying to run new relic in docker with php8.0-apache image. I follow instruction by: https://docs.newrelic.com/docs/agents/php-agent/advanced-installation/docker-other-container-environments-install-php-agent/ When I start container and see PHP warning Dockerfile: Thank you for any help. Answer check if there is any newrelic.ini file and remove it. navigate to /etc/php5/cli/conf.d/ and delete all corresponding *.ini files. This should resolve your problem.

Problem modifying JSON config file inside a container (PHP)

I have a problem modifying a JSON config file within a PHP7.4 container. Im supposed to be able to configure an HTTP GET request to make adjustments to this config file. Ive ran the code on a PHP test server, with no issues, but cant seem to get the file permissions modified within the container. Ive added the line RUN

Docker Cannot assign requested address

I think I’m pretty close (I hope) to having xdebug running in a docker container, aiming to connect via Visual Studio Code. I think that maybe I’m supposed to add a config to the /etc/hosts file in the container, directing an IP address to the url my files are being served over, but am not sure what that IP address

Advertisement