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-19, 16:49:53

Author Topic: Hasil PHPINFO berbeda dengan isian di Advanced PHP Config  (Read 13051 times)

0 Members and 1 Guest are viewing this topic.

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Dear para senior.

mau tanya neh, napa hasil informasi php di phpinfo.php berbeda dengan isian saya di Advanced PHP Config. Padahal sudah saya ubah2 tapi isinya tetap. Bahkan saya lihat hasil di .htaccess juga sudah berubah. tapi koq ya tetap tampilan di phpinfo tidak kunjung berubah.

Kenapa ya?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline xphones

  • Junior Member
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #1 on: 2013-01-30, 17:50:43 »
Mungkin tergantung versi php yang digunakan.
Kalau php 5.4 sudah banyak fitur yang sudah dihilangkan misal safe mode dll
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #2 on: 2013-01-30, 18:18:48 »
Quote from: "xphones"
Mungkin tergantung versi php yang digunakan.
Kalau php 5.4 sudah banyak fitur yang sudah dihilangkan misal safe mode dll

pake php53u.

di htaccess spt ini:
Code: [Select]
###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
### MR -- Remove # in front of 'Addhandler' if running php 5.2 code on php 5.3+ system
#AddHandler x-httpd-php52 .php

<Ifmodule mod_php5.c>
php_value upload_max_filesize 2M
php_value max_execution_time 90
php_value max_input_time 60
php_value memory_limit 384M
php_value post_max_size 32M
php_flag register_globals off
php_flag display_errors off
php_flag file_uploads on
php_flag log_errors on
php_flag output_buffering off
php_flag register_argc_argv on
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
php_flag mysql.allow_persistent off
php_flag register_long_arrays on
php_flag allow_url_fopen on
php_flag cgi.force_redirect on
php_flag enable_dl on
</Ifmodule>

###End Kloxo PHP config Area

tapi kalau saya cek di phpinfo.php hasilnya beda. spt di attach.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #3 on: 2013-01-30, 18:29:58 »
<Ifmodule mod_php5.c> hanya berlaku jika anda pakai 'keluarga' mod_php (mod_php/_ruid2/_itk).

Suphp/fcgid/php-fpm tidak jalan.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #4 on: 2013-01-30, 18:43:19 »
Quote from: "MRatWork"
<Ifmodule mod_php5.c> hanya berlaku jika anda pakai 'keluarga' mod_php (mod_php/_ruid2/_itk).

Suphp/fcgid/php-fpm tidak jalan.

woo.. kentara newbienya  :roll: . Lantas bagaimana cara mengatasi problem spt ini di php-fpm event?

Code: [Select]
[Wed Jan 30 13:56:40 2013] [error] [client 125.164.133.54] FastCGI: server "/home/user/domain/facealumni.com.0fake" stderr: PHP message: PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 3466346 bytes) in /home/user/domain/includes/bootstrap.inc on line 856, referer: http://domain.com/admin/settings/site-maintenance
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #5 on: 2013-01-30, 18:48:03 »
Copy /home/php-fpm/tpl/php53-fpm-pool.conf.tpl ke /home/php-fpm/tpl/custom.php53-fpm-pool.conf.tpl

Kemudian ganti isi 'php_admin_value[memory_limit] = 64M' ke nilai yang lebih tinggi. Kemudian, jalankan 'sh /script/fixweb; service php-fpm restart'. Ini tentunya dengan asumsi anda pakai php-fpm_worker/_event pada php-type di 'webserver config'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #6 on: 2013-01-31, 07:42:37 »
Quote from: "MRatWork"
Copy /home/php-fpm/tpl/php53-fpm-pool.conf.tpl ke /home/php-fpm/tpl/custom.php53-fpm-pool.conf.tpl

Kemudian ganti isi 'php_admin_value[memory_limit] = 64M' ke nilai yang lebih tinggi. Kemudian, jalankan 'sh /script/fixweb; service php-fpm restart'. Ini tentunya dengan asumsi anda pakai php-fpm_worker/_event pada php-type di 'webserver config'.

Makasih banyak. sudah saya coba dan berhasil.
Maaf tanya lagi, bagaimana settingan php.ini di php-fpm untuk client yang berbeda-beda?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #7 on: 2013-01-31, 09:21:10 »
Sejauh apa isi php.ini yang berbeda-beda itu?.

Nilai 'php_admin_value[memory_limit]' akan menggantikan nilai 'memory_limit' pada php.ini.

Hanya suphp yang pakai php.ini sendiri-sendiri untuk setiap user. Yang lain selalu pakai /etc/php.ini. Syukurnya di php-fpm, nilai-nilai tertentu bisa diubah melalui 'php_admin_value[]' itu.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #8 on: 2013-09-15, 13:35:35 »
menyambung thread lama

setelah saya ganti ke PHP-FPM, muncul error log spt ini:
Code: [Select]
[Sun Sep 15 08:30:55 2013] [error] [client 202.67.41.24] FastCGI: server "/home/xxxx/xxxx.com/xxxx.com.0fake" stderr: PHP message: PHP Notice:  Undefined variable: lightboxPlusOptions in /home/xxxx/xxxx.com/wp-content/plugins/lightbox-plus/lightboxplus.php on line 203, referer: http://suryo.malhikdua.com/2010/08/07/maa-an-najah/
[Sun Sep 15 08:30:55 2013] [error] [client 202.67.41.24] FastCGI: server "/home/xxxx/xxxx.com/malhikdua.com.0fake" stderr: PHP message: PHP Notice:  Undefined variable: post_id in /home/xxxx/xxxx.com/wp-content/plugins/tinymce-signature/tinymce-signature.php on line 148, referer: http://suryo.malhikdua.com/2010/08/07/maa-an-najah/

