Mahmoudz on gh-pages
Deploy laradock/laradock to git… (compare)
bestlong on master
fix incomplete SSL chain error … Merge pull request #2805 from a… (compare)
bestlong on v12.1
bestlong on all-in
bestlong on fix-2943
bestlong on ci-schedule-not-trigger-in-fork
bestlong on enchant
Mahmoudz on gh-pages
Deploy laradock/laradock to git… (compare)
bestlong on master
php-fpm support enchant extensi… Merge pull request #2953 from l… (compare)
bestlong on enchant
php-fpm support enchant extensi… (compare)
Mahmoudz on gh-pages
Deploy laradock/laradock to git… (compare)
bestlong on master
fix horizon memcached php-worker support memcached ex… Merge pull request #2952 from l… (compare)
Hi guys, I'm trying to run Puppeteer. I get an error saying error while loading shared libraries: libnss3.so
There is troubleshooter for docker: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker
But i'm not sure where to put that
Let's say I have an EC2 Server which needs to have multiple developers working on. I want to configure same project on multiple ports. So that each developer working remotely
should have
1- it's seperate User
2- Seperate project directory
3- Run on Laradock different port (for example User 1 could use port 80, User 2 could use port 5000).
4- The User will have seperate host names so that they can be reached on the browser.
I can configure for first user with port 80 but the other developers sites are unable to serve with port 5000 etc.
Has anyone configured a multi site with hosts on laradock ?
Hi, I can't seem to get XDebug working after updating to PHP 8 and XDebug 3.
It's installed and running as I can see from php -v
.
My php-fpm xdebug.ini is
xdebug.remote_connect_back=0
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=0
xdebug.remote_enable=0
xdebug.cli_color=0
xdebug.profiler_enable=0
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling"
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=-1
I am using InteliJ IDEA to interact with XDebug in Laradock
I get the following xdebug log output when trying to use xdebug
[6] Log opened at 2021-03-31 14:27:55.089223
[6] [Step Debug] INFO: Checking remote connect back address.
[6] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[6] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[6] [Step Debug] INFO: Client host discovered through HTTP header, connecting to 172.30.0.1:9003.
[6] [Step Debug] INFO: Connected to debugging client: 172.30.0.1:9003 (from REMOTE_ADDR HTTP header). :-)
[6] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/public/index.php" language="PHP" xdebug:language_version="8.0.3" protocol_version="1.0" appid="6" idekey="PHPSTORM"><engine version="3.0.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2020 by Derick Rethans]]></copyright></init>
[6] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
[6] [Step Debug] WARN: 2021-03-31 14:27:55.709090: There was a problem sending 179 bytes on socket 7: Broken pipe.
[6] Log closed at 2021-03-31 14:27:55.710934
I'm not sure how to resolve it
npm install -g npm@7.8.0
to update!Hi, anyone experienced mmap() failed: [12] Cannot allocate memory
when you php artisan tinker
or composer install
in workspace's bash shell
on Apple M1 MacBook?
The difference between M1 MacBook and Intel MacBook is free memory.
The initial free memory of workspace on M1 MacBook is just 108MB.
root@3eea29411f48 /var/www/ $ free -m
total used free shared buff/cache available
Mem: 1988 700 108 345 1180 845
Swap: 1023 89 934
But the initial free memory on Intel Macbook is 306MB.
root@2deae966d1f9:/var/www/ $ free -m
total used free shared buff/cache available
Mem: 1988 528 306 18 1153 1288
Swap: 1023 560 46
mmap() failed: [12] Cannot allocate memory
error. Maybe it is not related to this error.root@b179f678a927 /var/www/testapp $ free -m
total used free shared buff/cache available
Mem: 2657 753 646 395 1256 1370
Swap: 1023 0 1023
root@b179f678a927 /var/www/testapp $ php artisan tinker
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 10485760) (tried to allocate 4096 bytes) in /var/www/testapp/vendor/composer/autoload_static.php on line 4660
I'm getting a lot of these in my log files
php_network_getaddresses: getaddrinfo failed: Name or service not known [tcp://redis:6379] {"exception":"[object]
Redis seems to be working ok, as does everything else. Any idea what could be causing it?
check docker-compose ps
I was able to fix it:
1 - Remove those lines from DockerCompose.yml in the PHP-FPM section:
ports:
- "${PHP_FPM_XDEBUG_PORT}:9003"
2 - On php-fpm/xdebug.ini:
xdebug.remote_host="host.docker.internal" => ;xdebug.remote_host="host.docker.internal"
xdebug.remote_connect_back=0 => xdebug.remote_connect_back=1
Now everything works fine again. (I suck at Gitter's code formmating, bug I guess you can understand)