Welcome to Centmin Mod Community
Register Now

Hello to All

Discussion in 'Introductions' started by quicksalad, May 31, 2015.

  1. rdan

    rdan Well-Known Member

    4,603
    1,110
    113
    May 25, 2014
    Ratings:
    +1,631
    Local Time:
    4:09 AM
    Mainline
    10.2
    You should change that, recommended on the first time you login to your server.
     
    • Informative Informative x 1
  2. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    Thanks @RoldanLT , can that be any name? e.g random.anyword.net?
     
  3. rdan

    rdan Well-Known Member

    4,603
    1,110
    113
    May 25, 2014
    Ratings:
    +1,631
    Local Time:
    4:09 AM
    Mainline
    10.2
    random.yourdomain.com
    You should also point the correct IP and hostname to your DNS manager.
     
    • Useful Useful x 1
  4. eva2000

    eva2000 Administrator Staff Member

    41,328
    9,274
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,229
    Local Time:
    6:09 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah need to change it, step 1 of Getting Started guide outlines the changes needed
     
  5. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    other way to change your hostname for reference:

    sysctl kernel.hostname="yournewhostname"
     
    • Informative Informative x 2
  6. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    im stucked, I cannot edit vhostconf servername, any idea guys?

    server {
    # listen 80;
    listen 80 default_server backlog=2048;
    server_name cannoteditthispart.com;
    root html;

    access_log /var/log/nginx/localhost.access.log main bu$
    error_log /var/log/nginx/localhost.error.log error;

    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;

    # limit_conn limit_per_ip 16;
    # ssi on;

    location / {
     
  7. eva2000

    eva2000 Administrator Staff Member

    41,328
    9,274
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,229
    Local Time:
    6:09 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    what do you mean you can not edit ?

    from Getting Started guide outlines you can use linux nano text editor
    That is for main hostname's vhost.conf

    For your created new domains via centmin.sh menu option 2
    Code:
    nano -w /usr/local/nginx/conf/conf.d/newdomain.com.conf
     
    • Like Like x 1
  8. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    thanks @eva2000 , I'm checking home folder via ftp, I'm seeing demodomain.com folder? What is that?
     
  9. eva2000

    eva2000 Administrator Staff Member

    41,328
    9,274
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,229
    Local Time:
    6:09 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  10. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    I'm seeing two folders at /home/nginx/domains/demodomain.com and /home/nginx/domains/mydomain.net , why is that?
     
  11. eva2000

    eva2000 Administrator Staff Member

    41,328
    9,274
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,229
    Local Time:
    6:09 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    /home/nginx/domains/demodomain.com is demo site nothing more - can be ignored :)
     
    • Informative Informative x 1
  12. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    can it be deleted for good? or i'll just ignore it?
     
  13. eva2000

    eva2000 Administrator Staff Member

    41,328
    9,274
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,229
    Local Time:
    6:09 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  14. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    I am seeing index.html below after I setup my domain ;) thanks @eva2000

    Welcome to mydomain.com. This index.html page can be removed.

    Useful Centmin Mod info and links to bookmark.

    Getting Started Guide - Getting Started with Centmin Mod
    Latest Centmin Mod version - Centmin Mod - Shell Menu based Nginx installer for CentOS servers
    Centmin Mod FAQ - Centmin Mod FAQ - Menu based Nginx installer
    Change Log - Change Log Centmin Mod - Menu based Nginx installer for CentOS servers
    Google+ Page latest news Announcements | Centmin Mod Community
    Google+ Community Forum Centmin Mod Community
    Centmin Mod Twitter https://twitter.com/centminmod
    Cheap VPS Hosting at Digitalocean

    Am I doing it right? What's next? Xenforo?
     
  15. eva2000

    eva2000 Administrator Staff Member

    41,328
    9,274
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,229
    Local Time:
    6:09 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yup that's correct, just delete the public/index.html and upload your xenforo files and do normal xenforo setup outlined in links in post at Hello to All | Centmin Mod Community and Nginx Rewrites for Xenforo Friendly Urls
     
    • Like Like x 1
  16. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    thanks @eva2000, I'm totally new with this. I had setup and run JohnCMS way back 2010 I think. As my memory says, it uses cPanel. There's an option where I can create mySQL DB prior to installation of the forum software. My question, where can I create DB for Xenforo using Centmin mod? Any link for reference?
     
  17. eva2000

    eva2000 Administrator Staff Member

    41,328
    9,274
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,229
    Local Time:
    6:09 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  18. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
    any idea why is that when I type droplet ip address it pointed to nginx test page, but when I type my domain name it pointed to index.html. I'd tried to ping my domain name it says the same ip on the droplet. Please advise. Thanks
     
  19. quicksalad

    quicksalad Member

    159
    9
    18
    May 31, 2015
    Ratings:
    +13
    Local Time:
    1:39 AM
  20. rdan

    rdan Well-Known Member

    4,603
    1,110
    113
    May 25, 2014
    Ratings:
    +1,631
    Local Time:
    4:09 AM
    Mainline
    10.2
    Here's my simple command to install.

    Code:
    rm -rf /usr/local/nginx/html/rol_phpmyadmin/
    wget -q -O /usr/local/nginx/html/phpmyadmin.zip https://github.com/phpmyadmin/phpmyadmin/archive/STABLE.zip
    cd /usr/local/nginx/html
    unzip -o phpmyadmin.zip
    rm -rf phpmyadmin.zip
    mv phpmyadmin-STABLE rol_phpmyadmin
    cd rol_phpmyadmin
    mv config.sample.inc.php config.inc.php
    BLOWFISH=$(openssl rand 30 -base64)
    sed -i "s|\['blowfish_secret'\] = ''|\['blowfish_secret'\] = '${BLOWFISH}'|g" config.inc.php
    
    Then just create a htpasswd protection on that directory.
     
    Last edited: Jun 5, 2015
    • Like Like x 2