Navigation

    • Register
    • Login
    • Search
    • Recent
    • Users
    • Groups

    CWP - Help to install Memcached

    CWP - Panel
    3
    9
    270
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Automata
      Automata last edited by Automata

      Hi,

      My CWP webserver is Nginx & Varnish & Apache with NGINX as a main server and forced to use PHP-FPM

      Please help me to install and activate Memcached.

      I also followed your guide but it doesn't work (on my PHP info not have Memcached):

      https://www.mysterydata.com/how-to-install-memcached-and-redis-php-extensions-with-php-selector-5-6-7-0-7-1-7-2-cwp-centos-webpanel/

      I also have installed php-pecl-memcache and libevent and libevent-devel and php73-php-pecl-memcached.x86_64 it's correct ?

      Please help me, thank you.

      1 Reply Last reply Reply Quote 0
      • Automata
        Automata last edited by

        I have resolved !

        1 Reply Last reply Reply Quote 0
        • sandeep
          sandeep last edited by sandeep

          glad to know it is resolved.

          here is the procedure :

          First install libmemcached

          cd /usr/local/src
          wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
          tar -zxvf libmemcached-1.0.18.tar.gz
          cd libmemcached-1.0.18
          ./configure
          make && make install
          

          then install memcached from pecl

          cd /usr/local/src
          rm -rf memcached*
          curl https://pecl.php.net/get/memcached -o memcached.tgz
          tar -xf memcached.tgz
          cd memcached-*
          /opt/alt/php-fpm73/usr/bin/phpize
          ./configure --with-php-config=/opt/alt/php-fpm73/usr/bin/php-config
          make && make install
          

          ensure you've memcached.ini created with extension=memcached.so here /opt/alt/php-fpm73/usr/php/php.d/ - run the command to create memcached.ini :

          grep "memcached.so" /opt/alt/php-fpm73/usr/php/php.d/memcached.ini 2> /dev/null 1> /dev/null|| echo "extension=memcached.so" > /opt/alt/php-fpm73/usr/php/php.d/memcached.ini
          
          1 Reply Last reply Reply Quote 0
          • Automata
            Automata last edited by

            Hi, "sandeep" you are the number ONE, your solution works perfectly, thanks you !

            L 1 Reply Last reply Reply Quote 1
            • L
              legend @Automata last edited by

              @automata @sandeep

              what happens when there is a server reboot or failure as we all kow that the data will be lost.

              Does cwp have the backup scripts to query the mysql for this data? If no, how do I set this up?

              Cheers.

              sandeep 1 Reply Last reply Reply Quote 0
              • sandeep
                sandeep @legend last edited by

                @legend actually don't know what you're asking exactly. CWP backups sql not queries.

                L 1 Reply Last reply Reply Quote 0
                • L
                  legend @sandeep last edited by

                  @sandeep what i mean is with memcached, data is lost when the server rebots o go offline. Is there a way for memcached to call this data from the database?

                  Secondly, i see memcache and memcached. Which one should I use as I installed them direclty from the cwp panel?

                  sandeep 1 Reply Last reply Reply Quote 0
                  • sandeep
                    sandeep @legend last edited by

                    @legend well memcache uses in memory object caching there is nothing to do with db, it will get rebuilded by your supported script after reboot.

                    php memcached is recommended

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      legend @sandeep last edited by

                      @sandeep Thanks for the info.

                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      • First post
                        Last post

                      Recent Topics

                      • Centos 8 Stream CWP - Delayed Update and CWP repositories are added

                      • Update NGINX Stable v1.16.1 to latest NGINX Stable v1.18.0 for CWP & CWP PRO!

                      • Phpmyadmin New Verison with autologin - CWP

                      • PHP 8.0.0 testing - CWP

                      • M

                        Install php 7.4 on cwp

                      • How to update phpMyAdmin v4.7.9 outdated version to the latest phpMyAdmin v4.9.2 for CWP and CWP PRO for Centos 7 !

                      • How to Get A+ Score Rating with SSLLabs Qualys in CWP – Control web panel

                      • Error cronjobs

                      URLs HOME | Blog | Support Portal