Category : php

I’m trying to connect my PhpStorm debugger with PHPUnit. I’m using Docker env and inside docker PHPUnit is working properly. Problem is when I click on "tests" directory PPM -> Run test I got this: [docker://environment_php_8_fpm:latest/]:php /opt/.phpstorm_helpers/phpunit.php –no-configuration /opt/project/src/tests Testing started at 16:19 … The value of autoloader is specified, but file doesn’t exist ‘/home/kuba/Work/CodeProjects/advertisement-crawler/src/vendor/autoload.php’ ..

Read more

I have a php app dockerized. My issue is how to capture errors from php service into a dedicated file on the host. docker file looks is next: version: "3.9" services: web: image: nginx:latest ports: – "3000:80" volumes: – ./nginx.conf:/etc/nginx/nginx.conf – ./public:/public php: build: context: . dockerfile: PHP.Dockerfile environment: APP_MODE: ‘development’ env_file: – ‘dev.env’ volumes: ..

Read more

The php function gethostbyaddr stop working under my docker container. I’m trying to figure why but I find no lead. Example: <?php echo gethostbyaddr("66.249.66.1"); The expected result should be: crawl-66-249-66-1.googlebot.com. But I got 66.249.66.1. When I try host 66.249.66.1 into my WSL, it works: 1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com. But when I try it inside ..

Read more

I am trying to install some php extensions all day but an error I do not understand occurs. Basically if I remove the install docker-php-ext-enable line everything seems to work normally (except my app that depends on them). Dockerfile FROM php:8.0-apache RUN apt-get update && apt-get install -y unzip libcurl4-openssl-dev zlib1g-dev libpng-dev libxml2-dev libzip-dev RUN ..

Read more

I am quite new to Linux and Docker. It is good that Sail manages everything for me! But I would like to allow the debugging in VSCode. I have added in my windows laravel folder /docker/8.0/php.ini [XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_host = host.docker.internal xdebug.remote_port = 9001 I have added this in my ..

Read more

I’ve just install mediawiki on Docker on Windows 10. It follows from here that Parsoid (the PHP version) is natively bundled in MediaWiki 1.35. It’s mentioned here that Also, from here that As such, I tried docker run –name my_mediawiki -d -t -i -v /f/zim:/zim mediawiki:latest sh docker exec my_mediawiki echo ‘Foo’ | php bin/parse.php ..

Read more