Halaman

Selasa, 23 Desember 2014

Mengamankan wordpress

Malem mas bro...kali ini ane mau infoin cara ngamanin website yang pake wordpress, bukan pake plugin tapi masalah file permission.

Mengamankan wordpress

Untuk aman pastikan semua file 664, semua folder 775 dan wp-config 660 baikan lagi sih di rename heheh...semua bisa dilakuin via ftp tapi paling cepet emang pake SSH cukup gini doang..

sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 660 wp-config.php

monggo di coba mas bro.

Senin, 22 September 2014

Menu tersembunyi di Android

Gara gara ngereset factory android, gadget ane error bro...
- Invalid IMEI -
Haduh googling sana sini, ga taunya simple, ternyata ane baru tau bro, android punya shortcode buat menu tersembunyi. Nih ...:

Selasa, 16 September 2014

SMS Gateway di Ubuntu Server 14.04 dengan Gammu & Kalkun

Instalasi

Pastikan dulu repository pake yang lokal biar cepet .... heheheh liat postingan disini kalo lupa.

Karena kita akan menggunaka Kalkun untuk interfacing SMS Gateway nya, jadi kita buuh software ini :
  1. Apache 2.x.x
  2. PHP 5.x.x (with mysql, session, hash, json extension)
  3. PHP-CLI
  4. MySQL 5.x.x
  5. Gammu
  6. Kalkun
Untuk poin 1,2,3 dan 4 googling aja ya, pokoknya webserver mesti jalan.

Minggu, 14 September 2014

Repository Lokal Ubuntu Server 14.04

Gara-gara harus update OS Ubuntu, repository jadi harus diubah.
Karena ane pake repo lokal di kambing ( hehehhe pipa lokalnya gede swalnya ), mau ga mau ubah repo buat update Ubuntu nya.

Gini nih caranya :

Format Flash Drive untuk Mac dan PC

Jika Anda memiliki hard drive eksternal atau USB flash drive yang ingin digunakan pada kedua Mac dan PC Windows, memilih sistem file yang tepat untuk memformat drive bisa membingungkan.

Karena Mac OS X dan Windows menggunakan sistem file yang berbeda, cara sebuah flash drive/HDD eksternal diformat akan menentukan kesanggupan flash drive tersebut untuk bekerja dengan jenis computer tertentu. Ada empat cara memformat flash drive eksternal atau USB untuk mencapai berbagai tingkat kompatibilitas antara Mac dan PC, yaitu:

Rabu, 13 Agustus 2014

Mod_fcgid

Running a script longer then 45 seconds causes a mod_fcgid: read data timeout in 45 seconds, this may be plesk specific.
Looking up the error its very common, the usual solution recommended is to editing /etc/httpd/conf.d/fcgid.conf
Specifically, change
  1. FcgidIOTimeout 45
to
  1. FcgidIOTimeout 3600
3600 seconds = 1 hour.
Then restart the server. If you don't have root access to the server you'll need to ask your host to do it or another way is to increase the memory limit with php at the top of the file add:
  1. ini_set('memory_limit', '256M');


This solves the problem without needing to edit the fcgid.conf file.
sumber : http://www.daveismyname.com/fixing-mod-fcgid-read-data-timeout-bp#.U-lL1vmSz9g

Bootstrap LTE


Admin template berbasisi bootstrap 3 mas bro..


Admin LTE comes shipped with the following  :
Pages
  • Dashboard
  • Mailbox
  • Calendar
  • Invoice
  • Lockscreen
  • Login
  • Register
  • 404 Error
  • 500 Error
  • Blank page
Plugins
  • Boostrap Slider
  • Ion slider
  • Bootstrap WYSIHTML5
  • CKEditor
  • Bootstrap Colorpicker
  • Bootstrap Date range Picker
  • Bootstrap Time Picker
  • Data Tables
  • Flot
  • Morris.js
  • Sparkilne
  • Full Calendar
  • iCheck
  • jQuery input mask
  • jQuery Knob
  • jVector Map
  • Slim Scroll
  • Pace
