splash
Ardiansyah
A Father of four children, and wants to lead all of the family to reach the highest location in Jannah
Dari Ibnu Abbas ia berkata, "Dahulu aku pernah berada di belakang Rasulullah, lalu beliau bersabda: "Wahai anak kecil sesungguhnya aku ingin mengajarimu beberapa kalimat, jagalah Allah, maka pasti Allah menjagamu, jagalah Allah pasti kau akan dapati Allah dihadapanmu. Apabila engkau meminta maka mintalah kepada Allah dan jika engkau meminta pertolongan maka mintalah pertolongan kepada Allah. Ketahuilah, seandainya suatu umat berkumpul untuk memberikan manfaat kepadamu maka mereka tidak akan bisa memberi manfaat tersebut kecuali yang telah Allah takdirkan untukmu dan apabila mereka berkumpul untuk memadharatkanmu maka mereka tidak akan bisa memadharatkanmu kecuali dengan apa-apa yang Allah takdirkan atasmu, telah diangkat pena dan telah kering lembaran-lembaran(takdir)" (HR. Tirmidzi, hasan shohih)
 

Archive for July, 2013

How to List MySQL Users

Posted By ariandita on July 24th, 2013

Assalamu’alaykum warahmatullahi wabarakatuh,

When using MySQL as a backend database, sometimes we need to list the MySQL users to see whom have access to the database server, heres how :

Login to MySQL Database Command Line Interfaces
[sourcecode language=”bash”]
mysql -u mysql-user -p mysql-user-password
[/sourcecode]

Then run this command
[sourcecode language=”bash”]
select user from mysql.user ;
[/sourcecode]

Sometimes we need to know from which machine the user have access, so run this command
[sourcecode language=”bash”]
select host,user from mysql.user ;
[/sourcecode]

Here’s the example of the result
[sourcecode language=”bash”]
+—————-+——————+
| host | user |
+—————-+——————+
| 10.100.150.140 | wp-home-edu |
| 10.100.150.140 | wp-home-org |
| 10.100.150.142 | wp-home-tv |
| 10.100.150.145 | wp-home-sd |
| 127.0.0.1 | root |
| localhost | debian-sys-maint |
| localhost | root |
| walldb | root |
+—————-+——————+
[/sourcecode]

Happy Administer System !

Redirect Full Sub Domain to Another Domain

Posted By ariandita on July 3rd, 2013

In many case our Website redirect a full sub-domain to another sub-domain or maybe to another sub-domain in another domain, here’s how to redirect it by editting the apache2 configuration

[code language=”bash”]
<VirtualHost>
ServerName somechild.domain.com
Redirect permanent / http://morechild.anotherdomain.com
</VirtualHost>
[/code]

With those setting you’ve made a redirection to morechild.anotherdomain.com when there are requests to somechild.domain.com.

Happy Administer System……….