Rolly Maulana Awangga :: Catatan Ngoprek IT

Pakar dan Awam sama saja, sama sama belajar

Laravel Using Gmail SMTP Account Found Error : “Swift_TransportException Cannot send message without a sender address”

Screen Shot 2015-04-26 at 7.51.49 AM

I use gmail for sending every email from my laravel apps, but seriosly there is an error if i go to forgot password or reminder password function.

The solution is just comment out the check conditional in library of swiftmailer

if (!$reversePath = $this->_getReversePath($message)) {
$this->_throwException(new Swift_TransportException(
‘Cannot send message without a sender address’
)
);
}

and add:

$reversePath = $this->_getReversePath($message);

Screen Shot 2015-04-26 at 7.44.35 AM

Reset Password PostgreSQL dan Membuatnya Bisa Diremote

Kadang kita lupa akan password database yang kita buat, di PostgreSQL user rootnya bernama postgre. Tinggal kita edit file g_hba.conf

hanya tinggal ini saja(yang lainnya dikomen dulu):

# TYPE DATABASE USER CIDR-ADDRESS METHOD
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
Untuk bisa remote tinggal enable kan di file postgresql.conf
listen_addresses = '*'

Cara Menggunakan IP Public (Publik) Firstmedia / Fastnet

Screen Shot 2015-04-14 at 11.21.15 AM

Perlu diketahui Fastnet atau Firstmedia menyediakan ip publik untuk para pelanggannya, hal ini bisa kita manfaatkan untuk akses ke jaringan rumah kita seperti mengakses CCTV atau server internal. Agar bisa mengaksesnya cukup kita daftarkan diri ke penyedia Dynamic DNS agar IP kita bisa kita remote dan jangan lupa aktifkan port forwarding di modemnya. Satu lagi yang membedakan dengan layanan ISP Telkomspeedy, port forwarding yang bisa digunakan harus diatas port 1000, kalao tidak maka tidak akan pernah bisa kita akses.

Installing Laravel Behind Proxy in Debian Wheezy 7 Linux

If the linux box behind the proxy. You must set terminal environment to use proxy. For curl command, you can ad -x arguments, installation of composer behind proxy is like this :

curl -s https://getcomposer.org/installer -x 192.168.1.5:8888 | php -d detect_unicode=off

and then for downloading laravel package, with php cli, first set env var using commang :

export https_proxy=”http://192.168.1.5:8888″

and then laravel composer create project command

php composer.phar create-project laravel/laravel

 

P.S: 192.168.1.5:8888 is proxy gateway

Solving FreePBX Error Instalation in Debian

Error :

configure: error: *** uuid support not found (this typically means the uuid development package is missing)

apt-get install uuid-dev libjannson-dev

Error :
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/freepbx/admin/libraries/freepbx_DB.php on line 57

pear uninstall db
pear install db-1.7.14

Error :
Module cxpanel successfully downloaded
Failed to install due to the following missing required module(s):<br /><br />manager<br /><br />Unable to install module cxpanel:

/var/lib/asterisk/bin/freepbx_engine: line 748: unexpected EOF while looking for matching `”‘
/var/lib/asterisk/bin/freepbx_engine: line 755: syntax error: unexpected end of file

amportal a ma download manager
amportal a ma install manager

Error :

freepbx blank white

amportal a dbug
amportal a ma delete cxpanel
cp /etc/freepbx.conf /etc/asterisk
chown asterisk:asterisk /etc/asterisk/freepbx.conf

 

OpenSips Error Solving on Debian

Error :

ERROR: No PID file found (/var/run/opensips.pid)! OpenSIPS probably not running

Solution :

chmod a+r /etc/opensips/opensips.cfg

or error in opensips.cfg file

in debian you can check error by

tail -f /var/log/syslog

Running Apache Virtualhost with different user

just install apache2-mpm-itk

apt-get install apache2-mpm-itk

and edit file in virtual host add tag

<IfModule mpm_itk_module>
AssignUserId asterisk asterisk
</IfModule>

inside <virtualhost> tag in the end line

Location to Edit File PHP.ini in Turnkey Linux

in Turnkey Liux you cant edit general php.ini in /etc/php5/apache2/php.ini, but you need to create a new file inside conf.d folder with priority setting.

Turnkey Linux Remote

Shell Script Pencari IP Bagi Pengguna Koneksi Internet Modem

Bagi pengguna internet dial-up modem dari operator seluler yang ingin mencari ip tertentu bisa menggukan script sebagai berikut :

#!/bin/bash
ipnya=`curl -s icanhazip.com`
echo $ipnya
if [ “$ipnya” == “114.160.71.150” ]; then
echo “ip tsukaba 150!”
else
echo “ACCESS BUKAN IP 22!”
if [ “$ipnya” == “118.97.95.23” ]; then
echo “ip ny 118.97.95.23!”
else
echo “ACCESS BUKAN IP 23!”
if [ “$ipnya” == “118.97.95.24” ]; then
echo “ip ny 118.97.95.24!”
else
echo “ACCESS BUKAN IP 24!”
if [ “$ipnya” == “118.97.95.25” ]; then
echo “ip ny 118.97.95.25!”
else
echo “ACCESS BUKAN IP 25!”
if [ “$ipnya” == “118.97.95.26” ]; then
echo “ip ny 118.97.95.26!”
else
echo “ACCESS BUKAN IP 26!”
echo “restart koneksi”
# poff
# pon
fi
fi
fi
fi
fi

Django dengan CouchDB

Django merupakan salah satu web framework yang menggunakan bahasa pemrograman Python.

okeh, pertama kali kita ikutin dahulu beberapa referensi disini :

1. http://www.kaskus.co.id/thread/52e8007f38cb17542e8b459e/reborn-django-web-framework

2. http://django.or.id/2010/12/6/membuat-poll-sederhana-dengan-django/

3. http://leok.me/2013/05/02/what-you-need-to-know-couchdb-django.html

 

Ikuti

Get every new post delivered to your Inbox.

Bergabunglah dengan 343 pengikut lainnya.

%d blogger menyukai ini: