Want to subscribe to topics you're interested in?
Become a Member

Install Fresh install, memcache errored out

Discussion in 'Install & Upgrades or Pre-Install Questions' started by fly, Nov 4, 2021.

  1. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    1:17 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: latest
    • PHP Version Installed: 8.0
    • MariaDB MySQL Version Installed: latest
    • When was last time updated Centmin Mod code base ? : fresh install
    • Persistent Config: no
    I just created a fresh install with PHP 8 and got the following error;

    Code:
    *************************************************
    * Centmin Mod install completed....
    *************************************************
    inc/memcacheadmin.inc: line 19: cd: memcache-php7: No such file or directory
    
    *************************************************
    *  Setup memcached_*.php admin page ...
    *************************************************
    cp: cannot stat ‘memcache.php’: No such file or directory
    chmod: cannot access ‘/usr/local/nginx/html/memcache_02b9affa9a42ae41.php’: No such file or directory
    sed: can't read /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    sed: can't read /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    sed: can't read /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    sed: can't read /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    
    Setup Memcached Server Admin Login Details for /usr/local/nginx/html/memcache_02b9affa9a42ae41.php
    grep: /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    current memcached username:
    grep: /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    current memcached password:
    sed: can't read /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    sed: can't read /usr/local/nginx/html/memcache_02b9affa9a42ae41.php: No such file or directory
    Memcached seems installed. Ideas?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    3:17 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    memcached server is not same as memcached PHP extension or memcache PHP extension - all 3 are separate installable items.

    memcache PHP extension is ancient and really isn't used anymore but Centmin Mod 123.09beta01 did update the routine to install memcache branch with PHP 8 support. Seems that is the part that failed.

    would need the full initial install log to troubleshoot and you may need to do a fresh install on fresh CentOS install after troubleshooting.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example for 123.09beta01 and newer list /root/centminlogs files in date ascending order and grep for installer_*
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    

    example output returns install log at /root/centminlogs both a the full log and minimal log (smaller in size with some stuff filtered out)
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 installer_120718-083445.log
    -rw-r--r-- 1 root root 826K Jul 12 10:20 installer_120718-083445_minimal.log
    


    Example for 123.08stable list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file

    for 123.08stable
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    for 123.09beta01 and newer
    Code (Text):
    cat /root/centminlogs/installer_120718-083445_minimal.log
    


    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
  3. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    1:17 PM
  4. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    3:17 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ok found the bug, not that bad as it's just a PHP 8 routine bug when setting up Memcached server's admin statistics page at /usr/local/nginx/html/memcache_***.php where *** is randomly generated so it would be accessed at your main hostname domain.com/memcache_***.php the routine also password protects the file with user/pass within the PHP file itself. The routine you see the error is for that setup for the memcache_***.php file and not related to actual functioning of Memcached server or memcache or Memcached PHP extensions.

    I've updated Centmin Mod 123.09beta01 with a fix so that fresh installs which default to PHP 8, pickup the correct directory for PHP-8's memcache-8 directory which contains the source memcache.php file that is processed.
     
  5. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    1:17 PM
    As usual, you are a wizard and a saint. Thanks!

    edit: Verified that a fresh install works now.
     
    Last edited: Nov 5, 2021