MRatWork Forum by Mustafa Ramadhan - Merubah FQDN hostname

Sponsor:
Server and Web Integrator
Link:
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:

MRatWork Forum | Please login or register. | 2017-11-07, 21:27:34

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Merubah FQDN hostname

« previous next »

- Print

Pages: [1] 2 3 Go Down

### Author Topic: Merubah FQDN hostname (Read 4613 times)

0 Members and 2 Guests are viewing this topic.

#### hamzun

- Valuable Member
- Posts: 56
- Karma: +0/-0

##### 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 ~]#

Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### 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.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### hamzun

- Valuable Member
- Posts: 56
- Karma: +0/-0

##### Re: Merubah FQDN hostname

« Reply #2 on: 2016-05-18, 12:18:07 »
di folder apa pak sy tidak menemukan etc/sysconfig/network
Logged

#### noob

- Valuable Member
- Posts: 98
- Karma: +0/-0
- Gender:

##### Re: Merubah FQDN hostname

« Reply #3 on: 2016-05-18, 12:49:01 »
Quote from: hamzun on 2016-05-18, 12:18:07

> 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 »
Logged
http://kombathost.com | Your ultimate webhosting

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### 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.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### hamzun

- Valuable Member
- Posts: 56
- Karma: +0/-0

##### Re: Merubah FQDN hostname

« Reply #5 on: 2016-05-18, 12:54:42 »
saya tdk menmukan folder "etc"
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### 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.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### hamzun

- Valuable Member
- Posts: 56
- Karma: +0/-0

##### Re: Merubah FQDN hostname

« Reply #7 on: 2016-05-18, 13:48:59 »
Quote from: MRatWork on 2016-05-18, 13:37:34

> 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
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### 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'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### hamzun

- Valuable Member
- Posts: 56
- Karma: +0/-0

##### 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

Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: Merubah FQDN hostname

« Reply #10 on: 2016-05-18, 15:06:17 »
Yakinkan hostname sudah benar dengan menjalankan 'hostname; hostname -s'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### hamzun

- Valuable Member
- Posts: 56
- Karma: +0/-0

##### 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 ~]#

Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### 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'
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### hamzun

- Valuable Member
- Posts: 56
- Karma: +0/-0

##### 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

Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: Merubah FQDN hostname

« Reply #14 on: 2016-05-18, 16:31:47 »
Coba lakukan 'yum reinstall *-toaster bogofilter -y'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

- Print

Pages: [1] 2 3 Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Merubah FQDN hostname

Top 4 Global Search Engines: Google Bing Baidu Yahoo

..:: Monetize Your Website with ylliXmedia ::.. ..:: Online Advertising that Sale Anything with ylliXmedia ::..

- Design By SMFSimple.com
- SMF 2.0.14 | SMF © 2017, Simple Machines

Page created in 0.041 seconds with 17 queries.

Mirror created by MasterkinG32.CoM