Comments (2)
Hi @soarcn, thank you for trying it out!
To add Memcached to your lamp or lemp stack, please do the following
In the DECK UI, click on "More" beside your stack. Then "Configure" & "More advanced ..."
- Edit the file Dockefile-{The PHP version you've chosen, ex 7.4}
- Add this line:
php7.4-memcached \
- Edit the file docker-compose.yml
- Add these 2 lines after services:
memcached:
image: memcached:latest
Go, back to the DECK UI & rebuild the stack to connect to Memcached server
Here's an example code below to test if it working
<?php
$m = new Memcached();
$m->addServer('memcached', 11211);
$stats = $m->getStats();
echo "<pre>";
if ($stats)
print_r($stats);
else
echo "Connection error";
from deck.
Thank you so much for answering my question, very clear and it's working!
Brilliant!
from deck.
Related Issues (20)
- CPU maxout on debian linux possible due to Deck app HOT 2
- Cannot Download Windows Version HOT 5
- wget: bad address 'raw.githubusercontent.com' HOT 1
- [REQUEST] Support subdomain routing HOT 5
- Cannot connect to database server HOT 4
- Cannot dismiss 'Hold on a sec' message HOT 6
- Install will fail if deck previously installed HOT 5
- DECK App status indicator does not work HOT 3
- php 7.1 and 7.2 HOT 4
- Not able to install Laravel on Windows HOT 5
- Permission denied The exception occurred while attempting to log [Laravel] HOT 2
- [Mac Ventura 13.2.1] Run, rebuild, stop hang indefinitely
- Add Option to choose install directory
- Saving failed HOT 1
- No README found / Invalid github link. HOT 1
- ECONNREFUSED error HOT 7
- NET::ERR_CERT_AUTHORITY_INVALID HOT 1
- The Deck Desktop Application uses insecure web preferences and does not restrict in-app navigation HOT 1
- No Work
- How to add PHP extension that does not have in default stack installation? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deck.