Posted by: Hartoto | 06/03/2013

Cara Simpel Atasi Masalah ISPConfig

Hartoto – Beberapa hari lalu saya mengalami masalah dalam implementasi ISPConfig dimana ISPConfig gagal membuat user dan domain meski di database sukses. Awalnya saya curiga ada masalah koneksi database atau malah databasenya corrupt. Tapi ternyata tidak, setelah “keluyuran ilmiah” di om google akhirnya saya dapat sedikit pencerahan bagaimana mendeteksi error ISPConfig. Saya akan share karena artikel tentang ISPConfig sangat terbatas di internet, apalagi yang berbahasa Indonesia.

Untuk mengecek apa penyebab ISPConfig tidak berjalan optimal, dapat melalui file ini:

/var/log/ispconfig/cron.log

Dari sini saya dapatkan errornya seperti di bawah ini:

PHP Warning:  exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 256
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 305
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 333
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 378
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 383
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 390
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 488
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 568
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 611
PHP Warning:  popen() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1769
PHP Warning:  popen() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1769
PHP Warning:  popen() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1769
PHP Warning:  popen() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1769
PHP Warning:  popen() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1769
PHP Warning:  popen() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1769
PHP Warning:  popen() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1769
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 996
PHP Warning:  shell_exec() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1050
PHP Warning:  system() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1145
PHP Warning:  system() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1264
PHP Warning:  system() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1266
PHP Warning:  system() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1309
PHP Warning:  system() has been disabled for security reasons in /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php on line 1325

Dari sini dapat kita ketahui bahwa fungsi exec, shell_exec, dan popen diblokir. dapatlah sudah. Itu berarti di setting php, fungsi ini di disable. Selanjutnya kita cek di:

/etc/php5/apache2/php.ini
cari: disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source

ndah itu biang keroknya, kasih saja tanda titik koma jadi seperti di bawah ini

disable_functions =
;exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source

kemudian restart service phpnya

service apache2 restart

OK. clear….


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: