Selasa, 23 Desember 2014
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
- 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
- Apache 2.x.x
- PHP 5.x.x (with mysql, session, hash, json extension)
- PHP-CLI
- MySQL 5.x.x
- Gammu
- Kalkun
Minggu, 14 September 2014
Repository Lokal Ubuntu Server 14.04
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
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
- FcgidIOTimeout 45
- FcgidIOTimeout 3600
- ini_set('memory_limit', '256M');
Bootstrap LTE
Admin template berbasisi bootstrap 3 mas bro..
- Dashboard
- Mailbox
- Calendar
- Invoice
- Lockscreen
- Login
- Register
- 404 Error
- 500 Error
- Blank page
- 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
Minggu, 10 Agustus 2014
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
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
.
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 |
Tentang mode PHP di ISPConfig
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, 24 Mei 2014
Buat cari database pendidikan
Mas bro ini sharing link buat nyari database pendidikan mulai dari sekolah (NPSN), guru (NUPTK) dan murid (NISN) link nya banyak monggo meluncur..
http://refpd.data.kemdikbud.go.id/
http://referensi.data.kemdikbud.go.id/index.php
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…
-
Open Windows Firewall by clicking the Start button , and then clicking Control Panel. In the search box, type firewall, and then click Windows Firewall.
-
In the left pane, click Advanced settings. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
-
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.
-
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
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
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
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 599Nah 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.
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).
Belom nyoba sih…hahahah..
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
intinya cuma ini :
a2dismod suphp
/etc/init.d/apache2 restart
lengkapnya begini isi webnya:
Minggu, 16 Maret 2014
Ada chat nyasar…
Sabtu, 08 Maret 2014
Yahoo apps/flickr, lumayan buat nyimpen photo.
ZOHO mail Alternatif buat bikin email pake domain sendiri.
Kamis, 06 Maret 2014
Selasa, 04 Maret 2014
.htaccess yang bikin Nyeri....!!!
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
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...