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

Install How to troubleshoot Centmin Mod initial install issues

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, May 29, 2014.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    26,559
    6,095
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +8,938
    Local Time:
    3:15 PM
    Nginx 1.11.x
    MariaDB 5.5
    Centmin Mod is provided as is without support. I only work on Centmin Mod in my free time. So users feel free to help each other out which is the ideal goal of this community forum :)

    Centmin Mod Logs


    However, to properly troubleshoot and diagnose Centmin Mod initial install issues, you need to look deeper into the install logs which are automatically created when you run initial install menu option #1 or when you run any of the CLI install methods (from 1.2.3-eva2000.07 beta and onwards). These install logs are automatically created as per FAQ 7 outline at Centmin Mod FAQ - Menu based Nginx installer

    For example
    Code:
    ls -lhrt /root/centminlogs/
    total 7.8M
    -rw-r--r-- 1 root root  12K May 24 02:02 centminmod_1.2.3-eva2000.07_230514-155845_yuminstall_centos6.log
    -rw-r--r-- 1 root root    0 May 24 02:02 timedhosts_230514-155845.txt
    -rw-r--r-- 1 root root  43K May 24 02:02 centminmod_yumtimes_230514-155845.log
    -rw-r--r-- 1 root root  17K May 24 02:17 centminmod_1.2.3-eva2000.07_230514-155845_yum-log.log
    -rw-r--r-- 1 root root 4.2M May 24 02:17 centminmod_1.2.3-eva2000.07_230514-155845_install.log
    -rw-r--r-- 1 root root 1.2K May 24 02:19 centminmod_1.2.3-eva2000.07_240514-021937_nginx_addvhost.log
    -rw-r--r-- 1 root root 3.2K May 24 02:25 centminmod_geoipdb_install_240514-022530.log
    -rw-r--r-- 1 root root 667K May 24 02:29 centminmod_1.2.3-eva2000.07_240514-022702_nginx_upgrade.log
    -rw-r--r-- 1 root root 2.2M May 24 03:18 centminmod_1.2.3-eva2000.07_240514-030712_php_upgrade.log
    -rw-r--r-- 1 root root 676K May 28 00:57 centminmod_1.2.3-eva2000.07_280514-005423_nginx_upgrade.log

    Sharing logs and errors


    You can use Pastebin.com or Gists to share a sanitised version of the contents of the install or error messages if you need for them to be properly formatted or if error message or logs are very long and not able to be posted here on the community. When I mean sanitised, the install log now contains some generated passwords which you may want to remove from the log prior to sharing in public. To find the passwords, you can search for the words within install.log with the added semi-colon included:
    Code:
    password:
    Then remove those passwords from the log.

    Server Logs


    Server logs include Nginx, PHP-FPM, MariaDB MySQL error logs as well as others. You can find your Centmin Mod install/menu logs at FAQ 7 and server logs at FAQ 19 at Centmin Mod FAQ - Menu based Nginx installer (most up to date info in FAQ so always read that first). Spoiler tag below has info too but may not be up to date.

    Some of Centmin Mod's installed software will have their own access and error logs which maybe useful for diagnosing errors or give info, notes, or warning notices.

    Note: There's no support provided by me for diagnosing such errors which may occur for various reasons including misconfiguration of installed php/mysql scripts or applications.

    In SSH2 telnet you can use tail command to view the last X number of lines in the file.

    For example for viewing last 10 lines in the file for:

    For Nginx access and error logs:
    Code:
      tail -10 /usr/local/nginx/logs/access.log
      tail -10 /usr/local/nginx/logs/error.log
    
    For specific domainname.com access and error log:
    Code:
      tail -10 /home/nginx/domains/domainname.com/log/access.log
      tail -10 /home/nginx/domains/domainname.com/log/error.log
    
    For other system error logs located at /var/log:

    list /var/log files in ascending time order so the most recently modified files are at the bottom
    Code:
      ls -lhrt /var/log
    
    Code:
    total 2.7M
    -rw------- 1 root  root    0 Aug 29 15:33 tallylog
    -rw------- 1 root  root    0 Aug 29 15:33 spooler
    drwx------ 3 root  root 4.0K Aug 29 15:35 samba
    drwxr-xr-x 2 root  root 4.0K Aug 29 15:35 mail
    -rw-r--r-- 1 root  500     0 Oct  8 18:13 dmesg.old
    -rw------- 1 root  500     0 Oct  8 18:13 boot.log
    -rw-r--r-- 1 root  500     0 Oct  8 18:14 dmesg
    drwx------ 2 root  root 4.0K Oct  8 18:14 httpd
    drwxr-xr-x 2 root  root 4.0K Oct  8 19:08 php-fpm
    -rw-rw---- 1 mysql root 2.3K Oct  9 12:38 mysqld.log
    -rw------- 1 root  root 9.2K Oct 26 10:48 yum.log
    -rw------- 1 root  utmp  94K Nov  7 22:59 btmp
    drwxr-xr-x 2 root  root 4.0K Nov  8 00:00 sa
    -rw------- 1 root  root 269K Nov  8 21:39 messages
    -rw------- 1 root  root 110K Nov  8 23:08 secure
    -rw-rw-r-- 1 root  utmp  43K Nov  8 23:08 wtmp
    -rw-r--r-- 1 root  root 144K Nov  8 23:08 lastlog
    -rw------- 1 root  root  69K Nov  8 23:08 lfd.log
    -rw------- 1 root  root 332K Nov  8 23:08 maillog
    -rw------- 1 root  500  1.6M Nov  8 23:10 cron
    
    For PHP-FPM error log:
    Code:
      tail -10 /var/log/php-fpm/www-error.log
    
    and/or
    Code:
      /var/log/php-fpm/www-php.error.log
    
    For MySQL / MariaDB error log:
    Code:
      tail -10 /var/log/mysqld.log
    
    For CSF firewall LFD log:
    Code:
      tail -10 /var/log/lfd.log
    
    For Mail log:
    Code:
      tail -10 /var/log/maillog
    
    For Cron job logs:
    Code:
      tail -10 /var/log/cron
    

    Nginx Pagespeed Troubleshooting


    Full details at Nginx PageSpeed - Nginx Pagespeed Troubleshooting steps | Centmin Mod Community

    Also share relevant info including:
    • VPS type ? Xen, KVM, OpenVZ, VMWare ?
    • Amount of memory ?
    • which build of Centmin Mod .07 stable or .08 beta ?
    • Nginx version used ? Output from command
    Code:
    nginx -V
     
    Last edited: May 17, 2015
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    26,559
    6,095
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +8,938
    Local Time:
    3:15 PM
    Nginx 1.11.x
    MariaDB 5.5

    Additional Notes


    • Most common initial install error will be with broken download urls due to changes in the download url location or for YUM repos the release RPM version number is updated. You can see all download urls Centmin Mod looks for at /inc/downloadlinks.inc for 123.08stable and /inc/downloadlinks.inc for 123.09beta01.
     
    Last edited: Oct 5, 2016
    • Like Like x 1
Thread Status:
Not open for further replies.