MRatWork Forum by Mustafa Ramadhan - Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

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:01:01

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« previous next »

- Print

Pages: [1] 2 Go Down

### Author Topic: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install) (Read 3498 times)

0 Members and 1 Guest are viewing this topic.

#### jamalrahmat

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

##### Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« on: 2016-05-29, 06:19:51 »
Selamat siang Pak Mustafa...
Entah kenapa setiap kali mencoba Kloxo-MR 7 fresh install pasti Apache dan PHP FPM-nya failed. Padahal kalau dulu baik-baik saja.
Saya sertakan beberapa screenshot:
Instalasi:
http://prnt.sc/b9orcl
Setelah instalasi beres, setting PHP 7 dan nginx-proxy lalu restart services:
http://prnt.sc/b9os71
Berikut sysinfo:
Code: [Select]

    A. Control Panel:
       - Kloxo-MR: 7.0.0.b-2016052507
       - Web: hiawatha-10.2.0-f.6.mr.el6.x86_64
       - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
    B. Plateform:
       - OS: CentOS release 6.8 (Final) x86_64
       - Hostname: s2.hostingbanua.com
    C. Services:
       1. MySQL: MariaDB-server-10.0.25-1.el6.x86_64
       2. PHP:
          - Branch: php70w-cli-7.0.6-1.w6.x86_64
          - Used: --Use PHP Branch--
       3. Web Used: nginxproxy
         - Hiawatha: --unused--
         - Lighttpd: --uninstalled--
         - Nginx: nginx-1.11.0-1.el6.ngx.x86_64
         - Httpd: httpd-2.2.31-1.mr.el6.x86_64
           - PHP Type: php-fpm_event
       4. WebCache: none
         - ATS: --uninstalled--
         - Squid: --uninstalled--
         - Varnish: --uninstalled--
       5. Dns: bind
         - Bind: bind-9.9.7-1.mr.el6.x86_64
         - DJBDns: --uninstalled--
         - NSD: --uninstalled--
         - PowerDNS: --uninstalled--
         - Yadifa: --uninstalled--
       6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
          - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
          - spam: bogofilter
    D. Memory:
                    total       used       free     shared    buffers     cached
       Mem:          1024        211        812          4          0         46
       -/+ buffers/cache:        165        858
       Swap:          512          0        512
    E. Disk Space:
       Filesystem      Size  Used Avail Use% Mounted on
       /dev/simfs       75G  1.9G   74G   3% /

Yang sudah dilakukan:
- Cleanup
- Reboot
Setelah reboot, coba restart-services NGINX fail dan PHP FPM masih fail.
Code: [Select]

    *** Process for PHP-FPM service ***
      - Process: restart
    Stopping php-fpm:                                          [FAILED]
    Starting php-fpm: [29-May-2016 00:30:06] ERROR: Unable to globalize '/opt/configs/php-fpm/conf/php/*.conf' (ret=2) from /etc/php-fpm.conf at line 18.
    [29-May-2016 00:30:06] ERROR: failed to load configuration file '/etc/php-fpm.conf'
    [29-May-2016 00:30:06] ERROR: FPM initialization failed
                                                               [FAILED]

Code: [Select]

    *** Process for NGINX service ***
      - Process: restart
    Stopping nginx:                                            [FAILED]
    Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] still could not bind()
                                                               [FAILED]

Apache juga fail kalau di stop Pak, namun kalau di start bisa sih.
Code: [Select]

    service httpd stop

Untuk nginx, biasanya kalau saya kill manual dan start kembali beres sih.
Tapi kalau PHP-FPM, saya tidak tahu.
Salah dimana ya Pak kira-kira?
Logged

#### MRatWork

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

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #1 on: 2016-05-29, 08:27:50 »
1. Coba reinstall apache/httpd 2.2 dengan 'yum reinstall httpd* mod_* -y' dan kemudian jalankan 'sh /script/restart-web -y'. Saya memang menemukan 'keanehan' ini
2. dan atau ubah httpd 2.4 dengan trick, ubah ke 'hiawatha' ('enable apache 2.4' jangan dipilih) dan kemudian pilih 'nginx-proxy' yang disertai dipilih 'enable apache 2.4'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### jamalrahmat

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

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #2 on: 2016-05-29, 08:37:06 »
Quote

> Coba reinstall apache/httpd 2.2 dengan 'yum reinstall httpd* mod_* -y' dan kemudian jalankan 'sh /script/restart-web -y'. Saya memang menemukan 'keanehan' ini

Mantap Pak...
Yang merah ganti jadi IJO semua.
Status OK.
Terima kasih atas bantuannya
Logged

#### itx

- Junior Member
- Posts: 41
- Karma: +0/-0

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #3 on: 2016-05-31, 17:49:30 »
masalah saya persis sama dengan di atas. php-fpm nya error seperti di atas. cuman sy update, bukan clean install.
tapi saya coba kedua solusi tsb tetap saja error
skrg website sy down semua
Logged

#### itx

