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

Install From Virtualmin to CentminMod

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Kintaro, Dec 5, 2016.

  1. Kintaro

    Kintaro Member

    106
    11
    18
    Dec 2, 2016
    Italy
    Ratings:
    +30
    Local Time:
    3:40 AM
    1.15.x
    MariaDB 10
    Hello,

    I would like to know (if possible) from someone that already migrate the PROs and CONs about it.


    I have less than 10 vhost on Virtualmin every one with its user.
    Only for some of this I need FTP, for the others SFTP.

    Right know I'm doing a daily incremental back up every night and a full back up once a week. Backup are uploaded on Amazon S3 but I store 1 full and 6 incremental on the server too.

    I'm already running nginx+php-fpm+mariadb so I think that performance more or less will be the same.

    With Virtualmin I can't have different php versions for different virtualhosts.

    I manage DBs with phpmyadmin.
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,802
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:40 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod isn't made for shared hosting, see FAQ item 2 so you won't have individual jailed and isolated linux user accounts on Centmin Mod. Centmin Mod uses pure-ftpd virtual ftp users with explicit FTP over TLS/SSL for encryption. See details here. So these are probably the biggest factor in your decision to migrating :)

    Performance wise, I am confident no other LEMP web stack has the out of box or potential (via optional settings) performance for Nginx, php-fpm and MariaDB MySQL server as Centmin Mod particularly 123.09beta01 branch auto optimises and tunes all Nginx, php-fpm, MariaDB and linux system specific settings based on auto detected server hardware available like number of cpu cores/threads, available memory and disk i/o performance measured. Nginx and PHP-FPM also are optimised at compile time for Intel specific processors if Centmin Mod detects specific Intel cpus.

    Optional items like PHP 7 boosted performance via Intel provided Profile Guided Optimization profiles as well Added Profile Guided Optimizations To Boost PHP 7 Performance | Centmin Mod Community

    Centmin Mod can't do multiple PHP versions either for different vhosts though it's on the future to do list.

    Centmin Mod has it's own beta tested addons/phpmyadmin.sh installer too Addon phpmyadmin.sh - CentminMod.com LEMP Nginx web stack for CentOS and discussion thread at phpmyadmin.sh Addon | Centmin Mod Community
     
  3. Kintaro

    Kintaro Member

    106
    11
    18
    Dec 2, 2016
    Italy
    Ratings:
    +30
    Local Time:
    3:40 AM
    1.15.x
    MariaDB 10
    So as it is it will not possible to know what vhost is using too much cpu for example, right?

    With only one user running nginx in case one of the websites will be hacked it could be possibile that the attacker will access al the other vhosts homes?

    About the automatic backup, there's no automatic backup feature?
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,802
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:40 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not right now. Premium members have access to dbbackup.sh for mysql automated backups MariaDB - dbbackup.sh - quick mysql database backups for Centmin Mod stack | Centmin Mod Community and future plans to extend that to cmbackup.sh script for site files + db backups. So for now you have to come up with your own backup scripts and Config files page might be useful for overview of file and directory structure Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS

    dbbackup.sh

    with key features
    Yes as with most free LEMP stack set ups out of the box defaults. For my own sites, I generally divide them to their own separate VPS/servers for ease of management i.e. specific php versions required and easier to scale, move or migrate a site if traffic increases etc. So not to have all the eggs in one basket :)

    FAQ item 2 covers users accounts you can't lock site accounts down to user level like cpanel/WHM as there is no 100% user isolation between site accounts on Centmin Mod.

    Pure-ftpd virtual ftp users only isolates ftp Pure-FTPD Virtual FTP Users but isn't fully jailed like cpanel/WHM as Centmin Mod is not made or setup for shared hosting like cpanel/WHM but more for usage by trusted user (myself/yourself).

    Work is/has been done on jailed individual users for each nginx vhost but no way ready yet see Previews - Jailed / chrooted SFTP & SSH user Nginx vhost menu | Centmin Mod Community

    you can figure that out via ssh command line anyway via nginx and php-fpm logs etc

    To troubleshoot Nginx and PHP-FPM issues you'd want to check the domain site's vhost access.log and error.log logs located within directory at /home/nginx/domains/yourdomain.com/logs. You can see a full overview at centminmod.com/configfiles.html

    FAQ item 19 has more info on all Centmin Mod relevant log files locations and how to use tail command to view a sample of the entries.

    Tools and commands you will want to read up on and learn for basic system admin tasks and troubleshooting.
    Notes: