× Installation and guides about a great free, plesk and cpanel alternative project

Install Memcache to CWP7

2 Μήνες 3 Ημέρες πριν - 2 Μήνες 3 Ημέρες πριν #264 από infogate
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:
# 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
Note: libmemcached – a client library that offers a couple of tools to manage your Memcached server.

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 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
OPTIONS="-l -U 0"
Save and close the file when you are done. Restart and enable your Memcached service to apply your configuration changes:
# 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
To check that Memcached is up and running, type the following:
# memstat --servers="localhost"
# memstat --servers=""
# memcached-tool 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 tar -xf memcached.tgz
cd memcached-*
./configure --with-php-config=/opt/alt/php-fpm81/usr/bin/php-config
make install
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
systemctl restart memcached
systemctl restart nginx.service

Follow us at You Tube --> www.youtube.com/@freespiritsgr
Follow us at Facebook --> www.facebook.com/freespirits.gr
Αν το παραπάνω άρθρο σας φάνηκε χρήσιμο θα το εκτιμούσαμε αν μας αξιολογούσατε κάνοντας κλικ εδώ --> g.page/r/CeAOj46Cf2epEB0/review
Σε περίπτωση που σας ενδιαφέρει να λάβετε οικονομική προσφορά για σχεδίαση ιστοσελίδας κάντε κλικ --> freespirits.gr/web-design
Αν διαθέτετε ήδη ιστοσελίδα και θέλετε να γίνει δωρεάν έλεγχος ταχύτητας και SEO κάντε κλικ εδώ --> freespirits.gr/contact-us
Αν χρειάζεστε οικονομική, ταχύτατη φιλοξενία με δωρεάν μεταφορά δεδομένων κάντε κλικ εδώ --> freespirits.gr/hosting

Last edit: 2 Μήνες 3 Ημέρες πριν by infogate.

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.148 δευτερόλεπτα
Powered by Kunena Φόρουμ