- Junior Member
- Posts: 41
- Karma: +0/-0

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #4 on: 2016-05-31, 18:04:54 »
kemudian saya coba membuat direktori /opt/configs/php-fpm/conf/php/ trus sekarang hasilnya selalu keluar ini:
Code: [Select]

    *** Process for PHP-FPM service ***
      - Process: restart
    Stopping php-fpm (PHP Used):                               [FAILED]
    Starting php-fpm (PHP Used): [31-May-2016 23:10:42] WARNING: Nothing matches the
             include pattern '/opt/configs/php-fpm/conf/php/*.conf' from /etc/php-fpm.conf a
            t line 18.
    [31-May-2016 23:10:42] ERROR: No pool defined. at least one pool section must be
             specified in config file
    [31-May-2016 23:10:42] ERROR: failed to post process the configuration
    [31-May-2016 23:10:42] ERROR: FPM initialization failed
                                                               [FAILED]

Logged

#### MRatWork

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

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #5 on: 2016-06-01, 03:49:43 »
Lakukan ke update terakhir (kloxomr7-7.0.0.b-2016053003). Kemudian lakukan 'sh /script/cleanup'. Jika perlu lakukan 'sh /script/set-php-fpm; sh /script/fixphp; sh /script/restart-web -y'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### itx

- Junior Member
- Posts: 41
- Karma: +0/-0

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #6 on: 2016-06-01, 05:09:52 »
sudah menggunakan versi terakhir. terus sy coba semuanya tetap tdk bisa. tetap muncul pesan kesalahan yg sama.
Logged

#### MRatWork

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

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #7 on: 2016-06-01, 05:22:53 »
Anda sudah tambahkan domain?.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### itx

- Junior Member
- Posts: 41
- Karma: +0/-0

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #8 on: 2016-06-01, 05:26:08 »
server lawas. domainnya ada beberapa
Logged

#### itx

- Junior Member
- Posts: 41
- Karma: +0/-0

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #9 on: 2016-06-01, 05:46:03 »
setelah saya ganti PHP branch menjadi php_(as5.3.3) lalu remove php-fpm, instal php-fpm, pesan kesalahan itu hilang (bisa OK semua). tapi tetap internal server error di halaman website.
setelah reboot .. errornya malah balik lagi .... bingung
Logged

#### MRatWork

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

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #10 on: 2016-06-01, 08:18:15 »
Coba update KLoxo-MR (jangan lupa jalankan 'sh /script/cleanup').
Infokan 'sh /script/sysinfo'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### itx

- Junior Member
- Posts: 41
- Karma: +0/-0

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #11 on: 2016-06-01, 09:05:26 »
sudah terupdate dan cleanup dari kemarin. justru ketika sy habis update lalu muncul masalah sprti itu.
Code: [Select]

    A. Control Panel:
       - Kloxo-MR: 7.0.0.b-2016053003
       - Web: hiawatha-10.2.0-f.7.mr.el6.x86_64
       - PHP: php53s-5.3.29-1.ius.el6 (fpm mode)
    B. Plateform:
       - OS: CentOS release 6.8 (Final) x86_64
       - Hostname: slamet.sambadafarm.com
    C. Services:
       1. MySQL: mysql55-5.5.49-1.ius.el6.x86_64
       2. PHP:
          - Branch: php-cli-5.3.3-47.el6.x86_64
          - Used: --Use PHP Branch--
       3. Web Used: nginxproxy
         - Hiawatha: --unused--
         - Lighttpd: --uninstalled--
         - Nginx: nginx-1.11.1-1.el6.ngx.x86_64
         - Httpd: httpd24u-2.4.20-1.ius.el6.x86_64
           - PHP Type: php-fpm_event
       4. WebCache: none
         - ATS: --uninstalled--
         - Squid: --uninstalled--
         - Varnish: --uninstalled--
       5. Dns: nsd
         - Bind: --uninstalled--
         - DJBDns: --uninstalled--
         - NSD: nsd-4.1.9-1.mr.el6.x86_64
         - PowerDNS: --uninstalled--
         - Yadifa: --uninstalled--
       6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
          - pop3/imap4: courier-imap-toaster-4.1.2-1.3.19.mr.el6.x86_64
          - spam: none
    D. Memory:
                    total       used       free     shared    buffers     cached
       Mem:          3072        717       2354         76          0        533
       -/+ buffers/cache:        184       2887
       Swap:            0          0          0
    E. Disk Space:
       Filesystem      Size  Used Avail Use% Mounted on
       simfs            75G   42G   34G  56% /

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

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

Logged

#### MRatWork

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

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #12 on: 2016-06-01, 09:54:49 »
Lakukan update sehingga jika menjalankan sysinfo akan terlihat 'Kloxo-MR: 7.0.0.b-2016060103' atau lebih tinggi.
Lakukan dengan 'yum clean all; yum update -y' dan kemudian jalankan 'sh /script/cleanup'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### itx

- Junior Member
- Posts: 41
- Karma: +0/-0

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #13 on: 2016-06-01, 10:13:21 »
ok om. trimakasih. overall udah jalan websitenya. tapi kalau di restart-web pesan kesalahannya masih muncul persis yang tadi.
dan masih ada satu website berbasis prestashop yg masih error 500
Logged

#### MRatWork

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

##### Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

« Reply #14 on: 2016-06-01, 10:41:42 »
COba saja 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

- Print

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

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)

Top 4 Global Search Engines: Google Bing Baidu Yahoo

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

Page created in 0.046 seconds with 17 queries.

Mirror created by MasterkinG32.CoM