MRatWork Forum by Mustafa Ramadhan

Language Specific Discussions => Indonesia Users => Topic started by: jamalrahmat on 2016-05-29, 06:19:51

Title: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: jamalrahmat 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?
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork 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'.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: jamalrahmat 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 :)
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx 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 :(
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx 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]
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork 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'.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx on 2016-06-01, 05:09:52
sudah menggunakan versi terakhir. terus sy coba semuanya tetap tdk bisa. tetap muncul pesan kesalahan yg sama.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork on 2016-06-01, 05:22:53
Anda sudah tambahkan domain?.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx on 2016-06-01, 05:26:08
server lawas. domainnya ada beberapa
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx 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
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork on 2016-06-01, 08:18:15
Coba update KLoxo-MR (jangan lupa jalankan 'sh /script/cleanup').
Infokan 'sh /script/sysinfo'.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx 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)
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork 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'.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx 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
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork on 2016-06-01, 10:41:42
COba saja 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: intelinside on 2016-06-02, 08:15:40
masih error php-fpm nya

Code: [Select]
[root@hdfdi ~]# sh /script/restart-web -y

Stopping php-fpm (PHP Used):                               [FAILED]
Starting php-fpm (PHP Used): [02-Jun-2016 01:30:37] ERROR: Unable to globalize '/opt/configs/php-fpm/conf/php/*.conf' (ret=2) from /etc/php-fpm.conf at line 18.
[02-Jun-2016 01:30:37] ERROR: failed to load configuration file '/etc/php-fpm.conf'
[02-Jun-2016 01:30:37] ERROR: FPM initialization failed
                                                           [FAILED]
-------------------------------------------------------------------
dir: cannot access /opt/php*m/usr/bin/php: No such file or directory
dir: cannot access /opt/php*m/usr/bin/php: No such file or directory

Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork on 2016-06-02, 10:09:02
Jika pakai update terakhir maka akan update phpm-fpm init jika jalankan cleanup atau fixphp.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx on 2016-06-03, 07:58:33
sekarang jadi sering mati sendiri. gak sampai sehari web mati. gejalanya http dan php masih hidup tapi databasenya mati dan tdk bisa masuk kloxo admin.
setelah direboot bisa jalan lagi. udah bbrp kali selalu begini (mati terus reboot manual dari ssh) dari sejak kmaren berhasil mbenerin php-fpm (upgrade) itu .
mohon solusinya...
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork on 2016-06-03, 08:00:28
Kalau itu terkait database, coba periksa isi file .err di /var/lib/mysql. Bisa jadi karena ada database yang corrupt.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx on 2016-06-03, 08:24:53
tdk ketemu file tsb
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork on 2016-06-03, 08:27:49
Coba setting cron dimana setiap hari menjalankan 'sh /script/restart-all -y'.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx on 2016-06-03, 09:28:48
masalahnya websitenya tetep gak bisa up kalau pakai script restart-all . harus reboot baru jalan.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: MRatWork on 2016-06-03, 09:41:28
Apa pakai 'restart-all -y' atau tanpa '-y'?.
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: itx on 2016-06-05, 23:15:49
sudah pakai -y
sekarang malah gabisa samasekali. mucul error 500 terus. udah reboot, switch program, ganti versi php ttp gabisa up
Title: Re: Apache dan PHP FPM Failed (Kloxo-MR 7 Fresh Install)
Post by: amitkumar on 2016-06-07, 12:05:03
Try to use secondry php ..

it will 100% solve your problem.. :)