Join the community today
Become a Member

SSH Hardened - Installer missing PHP?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by lushen, Nov 15, 2017.

  1. lushen

    lushen New Member

    Nov 13, 2017
    Local Time:
    3:01 PM
    Hi there,

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

    yum -y update; curl -O && chmod 0700 && bash
    After setting everything up I installed phpmyadmin, and I got this:

    File ./vendor/autoload.php missing or not readable. 
    Most likely you did not run Composer to install library files.
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    11:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    For phpmyadmin install you can use the addon outlined here and discussed here. Just try updating to latest and run uninstall script it generates and re-install/re-run again, that composer error is old and previously fixed in

    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)

    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 menu option 1, Git install or curl one liner install as outlined at ?
    • 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 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 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