Archive for April, 2019

Sebuah catatan untuk mengingatkan ketika instalasi aplikasi SMEP :

  1. baris $config[‘index_page’] = ‘index.php’ pada file application/config/config.php bila dihilangkan bisa menyebabkan error 404.
  2. error “mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50560 Library:100038” dikarenakan beda versi library php dan mariadb, kurang instalasi driver php mysql dan diatasi dengan “yum install php56w-mysqlnd”.
  3. problem .htaccess, perbaiki /etc/httpd/conf/httpd.conf pada baris :
<Directory /var/www/html>
...
 AllowOverride All
. . .
</Directory>

ubah dari None menjadi All

sumber :

(https://stackoverflow.com/questions/10759334/headers-and-client-library-minor-version-mismatch)

(https://staff.blog.ui.ac.id/jefri.p/2014/04/error-mysql-mysql_connect-headers-and-client-library-minor-version-mismatch/)

(https://mariadb.com/kb/en/library/installation-issues-with-php5/)

(https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite-for-apache-on-centos-7)

Let’s Encrypt Gagal Re-new

Hari ini dapat warning ssl dari web server yang ternyata berakhir pada 31 Maret per tanggal 1 April otomatis web spse tidak dapat diakses karena ssl expired.

Cek ke dalam console dan coba update manual :

# ./letsencrypt-auto –apache -d lpse.namakab.go.id
Traceback (most recent call last):
File “/tmp/tmp.FTczzoL1tn/fetch.py”, line 28, in
from urllib.request import build_opener, HTTPHandler, HTTPSHandler
ImportError: No module named request
WARNING: unable to check for updates.
Traceback (most recent call last):
File “”, line 16, in
File “/usr/lib64/python2.7/distutils/version.py”, line 140, in cmp
compare = cmp(self.version, other.version)
AttributeError: StrictVersion instance has no attribute ‘version’

Gagal Son!….

Dicoba reinstal let’s encrypt..masih sama…untuk mengatasi secara cepat, terpaksa kembali ke http dulu..dan off kan ssl nya…hedeh!

Setelah keluyuran ke mbah google, ada tuts yang menyarankan begini :

1. enable software collection (SCL) – saya pake centos 6 ya…

yum install centos-release-SCL

2. install python 2.7 dan scl utils :

yum update

yum install scl-utils python27 python27-scldevel

3. enable python 2.7 for bash

scl enable python27 bash

4. jalankan ulang let’s encrypt

./letsencrypt-auto –verbose

alhamdulillah ssl is back!

sumber :
(https://github.com/certbot/certbot/issues/1106)

catatan tambahan :

edit file : /usr/local/letsencrypt/letsencrypt-auto-source/pieces/fetch.py cari dan ubah baris “urllib.request import build_opener, HTTPHandler, HTTPSHandle…” menjadi “urllib import build_opener, HTTPHandler, HTTPSHandler…”

ujicoba menjalankan “./certbot-auto renew –dry-run –apache” semoga tidak ada error lanjutan.