Category : laradock

After installing Laradock,i don’t need to have mysql with mariadb together. i want to use mariadb instead. how can i delete this service from docker-compose? when i try to remove mysql from volumes and services i get this error: $ docker-compose up -d mariadb nginx phpmyadmin workspace ERROR: Service ‘phpmyadmin’ depends on service ‘mysql’ which ..

Read more

I have tried "telnet 12.123.123.123 80" and using redis-commander. Everthing works perfectly fine but when run the code, it shows "Unknown response prefix: ‘H’". Here’s my code: $redisResultData = RedisServer::connection(‘td_slave’)->PING(); /config/app.php ‘aliases’ => [ ‘RedisServer’ => IlluminateSupportFacadesRedis::class ] /config/database.php: ‘td_slave’ => [ ‘host’ => ‘12.123.123.123’, ‘password’ => null, ‘port’ => 80, ‘database’ => 0, ], ..

Read more

I have 3 Laravel projects, how can I set nginx and Laravel so I can access by: www.webpage.com/project-1,www.webpage.com/project-2,www.webpage.com/project-3? All my project are under /var/www/ folder I’m using Laradock and now I have 1 nginx config file per project and I access every project using different domains server { listen 80; listen [::]:80; server_name project1.com; root ..

Read more

My application is returning an error when storing the cache, I saw that it was saving, but it is returning this error. Can anyone say why? Here’s my function and the error: function that returns error: public function getProductsRecommendations($keywords) { $expiration = 10; $keyName = ‘productsRecommended’; return Cache::remember($keyName, $expiration, function ($keywords) { return Product::query()->where(function ($productsAll) ..

Read more

I have redis problem in laravel, I’m using laradock to upload my containers, but I don’t know why it’s not working. When I ran the command redis-server in the terminal inside the bash of redis I saw that I was returning this error: C:UsersdanilOneDrive├ürea de TrabalhoBuilderAllmercaloo-sellerlaradock>docker-compose exec redis bash [email protected]:/data# redis-server 25:C 12 Jun 2021 ..

Read more

My Laravel docker environment stopped working today. After several tries I finally deleted all images and tried to rebuild environemt. I get the same error: + apt-get install -yqq apt-utils libzip-dev zip unzip E: Unable to correct problems, you have held broken packages. ERROR: Service ‘php-fpm’ failed to build: The command ‘/bin/sh -c set -xe; ..

Read more

I’m using MaxOs and after install Docker i tried to install LaraDock,running this command which that was into LaraDoc documentation: laradock % docker-compose up -d nginx mariadb phpmyadmin redis workspace return this error: laradock_mariadb_1 is up-to-date laradock_docker-in-docker_1 is up-to-date laradock_redis_1 is up-to-date Starting laradock_mysql_1 … Starting laradock_mysql_1 … error WARNING: Host is already in use ..

Read more

I got this DatabaseSeeder.php in laravel where I create a Directory: public function run() { Storage::deleteDirectory(‘posts’); Storage::makeDirectory(‘posts’); // Etcetera … } And then I run $ php artisan migrate:fresh –seed This works flawlessly in my development environment (Laravel Homestead). However, if I run that same command inside a Docker container using Laradock, I get the ..

Read more

I recently updated my Laradock to webpack 5.4.0 now ny npm run dev do not compile. it was all wroking well before i updated the npm. Can someone please help: npm run dev > dev > npm run development > development > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js –progress –config=node_modules/laravel-mix/setup/webpack.config.js [webpack-cli] Invalid configuration object. Webpack has been initialized ..

Read more

I am new to docker. I have dockerized my laravel application using laradock. Everything works fine in local machine using docker-composer up command but I do not know How to push it to docker hub. docker images command shows me the local images as xxx_phpmyadmin xxx_laravel-horizon xxx_php-worker xxx_laravel-echo-server xxx_mongo xxx_mysql xxx_nginx xxx_php-fpm xxx_workspace xxx_redis xxx ..

Read more

I keep getting this error, but I don’t know why certbot_1 | /root/certbot/run-certbot.sh: line 2: $’r’: command not found certbot_1 | usage: certbot_1 | certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] … certbot_1 | certbot_1 | Certbot can obtain and install HTTPS/TLS/SSL certificates. By default, certbot_1 | it will attempt to use a webserver both ..

Read more