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’ ..
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: ..
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("220.127.116.11"); The expected result should be: crawl-66-249-66-1.googlebot.com. But I got 18.104.22.168. When I try host 22.214.171.124 into my WSL, it works: 126.96.36.199.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com. But when I try it inside ..
I am trying to connect two running containers: (1) a webapp and (2) a mysql db using docker compose. I setup the belowmentioned docker-compose.yml but my webapp fails to open a socket to mysql. More specifically, this php @fsockopen function throws an error ( second case ). Is there something wrong with the docker-compose config? ..
I recently switched projects and had a port in use error so killed my MySQL port. After switching back to my current environment (ddev) I couldnt run ddev commands (ddev start, ddev restart, etc…) without getting errors, where they all worked fine previous to killing the port. I get this error: Creating volume "ddev-sites_nfsmount" with ..
I have PHP installed as a Docker container, and I want to make my PHP script download files from a remote server with Rsync+SSH. Now, I tried the exec() PHP function, but I lost the last few days trying make it work. I just get a ‘Permission denied’ error in the browser. It works when ..
I’m trying to run the exec() function in PHP, but I’m getting a ‘Permission denied’ output. PHP is installed as a Docker container. I’m getting this on Raspberry PI as well as on my Macbook. For a test, I installed LAMP without Docker, and it works fine, but on Docker it doesn’t. For example, when ..
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 ..
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 ..
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 ..