Get the most out of your Centmin Mod LEMP stack
Become a Member

SSH Hardened - Installer missing PHP?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by lushen, Nov 15, 2017 at 10:08 AM.

  1. lushen

    lushen New Member

    6
    1
    3
    Nov 13, 2017
    Ratings:
    +3
    Local Time:
    11:55 PM
    Hi there,

    I am just configuring another server with centmin mod, this time I used:

    Code:
    yum -y update; curl -O https://centminmod.com/betainstaller7.sh && chmod 0700 betainstaller7.sh && bash betainstaller7.sh
    
    After setting everything up I installed phpmyadmin, and I got this:

    Code:
    File ./vendor/autoload.php missing or not readable. 
    Most likely you did not run Composer to install library files.
    
    Code:
    php -v
    
    throws me a "command not found".

    So, what is the correct way to install centmin? Because the exact same way worked on another server on this one it didnt (Same provider).

    Basically I do a SSH harden (Disable root, pubkey auth, no password auth, etc.), add user, firewall rules for the SSH port, adding the key, login with user and sudo -i, then installing centminmod. Is that wrong?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,569
    6,854
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,274
    Local Time:
    8:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    For phpmyadmin install you can use the phpmyadmin.sh addon outlined here and discussed here. Just try updating to latest phpmyadmin.sh and run uninstall script it generates and re-install/re-run phpmyadmin.sh again, that composer error is old and previously fixed in phpmyadmin.sh

    but for missing php, when did you install 123.09beta01 as there was a bug fixed in past ~29hrs ago for initial installs if ngx_pagespeed was enabled (did you enable) https://community.centminmod.com/threads/fix-up-initial-install-ngx_pagespeed.13297/

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    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 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
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.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