500 Internal Server Error

Internal server error

The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@live.btrav.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Begitu isi notifikasi dari email , lihat jam.. Pheww 10 PM. ya bagaimana lagi, tugas penjaga server. Buka laptop colok modem dan ssh… T_T. Log adalah teman kita ketika ada error, kita bisa tahu dari dia. cek dulu dia sebelum berasumsi.
solusi dari pesan error itu biasanya berada di :

1. Fix permission 755 untuk folder and 644 untuk file

2. Periksa .httaccess

3. php.ini

nah ketika cek log eh ada
Premature end of script headers: index.php

untuk premature…. kompile lagi apache dan phpnya.
/scripts/easyapache
Plus kosongkan semua isi log.
echo > /usr/local/apache/logs/access_log
echo > /usr/local/apache/logs/error_log
echo > /usr/local/apache/logs/suphp_log

restart apache 😀 dan selesailah, tugas penambal lubang.. *mari main pes*
PDF:500

easyapache3 got suck!!!

Ketika config server pasti menjumpai error, penyebab errornya banyak. Solusinya tanya ke forum-forum atau langsung tanya ke support. Seperti error yang saya dapati pada easyapache3, waktu mau compile eh dapat.

can't create /cron/.cpanel/datastore/all_iplist.db: No such file or directory at /usr/local/cpanel/Cpanel/DIp/MainIP.pm line 251.
!! '/usr/local/cpanel/bin/apache_conf_distiller --update' failed with exit code '512' !!

solusi jelas belum dapat, atau permasalahannya dimana. Tapi dapat setitik solusi dengan perintan ini.
/scripts/checkperlmodules --force --full
/scripts/upcp --force

tapi kalau dengan itu lama sekali, bergantung seberapa cepat koneksi kita dan koneksi repository yang diakses.

Akibat update…

Ceritanya ni semalem  update system sampai jam 3, banyak paket yang diperbarui menindak lanjuti hasil scaning dari nessus pada mesin hosting. Sekitar jam 9 pagi eh hape ternyata banyak miscall dan pesan pendek, saya kira penggermar rahasia eh taunya dari si pemilik hosting, wow… katanya ada lib yang gak jalan.. (PDFlib) pasti karena easyapache kemrin nih, update apache dan php. Bagus rencana futsal dengan teman-teman PTIIK batal, ganti senamjari di terminal compile sana dan sini.

Belum mandi belum makan langsung buka laptop, maklum itu hosting buat usaha travel jadi harus diutamakan. Supaya gak merugi banyak-banyak. Yak berjumpa lagi dengan easyapache…

yang bikin agak rumit library pdf tidak ada dipilihan module default, ini baru wow…
setelah baca sana dan sini, katanya pdflib bisa diinstall menggunakan pecl (ini kakas untuk menginstall module php). tapi setelah di install koq..

root@server [~]# pecl install pdflib –host
parsePackageName(): invalid package name “–host” in “–host”
invalid package name/package file “–host”
downloading pdflib-2.1.9.tgz …
Starting to download pdflib-2.1.9.tgz (55,899 bytes)
………….done: 55,899 bytes
10 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
path to pdflib installation? : /usr/local
building in /var/tmp/pear-build-smuet/pdflib-2.1.9
running: /root/tmp/pear/pdflib/configure –with-pdflib=/usr/local
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking for C compiler default output file name… a.out
checking whether the C compiler works… configure: error: in `/var/tmp/pear-build-smuet/pdflib-2.1.9′:
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `–host’.
See `config.log’ for more details.
ERROR: `/root/tmp/pear/pdflib/configure –with-pdflib=/usr/local’ failed

nah putar-putar cari cara… akhirnya diputuskan kompile sendiri, ngikut panduan di php net . Setelah agak ribet sebentar akhirnya…

Dan disela-sela ngompile datanglah ibu kost membawakan pisang goreng… Allah nih memang keren, mendatangkan pertolongan dan nikmat yang tak bisa diduga… Perut berisi, PDFLib jalan kembali… Alhamdulillah…