×
Installation and guides about a great free, plesk and cpanel alternative project
Install Memcache to CWP7
- infogate
- Συντάκτης θέματος
- Αποσυνδεμένος
- Administrator
- Imagination is the beginning of creation
1 Χρόνος 10 Μήνες πριν - 6 Μήνες 2 Εβδομάδες πριν #264
από infogate
The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal
Install Memcache to CWP7 δημιουργήθηκε από infogate
In this tutorial we’ll install Memcached and Redis PHP Extensions with Php Selector 8.1 on CWP. CWP have some nice php extensions implemented for php switcher like memcached and redis etc. Today I’ll going to show you how to do that with php selector.
First, update the system:
Next, install the official Memcached package memcached; as well as libmemcached, which provides several utilities to work with Memcached:Note: libmemcached – a client library that offers a couple of tools to manage your Memcached server.
Start the memcached on boot :
Securing Memcached Configuration Settings for Local Access Only:
To make assure that installed Memcached service is listening on the 127.0.0.1 local interface, We will also disable the UDP listener. Both of these actions will protect our server from denial of service To do this, we will add the -U 0 parameter to our OPTIONS variable. The file in full should look like this:Save and close the file when you are done. Restart and enable your Memcached service to apply your configuration changes:[/code]
You can verify Memcached is bound only to the local interface and listening only to TCP connections with the ss command:To check that Memcached is up and running, type the following:
To use Memcached as a caching database for your PHP application such as WordPress , Drupal or Magento , you need to install the php-pecl-memcached extension:
Install php memcached extension :Now We’ll Build and install PHP MEMCACHED on php-fpm 8.1 :curl -L pecl.php.net/get/memcached -o memcached.tgz)Add this line to php.ini navigate to php selector >> Edit php.ini(under the php version you installed memcached php
for php-fpm8.1 we will navigate to /opt/alt/php-fpm81/usr/php/php.ini
Restart server or just restart memcache and nginx
First, update the system:
# yum update -y
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
Next, install the official Memcached package memcached; as well as libmemcached, which provides several utilities to work with Memcached:
# yum install memcached libmemcached
Start the memcached on boot :
systemctl enable memcached
Securing Memcached Configuration Settings for Local Access Only:
To make assure that installed Memcached service is listening on the 127.0.0.1 local interface, We will also disable the UDP listener. Both of these actions will protect our server from denial of service To do this, we will add the -U 0 parameter to our OPTIONS variable. The file in full should look like this:
# vi /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 127.0.0.1 -U 0"
# systemctl restart memcached
[code]# systemctl enable memcached
# systemctl status memcached
You can verify Memcached is bound only to the local interface and listening only to TCP connections with the ss command:
# ss -plunt | grep memcached
# netstat -plunt # netstat -plunt | grep memcached
# echo "stats settings" | nc localhost 11211
# memstat --servers="localhost"
# memstat --servers="127.0.0.1"
# memcached-tool 127.0.0.1 stats
To use Memcached as a caching database for your PHP application such as WordPress , Drupal or Magento , you need to install the php-pecl-memcached extension:
# yum install php-pecl-memcache
# yum install php-pecl-memcached ( prefer)
Install php memcached extension :Now We’ll Build and install PHP MEMCACHED on php-fpm 8.1 :
cd /usr/local/src
rm -rf memcached*
curl https://pecl.php.net/get/memcached -o memcached.tgz
(If it won't work run this
tar -xf memcached.tgz
cd memcached-*
/opt/alt/php-fpm81/usr/bin/phpize
./configure --with-php-config=/opt/alt/php-fpm81/usr/bin/php-config
make
make install
extension=memcached.so
for php-fpm8.1 we will navigate to /opt/alt/php-fpm81/usr/php/php.ini
Restart server or just restart memcache and nginx
systemctl restart memcached
systemctl restart nginx.service
The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal
Last edit: 6 Μήνες 2 Εβδομάδες πριν by infogate.
Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.
Χρόνος δημιουργίας σελίδας: 0.041 δευτερόλεπτα