Answer the question
In order to leave comments, you need to log in
How to separate php and memcached on different machines?
There are four servers:
1. apache
2. PHP
3. MEMCACHED
4. MySQL
It is necessary to configure so that php memcached and mysql work together.
The memcached pecl client is installed on php.
I'm interested in where the PHP connection parameters to MySQL and to MEMCACHED are written
. And is it even possible for php and apache to be on different servers? And if so, how do you connect them?
Answer the question
In order to leave comments, you need to log in
I'm interested in where the PHP connection parameters to MySQL and to MEMCACHED are written
$mc = new Memcached();
$mc->addServer("localhost", 11211);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question