Yang ane suka bagian kalendarnya bisa nambahun event pake drag n drop... silahkan coba 
demo disini. http://almsaeedstudio.com/AdminLTE/pages/calendar.html
download : https://github.com/almasaeed2010/AdminLTE/archive/master.zip

Minggu, 10 Agustus 2014

webmail squirelmail gak jalan di ispconfig

webmail squirelmail gak jalan di ispconfig.
Aduh masbro dari abis maghrib ampe jam 11 malem lebih webmail masih gak bisa nih diispconfig, puyeng dah..
 copas dari http://www.howtoforge.com/enabling-squirrelmail-for-your-web-sites-on-an-ispconfig-3-server-ubuntu-10.10

Kamis, 12 Juni 2014

Gak bisa upload theme wp, plugin dan library ke ISPconfig

Mas bro ane nyoba WP di server lokal dia gak bisa upload theme wp, plugin dan library gugling dapet jawaban ini.. (http://www.howtoforge.com/forums/showthread.php?t=43100)
1. Switch php mode of this site to php-fcgi or php-cgi and enable suexec
ada lagi yg gini ..(http://www.evilbox.ro/linux/remove-ispconfig-maximum-upload-size-of-2m-for-wordpress/)

To solve this you need to edit the php.ini file located in /etc/php5/cgi/php.ini instead of the classic /etc/php5/apache2/php.ini.
Edit the lines below and change 2M to 50M:
1
2
3
4
5
6
7
; Maximum allowed size for uploaded files.
upload_max_filesize = 50M
...
; Maximum size of POST data that PHP will accept.
post_max_size = 50M
Restart Apache2, then relogin to WordPress.
kalo pake PHP-FPM baca disini http://www.evilbox.ro/linux/ispconfig-internal-server-error-500/

akhirnya bisa euy..

Tentang mode PHP di ISPConfig

Copy paste aja dah ya...Sumber : http://www.howtoforge.com/forums/showthread.php?t=33167
The php option depends on traffic that you expect for the site and if the site e.g. uploads or creates images or files on the server.

mod_php:

- fast
- runs not under admin user of the site
- well suited for low and high traffic sites, but not for cms systems like joomla.

suphp:

- not so fast
- script runs under web admin
- secure
- well suited for low traffic sites

fastcgi

- fast
- script runs under web admin
- secure
- well suited for high traffic sites

so basicalley the decision is, if a site is low traffic, use suphp. suphp spawns a new cgi process for every page request, but it does not use resources when no pages are requested. On the opposite fastcgi, the php processes are running permanently even if no page is requested, this is faster and fine for a high traffic site but for a small homepage with 100 pageviews per hour you would waste resources.

Rabu, 04 Juni 2014

kalo lupa password webmin

aduh masbro mang admin lupa password webmin heheh…

pake putty cukup begini :

/usr/share/webmin/changepass.pl /etc/webmin root eFNULfDeNYKsd8Yf

beres!

Sabtu, 31 Mei 2014

Leverage browser caching

Dapat masukan dari pingdom katanya sebagian file memiliki waktu yang terlalu singkat makanya harus diperpanjang, kurang lebih triknya begini..

pakai htacces:

 

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##

Sabtu, 10 Mei 2014

Ngebuka Port di Windows

Gara-gara gak bisa akses vmware dari kompi laen akhirnya cari cara buka port nih…baca dah…

  1. Open Windows Firewall by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type firewall, and then click Windows Firewall.

  2. In the left pane, click Advanced settings. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

  3. In the Windows Firewall with Advanced Security dialog box, in the left pane, click Inbound Rules, and then, in the right pane, click New Rule.

  4. Follow the instructions in the New Inbound Rule wizard.

Sumber : http://windows.microsoft.com/en-us/windows/open-port-windows-firewall#1TC=windows-7

Rabu, 07 Mei 2014

Kalo eror masalah login di ISPconfig

Kalo eror masalah login dan kawan2 di ISPconfig gara2 tema ispclean
cari index dibagian sini :
/usr/local/ispconfig/interface/web/login
/usr/local/ispconfig/interface/web

Selasa, 06 Mei 2014

Kangen ama briefcase di win 8 heheh..

Buat sinkronisasi file antar komputer sebetulnya pake dropbox dan sejenisnya sih gampang kalo ada internet, tapi kalo gak ada?

Jadi kangen ama briefcase tapi sayang di win 8 di disable. Ternyata bisa dia ktifin lagi pake registri… gini mas bro.. bikin ini di notepad ++ terus simpan sebagai file [dot]reg

eh dia nongol lagi heheh …monggo atuh.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Briefcase\ShellNew]
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,79,00,6e,00,63,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,30,00,00,00
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
  2d,00,36,00,34,00,39,00,33,00,00,00
"Directory"=""
"Handler"="{85BBD920-42A0-1069-A2E4-08002B30309D}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Briefcase\ShellNew\Config]
"IsFolder"=""
"NoExtension"=""

Selasa, 29 April 2014

MySQL Primary Key

Bertahun-tahun bergelut sama mysql ternyata hal yang sifatnya fundamental masih ane belum ngerti.
Waktu ngopi bareng ane pernah obrolin masalah primary key ternyata ane udah salah paham sama si Primary key ini.

Menelusuri ke mbah google malah jadi banyak perdebatan, tapi ada blog yang bahas masalah primary key ini secara beda....

Ada sebuah pertanyaan :

Bagaimana Anda mendefinisikan apa itu primary key dari sebuah tabel ?

a. Sebuah auto-generated numerik atau GUID kolom dalam tabel yang secara unik mengidentifikasi setiap baris
b. Sebuah kolom non-nullable dalam tabel yang secara unik mengidentifikasi setiap baris
c. Tidak ada satupun jawaban yang benar

Jawaban ente apa bro ?

MySQL -> mengetahui nilai Autoincrement terakhir di insert

Kadang kalo mau integrasiin primary key yang bernilai AI aga2 repot.... padahal udah pernah bikin tapi lupa mulu caranya (syntax SQL) nya....

Kalo pake perintah ini
SELECT COUNT(id);

Weeew.... ternyata ga efektif, kenapa? karena kalo record nya ada 1 miliar, bisa mabok tuh mysql ngitungnya. Juga ga selalu tepat dan sesuai dengan AI nya karena kadang ada record yang udah kehapus.
Misal Next AI = 601, jalanin sintax SELECT COUNT(id); malah menghasilkan 599
Nah itu berarti ada record yang pernah dihapus. jadi kalo mau liat nilai AI yang berikutnya syntaxnya :
SELECT AUTO_INCREMENT FROM information_schema.tables WHERE TABLE_SCHEMA='database-nya' AND TABLE_NAME = 'table-nya'
And... TARAAAAAAAAAA.............................................. Sebanyak apapun recordnya, ga ngaruh sama proses penghitungan AI nya.... CMIIW

Selasa, 08 April 2014

Disable folder notes di dreamweaver.

Masbro…ane kadang2 “geuleuh”(bahasa sunda = risih) kalo koding pake dreamweaver…ini nemu diblog..
Males nerjemahin…
By default in Adobe Dreamweaver the option to have Dreamweaver create a ‘_notes’ folder is enabled. Very seldom are these folders ever actually used yet Dreamweaver insists on creating them in every folder anyway. Well you can disable them, but unfortunately you can only do so one site definition at a time. There is no way to set it as a global setting. Follow these steps to disable the Dreamweaver notes:
You enable and disable Design Notes for a site in the Design Notes category of the Site Definition dialog box.
  • Select Site > Manage Sites.
  • In the Manage Sites dialog box, select a site, then click Edit.
  • In the Advanced tab of the Site Definition dialog box, select Design Notes from the Category list on the left.
  • Select Maintain Design Notes to enable Design Notes (deselect to disable them).
If you want to delete all local Design Notes files for your site, click Clean Up, and then click Yes. (If you want to delete remote Design Notes files, you’ll need to delete them manually).
Belom nyoba sih…hahahah..
dreamweaver


Masalah dengan webmail ISPConfig

Mas bro….mang admin dapet email lagi nih, salah satu klien gak bisa masuk ke webmailnya dengan muncul gini :

Error opening ../config/default_pref
Could not create initial preference file!
/var/lib/squirrelmail/data/ should be writable by user www-data
Please contact your system administrator and report this error.


kata link ini http://www.howtoforge.com/forums/showthread.php?t=52986 sih masalah suexec tapi pas dicoba masih gak bisa.



Terus nyari lagi nemu ini http://www.howtoforge.com/forums/showthread.php?t=32739 cuma masalah chmod



chmod -R 777 /var/lib/squirrelmail/data



Aaahh…..beres. Ngopi dulu ah.



Jam setengah satu malem nih.

Minggu, 06 April 2014

Masalah : (98)Address already in use: make_sock: could not bind to address [::]:80

Haduu….habis nambah domain terus kok ada masalah apache gak bisa restart.

berhubung gak bisa pake putty mang admin pake senjata andelan…yaitu WEBMIN  HHAHAH…pas ane start Apache muncul:

….

(98)Address already in use: make_sock: could not bind to address [::]:80

….

hampir beberapa cara dicoba tapi katanya sih pas matiin mod_ruby terus restart eh bisa lagi…Untung dah

Rabu, 02 April 2014

webmail (squirrelmail) malah download file

Aduh mas bro ..mang admin bingung mau login ke namadomain.tld malah ngedownload file…cek punya cek dapet solusi sumber http://www.howtoforge.com/forums/showthread.php?t=52042&page=4
intinya cuma ini :

a2dismod suphp
/etc/init.d/apache2 restart


lengkapnya begini isi webnya:

Minggu, 16 Maret 2014

Ada chat nyasar…

Barusan ada offline chat dari Zopim..
Pengirim : Setan
Isinya : Ane kena tipu
image
Coba telusuri berasal dari sini :
http://www.kaskus.co.id/thread/52a7e91dfaca171e7d000255/cara-dapat-domain-webid
Cek punya cek …
image
Ada yang kesinggung kali numpang promosi…Hehehe..

Sabtu, 08 Maret 2014

Yahoo apps/flickr, lumayan buat nyimpen photo.

Mas bro, ane baru liat nih di flickr dia ada api buat upload photo dsb, lumayan kalo buat nyimpen photo 1TB bro…meluncur ke tkp
yahooapps

ZOHO mail Alternatif buat bikin email pake domain sendiri.

Mas Bro, ini ada web yang bisa bikin email sendiri pake domain sendiri kaya gugel apps ama domain live microsoft pake zoho mail…yang free dibatesin 5 User per user 5GB storage. meluncur ke TKP
zoho mail

Selasa, 04 Maret 2014

.htaccess yang bikin Nyeri....!!!

Development dah hampir beres, tinggal isi content aja.... so dah siap untuk diupload....

Meluncur dalam waktu 5...4....3...2....1...

Swete.... CSS dan javascript ga ketemu..... WEB nya jadi BOTAAAAkkkk......!!!
Apa yang salah ya? setingan dah bener... module PHP yg diperluin semua dah diinstal, Apache module juga dah oke. Pokoknya gada bedanya sama web server yg dilokal.

The Pending Coding

Weh....
Pala pening kebanyakan koding, tapi kaga bisa tidur. Tiap kali merem malah pengen koding, pas udah depan PC eh,,, kepala malah pusing. Terpaksa lah nampol parasetamol...

Senin, 03 Maret 2014