I want to extend the httpd Image with PHP and some PHP Modules. My Dockerfile for this looks like this. The error I’m getting when building the Image is following What am I´m doing wrong? Edit: Thanks to @RJK On step 5/6 your are running add-apt-repository -y ppa:ondrejphp, it should be add-apt-repository -y ppa:ondrej/php (forward slash) Now the script can
Tag: docker
Xdebug silently catches connections with no reason
The application runs on docker containers: nginx and php-fpm. Xdebug is configured with PhpStorm. The app was working correctly until suddenly Xdebug started to catch all connections even when I didn’t enable debugging. I didn’t even change anything in configuration – it just started to do this (a bit magic but of course there should be something). Why it’s Xdebug:
Unable to start docker-compose
I’m trying to configure sendy to run on docker-compose. I’m getting this error when running docker-compose up error docker-compose.yml Answer In the directory where that docker-compose file exists, is there a Dockerfile specifically called “Dockerfile”? Under your sendy service, you have the context as the current directory, but no Dockerfile specified. By default, it will look for a file called
Docker – Nginx, PHP, MySQL – Laravel artisan migrate connection refused
I have Laravel running in Docker with 3 containers – Nginx, MySQL 8 And PHP 8. I have the following docker-compose.yaml This command: Launches 3 containers: I want to run php artisan migrate, so I try it like so: This gives me the following error: My mysql.env file is like so: AND .env: I’ve tried changing ports, host, but I
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name does not resolve
I am running a php:7-fpm-alpine Docker container and have a Symfony command that calls the following function (simplified a bit for display here): … and when I run the command from within my Docker container, I get this error message: Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name does not resolve … but when I run a short test.php script … …
A little problem with starting Laravel server in docker container
I have deployed the Laravel 8.x source code in web_laravel docker. I did not get any error while running composer update and php artisan serve. But, when I access 192.168.1.xx:8000 in browser, I get the following error. I tried to ping 192.168.1.xx, it works fine. But, I got the following error when using telnet. It seems that I am having
“PDOException: could not find driver” inside docker container where PDO modules exist
I want to run php-fpm in a docker container, but get an error message after starting the container: Fatal error: Uncaught PDOException: could not find driver. I use php7.4 with event engine and a postgres database in a separate container (I use docker-compose to start them all) and are working on ubuntu20.04. The weird thing is: My collegues installed the
Apache ignore headers and status codes from Lumen
I have app based on Docker and microservices. Angular, MySQL, Lumen + Apache. Unfortunately on Docker my API doesn’t send any header or status code. Any response is 200. I tried change HTTP server to NGINX but for nothing. I have no idea how can i fix this issue. Apache config Dockerfile docker-compose.yml .htaccess Answer Okey I found answer for
Error generated by named arguments and argument unpacking in function call not throwing ErrorException in PHP-8
The following code works as expected: throws the ErrorException and calls the shutdown function for the fatal-error generated by require Output: require(unavailable_file): Failed to open stream: No such file or directory anyway, hello world But fatal error generated by named arguments fails to call the exception-handler and the shutdown function Output: Fatal error: Cannot combine named arguments and argument unpacking
nginx not serving JS, CSS files for PHP app behind ingress-nginx
Can’t seem to get this working and need help on where I am going wrong. Have an old PHP app subpathed at /admin. ingress-nginx forwards the traffic for it to an nginx server running in the Pod. I’ve verified I can do the following and it serves the assets correctly: kubectl port-forward <admin-pod> 4000:4000 skaffold dev –port-forward docker run -p