Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 21:01:04

Author Topic: Merubah FQDN hostname  (Read 13173 times)

0 Members and 1 Guest are viewing this topic.

Offline hamzun

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
    • Tempat Gadai BPKB Resmi
Merubah FQDN hostname
« on: 2016-05-18, 11:51:09 »
Untuk merubah hostname dimana ya?
/etc/sysconfig/network: Permission denied

Code: [Select]
[root@sellerbest ~]# sh /script/sysinfo -y
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016051704
   - Web: hiawatha-10.2.0-f.6.mr.el6.i686
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) i686
   - Hostname: sellerbest
C. Services:
   1. MySQL: MariaDB-server-10.0.25-1.el6.i686
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el6.i686
      - Multiple:
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-1.ius.el6
        * php55m-5.5.35-1.ius.el6
        * php56m-5.6.21-1.ius.el6
      - Used: php54m
   3. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.10.0-1.el6.ngx.i386
     - Httpd: httpd-2.2.31-1.mr.el6.i386
       - PHP Type: php-fpm_event
   4. WebCache: squid
     - ATS: --uninstalled--
     - Squid: squid-3.1.23-9.el6.i686
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: nsd-4.1.9-1.mr.el6.i686
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
      - spam: spamassassin
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           750        486        264         27         32        298
   -/+ buffers/cache:        155        594
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        15G  2.4G   12G  17% /


*** Process Time: 00:00:01:40.100463 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

[root@sellerbest ~]# /etc/sysconfig/network
-bash: /etc/sysconfig/network: Permission denied
[root@sellerbest ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Merubah FQDN hostname
« Reply #1 on: 2016-05-18, 11:58:35 »
/etc/sysconfig/network itu adalah file. Anda harus edit pakai vi atau nano. Atau edit melalui 'file manager' di panel.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hamzun

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
    • Tempat Gadai BPKB Resmi
Re: Merubah FQDN hostname
« Reply #2 on: 2016-05-18, 12:18:07 »
di folder apa pak sy tidak menemukan etc/sysconfig/network

Offline noob

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • KombatHost
Re: Merubah FQDN hostname
« Reply #3 on: 2016-05-18, 12:49:01 »
di folder apa pak sy tidak menemukan etc/sysconfig/network
coba ke folder "/etc/sysconfig" lalu cari file dengan nama "network", edit file tsb (bisa pake vi, vim, nano, dll yang familiar), lalu tambahkan:
Code: [Select]
HOSTNAME="subdomain.namadomainkamu.com"
« Last Edit: 2016-05-18, 12:50:06 by MRatWork »
http://kombathost.com | Your ultimate webhosting

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Merubah FQDN hostname
« Reply #4 on: 2016-05-18, 12:49:37 »
Ini contoh isi:
Code: [Select]
> cat /etc/sysconfig/network
NETWORKING="yes"
GATEWAYDEV="venet0"
NETWORKING_IPV6="yes"
IPV6_DEFAULTDEV="venet0"
HOSTNAME="xl1.mratwork.com"

Jika anda pakai VPS yang OpenVZ maka perubahan (biasanya) hostname dilakukan di VPS panel terkait dan kemudian reboot.

Jika anda lakukan langsung file '/etc/sysconfig/network' maka setelah reboot nilai hostname akan kembali ke semula.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hamzun

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
    • Tempat Gadai BPKB Resmi
Re: Merubah FQDN hostname
« Reply #5 on: 2016-05-18, 12:54:42 »
saya tdk menmukan folder "etc"

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Merubah FQDN hostname
« Reply #6 on: 2016-05-18, 13:37:34 »
Jika OS anda tidak directory/folder '/etc' ini adalah ajaib jika VPS anda bisa berjalan dengan baik.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hamzun

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
    • Tempat Gadai BPKB Resmi
Re: Merubah FQDN hostname
« Reply #7 on: 2016-05-18, 13:48:59 »
Jika OS anda tidak directory/folder '/etc' ini adalah ajaib jika VPS anda bisa berjalan dengan baik.

Ketemu pak filenya ada di localhost/filemanager
cuma ada dua baris di dalam file
Quote
NETWORKING=yes
HOSTNAME=ns1.sellerbest.top

telah saya edit tp tetap domaintdk bisa di akses

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Merubah FQDN hostname
« Reply #8 on: 2016-05-18, 14:23:18 »
hostname cuma untuk 'patokan' pada mail server dan apache. Diamya tidak terkait dengan domain yang setup.

Jika sudah diganti hostnamenya, lakukan reboot dan jalankan kembali 'sh /script/cleanup'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hamzun

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
    • Tempat Gadai BPKB Resmi
Re: Merubah FQDN hostname
« Reply #9 on: 2016-05-18, 14:40:04 »
Pak setelah di "rebbot" dan "sh /script/cleanup"
muncul eror
Quote
Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 8 of /etc/httpd/conf/httpd.clude directory '/etc/httpd/conf.modules.d' not found
                                                           [FAILED]
-------------------------------------------------------------------


*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

- For help, type '/script/restart-mail [--help|-h]'
-------------------------------------------------------------------

supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
Stopping pure-ftpd:                                        [  OK  ]
Starting pure-ftpd:                                        [  OK  ]
-------------------------------------------------------------------

supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
Stopping kloxo-phpcgi:                                     [  OK  ]
Starting kloxo-phpcgi ('php54s' in 'fpm' mode):            [  OK  ]
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
Stopping kloxo-hiawatha: supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
                                                           [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
-------------------------------------------------------------------
*** Restart services - END ***


*** Process Time: 00:00:02:35.155287 (dd:hh:mm:ss:xxxxxx) ***

[root@sellerbest ~]# supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Merubah FQDN hostname
« Reply #10 on: 2016-05-18, 15:06:17 »
Yakinkan hostname sudah benar dengan menjalankan 'hostname; hostname -s'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hamzun

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
    • Tempat Gadai BPKB Resmi
Re: Merubah FQDN hostname
« Reply #11 on: 2016-05-18, 15:32:01 »
Failed httpd/conf.modules.d

Quote
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 8 of /etc/httpd/conf/httpd.clude directory '/etc/httpd/conf.modules.d' not found
                                                           [FAILED]
-------------------------------------------------------------------


*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

ini sdh benar blm pak "hostname; hostname -s"?

Quote
[root@ns1 ~]# hostname; hostname -s
ns1.sellerbest.top
ns1
[root@ns1 ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Merubah FQDN hostname
« Reply #12 on: 2016-05-18, 15:35:00 »
Dari panel, di 'swith program', ubah 'web' ke lighttpd dan kemudian kembali ke 'nginx-proxy' dengan enable 'apache 2.4'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hamzun

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
    • Tempat Gadai BPKB Resmi
Re: Merubah FQDN hostname
« Reply #13 on: 2016-05-18, 16:01:41 »
failed hhtpd sudah ilang
error ini masih ada:
Quote
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Merubah FQDN hostname
« Reply #14 on: 2016-05-18, 16:31:47 »
Coba lakukan 'yum reinstall *-toaster bogofilter -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.028 seconds with 18 queries.

web stats analysis