Apakah ada yg settingan yang salah di PHP-FPM atau plugin WP yg tidak support?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #9 on: 2013-09-15, 13:58:24 »
Wrong post! :P
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #10 on: 2013-09-15, 14:11:53 »
Quote from: "redpages"
menyambung thread lama

setelah saya ganti ke PHP-FPM, muncul error log spt ini:
Code: [Select]
[Sun Sep 15 08:30:55 2013] [error] [client 202.67.41.24] FastCGI: server "/home/xxxx/xxxx.com/xxxx.com.0fake" stderr: PHP message: PHP Notice:  Undefined variable: lightboxPlusOptions in /home/xxxx/xxxx.com/wp-content/plugins/lightbox-plus/lightboxplus.php on line 203, referer: http://suryo.malhikdua.com/2010/08/07/maa-an-najah/
[Sun Sep 15 08:30:55 2013] [error] [client 202.67.41.24] FastCGI: server "/home/xxxx/xxxx.com/malhikdua.com.0fake" stderr: PHP message: PHP Notice:  Undefined variable: post_id in /home/xxxx/xxxx.com/wp-content/plugins/tinymce-signature/tinymce-signature.php on line 148, referer: http://suryo.malhikdua.com/2010/08/07/maa-an-najah/

Apakah ada yg settingan yang salah di PHP-FPM atau plugin WP yg tidak support?
Coba saja dulu dengan:

1. Update ke versi lebih baru dengan 'yum clean all; yum update'
2. Cleanup system anda dengan 'sh /script/cleanup'
3. Untuk lebih meyakinkan, jalankan 'sh /script/restart'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #11 on: 2013-09-17, 20:51:53 »
Quote from: "MRatWork"
Quote from: "redpages"
menyambung thread lama

setelah saya ganti ke PHP-FPM, muncul error log spt ini:
Code: [Select]
[Sun Sep 15 08:30:55 2013] [error] [client 202.67.41.24] FastCGI: server "/home/xxxx/xxxx.com/xxxx.com.0fake" stderr: PHP message: PHP Notice:  Undefined variable: lightboxPlusOptions in /home/xxxx/xxxx.com/wp-content/plugins/lightbox-plus/lightboxplus.php on line 203, referer: http://suryo.malhikdua.com/2010/08/07/maa-an-najah/
[Sun Sep 15 08:30:55 2013] [error] [client 202.67.41.24] FastCGI: server "/home/xxxx/xxxx.com/malhikdua.com.0fake" stderr: PHP message: PHP Notice:  Undefined variable: post_id in /home/xxxx/xxxx.com/wp-content/plugins/tinymce-signature/tinymce-signature.php on line 148, referer: http://suryo.malhikdua.com/2010/08/07/maa-an-najah/

Apakah ada yg settingan yang salah di PHP-FPM atau plugin WP yg tidak support?
Coba saja dulu dengan:

1. Update ke versi lebih baru dengan 'yum clean all; yum update'
2. Cleanup system anda dengan 'sh /script/cleanup'
3. Untuk lebih meyakinkan, jalankan 'sh /script/restart'.

sudah. saat ke tahap 3 ada error spt ini:
Code: [Select]
[root@server30 ~]# sh /script/restart
Stopping kloxo:
Waiting for the process to die.....
Stopped kloxo

Starting kloxo: /etc/init.d/kloxo: line 57: lxphp.exe: command not found
127
/etc/init.d/kloxo: line 68: lxphp.exe: command not found
/etc/init.d/kloxo: line 70: /usr/local/lxlabs/ext/lxlighttpd/sbin/kloxo.httpd: No such file or directory
/etc/init.d/kloxo: line 85: lxphp.exe: command not found
Started kloxo
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #12 on: 2013-09-17, 21:17:53 »
Infokan hasil 'cat /usr/local/lxlabs/kloxo/bin/kloxoversion'.

Informasi yang anda sebutkan mengarah pada lxphp dan lxlighttpd. Sedangkan Kloxo-MR yang akhir-akhir sudah diganti dengan php52s dan hiawatha.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #13 on: 2013-09-17, 21:33:05 »
Quote from: "MRatWork"
Infokan hasil 'cat /usr/local/lxlabs/kloxo/bin/kloxoversion'.

Informasi yang anda sebutkan mengarah pada lxphp dan lxlighttpd. Sedangkan Kloxo-MR yang akhir-akhir sudah diganti dengan php52s dan hiawatha.

saya baru saja reinstall kloxo-MR.
hasilnya : 6.5.0.f-2013091704

semoga tidak terjadi masalah
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Hasil PHPINFO berbeda dengan isian di Advanced PHP Confi
« Reply #14 on: 2013-09-17, 21:48:57 »
httpd ga bisa start. ada error

Code: [Select]
Starting httpd: httpd: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.d/rpaf.conf: Cannot load /etc/httpd/modules/mod_rpaf-2.0.so into server: /etc/httpd/modules/mod_rpaf-2.0.so: cannot openshared object file: No such file or directory

Note: saya pake nginxproxi, php53u, ioncube, xcache
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


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

Page created in 0.047 seconds with 19 queries.

web stats analysis