Join the community today
Register Now

Hello to All

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

  1. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:52 AM
    Mainline
    10.2
    You should change that, recommended on the first time you login to your server.

     
  2. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 AM
    Thanks @RoldanLT , can that be any name? e.g random.anyword.net?
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:52 AM
    Mainline
    10.2
    random.yourdomain.com
    You should also point the correct IP and hostname to your DNS manager.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah need to change it, step 1 of Getting Started guide outlines the changes needed
     
  5. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 AM
    other way to change your hostname for reference:

    sysctl kernel.hostname="yournewhostname"
     
  6. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 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

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  8. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 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

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  10. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 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

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    /home/nginx/domains/demodomain.com is demo site nothing more - can be ignored :)
     
  12. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 AM
    can it be deleted for good? or i'll just ignore it?
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  14. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 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

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  16. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 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

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  18. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 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

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    8:22 AM
  20. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:52 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