MRatWork Forum by Mustafa Ramadhan
Language Specific Discussions => Indonesia Users => Topic started 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:
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.
*** 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]
*** 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.
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?
-
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'.
-
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 :)
-
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 :(
-
kemudian saya coba membuat direktori /opt/configs/php-fpm/conf/php/ trus sekarang hasilnya selalu keluar ini:
*** 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]
-
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'.
-
sudah menggunakan versi terakhir. terus sy coba semuanya tetap tdk bisa. tetap muncul pesan kesalahan yg sama.
-
Anda sudah tambahkan domain?.
-
server lawas. domainnya ada beberapa
-
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
-
Coba update KLoxo-MR (jangan lupa jalankan 'sh /script/cleanup').
Infokan 'sh /script/sysinfo'.
-
sudah terupdate dan cleanup dari kemarin. justru ketika sy habis update lalu muncul masalah sprti itu.
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)
-
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'.
-
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
-
COba saja 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'.
-
masih error php-fpm nya
[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]'
-
Jika pakai update terakhir maka akan update phpm-fpm init jika jalankan cleanup atau fixphp.
-
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...
-
Kalau itu terkait database, coba periksa isi file .err di /var/lib/mysql. Bisa jadi karena ada database yang corrupt.
-
tdk ketemu file tsb
-
Coba setting cron dimana setiap hari menjalankan 'sh /script/restart-all -y'.
-
masalahnya websitenya tetep gak bisa up kalau pakai script restart-all . harus reboot baru jalan.
-
Apa pakai 'restart-all -y' atau tanpa '-y'?.
-
sudah pakai -y
sekarang malah gabisa samasekali. mucul error 500 terus. udah reboot, switch program, ganti versi php ttp gabisa up
-
Try to use secondry php ..
it will 100% solve your problem.. :)