Thursday, 28 May 2015

Setting Apache Centos to Access Remotely



How to restart Apache (HTTP) in Linux (Centos)

For those using our managed servers with root access, here are the commands to do it from the command line:

to restart:
/sbin/service httpd restart
to start:
/sbin/service httpd start
to stop:
/sbin/service httpd stop

How to View Apache Status

(Tell if it is running)
/etc/init.d/httpd status
(Example of Apache being stopped)

Setting to change or add :

Add Aliases
vi /etc/httpd/conf.d/phpmyadmin.conf
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin 
 
Change from cookie to http
vi /usr/share/phpmyadmin/config.inc.php [...] /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'http'; [...] 

Restart
/etc/init.d/httpd restart 


in /etc/httpd/conf.d/phpMyAdmin.conf
 
Currently, this setup is configured to deny access to any connection not being made from the server itself. Since we are working on our server remotely, we need to modify some lines to specify the IP address of your home connection.
Change any lines that read Require ip 127.0.0.1 or Allow from 127.0.0.1 to refer to your home connection's IP address. If you need help finding the IP address of your home connection, check out the next section. There should be four locations in the file that must be changed:
. . .
Require ip your_workstation_IP_address
. . .
Allow from your_workstation_IP_address
. . .
Require ip your_workstation_IP_address
. . .
Allow from your_workstation_IP_address
. . .
When you are finished, restart the Apache web server

If you can not authenticate via the web interface (localhost/phpmyadmin/) then try change authentication type to cookie.
$cfg['Servers'][$i]['auth_type'] = 'cookie';


Rujukan :

https://aztech.net.au/node/77

http://mixeduperic.com/centos/how-to-start-stop-restart-and-check-the-status-apache-and-mysql-on-centos.html

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-apache-on-a-centos-7-server

http://stackoverflow.com/questions/7499849/phpmyadmin-centos-6-0-forbidden

http://stackoverflow.com/questions/22333581/xampp-mysql-password-setting


 

As-salam

Maaflah ya hari ni maklumat agak teknikal emm actually my note to setting XAMPP !!

1. Pre-installation Steps

Users of Windows XP can skip this step! It is for Vista and Windows 7 users! Disable UAC! You will do it by clicking on Start>Control Panel>User Accounts and then click on “Change User Account Control settings”. On the next window (remembering the default position of the slider) pull the slider down to “Never notify me when:…”, click on OK and close the windows. Vista users – just turn off User Account Control. Do not restart the computer now! For security reasons the slider should be reverted to default settings after successful installation of Apache, PHP and MySQL.

Full Document : 1stwebdesigner ~ how-to-setup-local-web-server-with-latest-apache-php-and-mysql-packages

2. Downloaded and installed XAMPP for Windows


3.  Change Root Password MySQL 

 A.  In the phpMyAdmin window, select SQL tab from the right panel. This will open the SQL tab where we can run the SQL queries.

B.  Now type the following query in the textarea and click Go 



UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
FLUSH PRIVILEGES;


C. The query has been executed successfully.

If you refresh the page, you will be getting a error message. This is because the phpMyAdmin configuration file is not aware of our newly set root password. To do this we have to modify the phpMyAdmin config file.

D.  Open the file [XAMPP Installation Path] / phpmyadmin / config.inc.php in your favorite text editor.
Search for the string $cfg\['Servers'\]\[$i\]['password'] = '';
and change it to like this,
$cfg\['Servers'\]\[$i\]['password'] = 'password';

Here the 'password' is what we set to the root user using the SQL query.

Find  $cfg['Servers'][$i]['auth_type']     = 'config';
Change it to be like this :


$cfg['Servers'][$i]['auth_type']     = 'cookie';     
// We can use 1 of 3 type Authentication method (config, http or cookie based).

(
If you can not authenticate via the web interface (localhost/phpmyadmin/) then try change authentication type from config to cookie.
$cfg['Servers'][$i]['auth_type'] = 'cookie';
 sources : http://stackoverflow.com/questions/22333581/xampp-mysql-password-setting
)

Now all set to go. Save the config.inc.php file and restart the XAMPP server.

4.  Setting Conf file to Access PhpMyAdmin Remotely

You will have to edit 2 files - 1. httpd-vhosts.conf & 2. httpd-xampp.conf
NOTE : Make sure u backup files ( httpd-xampp.conf ) and ( httpd-vhosts.conf ) , Both Files are located in Drive:\xampp\apache\conf\extra

Open httpd-vhosts.conf file and in the bottom of the file change it
<VirtualHost *:80>
DocumentRoot “E:/xampp/htdocs/”
ServerName localhost
<Directory E:/xampp/htdocs/>.
Require all granted
</Directory>
</VirtualHost>

 Second Change is on httpd-xampp.conf file and in the bottom of the file change it
#
# New XAMPP security concept
#
<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”>
Order deny,allow
Allow from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

 Find "<Directory "C:/xampp/php">" and then change to something like this

<Directory "C:/xampp/php">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>


5.  Testing


 

FAts Killer

as-salam.

In order to make this drink you will need the following ingredients:
  • 8 ½ cups of filtered water
  • 1 teaspoon chopped ginger (or a tablespoon of organic ginger root powder)
  • 1 medium-size cucumber, thinly sliced
  • 1 medium-sized lemon, thinly sliced
  • 12 mint leaves
Preparation:
Put all ingredients in a goblet and mix them. Let the flavors to whisk through the night. Before pouring the drink into a glass remove the lemon slices, ginger and mint leaves from the goblet. It is recommended to drink the whole amount from the goblet In one day. If you can’t drink it in one day, keep it in the refrigerator for up to 2 days.
This drink hydrates you and it is safe to drink, so you can drink it in the course of 4 weeks.
That is enough time to lose the extra fat.
- See more at: http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/#sthash.izREixE6.dpuf
In order to make this drink you will need the following ingredients:
  • 8 ½ cups of filtered water
  • 1 teaspoon chopped ginger (or a tablespoon of organic ginger root powder)
  • 1 medium-size cucumber, thinly sliced
  • 1 medium-sized lemon, thinly sliced
  • 12 mint leaves
Preparation:
Put all ingredients in a goblet and mix them. Let the flavors to whisk through the night. Before pouring the drink into a glass remove the lemon slices, ginger and mint leaves from the goblet. It is recommended to drink the whole amount from the goblet In one day. If you can’t drink it in one day, keep it in the refrigerator for up to 2 days.
This drink hydrates you and it is safe to drink, so you can drink it in the course of 4 weeks.
That is enough time to lose the extra fat.
- See more at: http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/#sthash.izREixE6.dpuf
 http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/


 http://www.homehealthyrecipes.com/this-tiny-fruit-is-best-friend-of-your-liver-one-of-the-most-powerful-antioxidants-and-has-20x-more-vitamin-c-that-orange-juice/

http://www.healthyandnaturallife.com/he-lost-40kg-drinking-this-potion/
In order to make this drink you will need the following ingredients:
  • 8 ½ cups of filtered water
  • 1 teaspoon chopped ginger (or a tablespoon of organic ginger root powder)
  • 1 medium-size cucumber, thinly sliced
  • 1 medium-sized lemon, thinly sliced
  • 12 mint leaves
Preparation:
Put all ingredients in a goblet and mix them. Let the flavors to whisk through the night. Before pouring the drink into a glass remove the lemon slices, ginger and mint leaves from the goblet. It is recommended to drink the whole amount from the goblet In one day. If you can’t drink it in one day, keep it in the refrigerator for up to 2 days.
- See more at: http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/#sthash.izREixE6.dpuf
In order to make this drink you will need the following ingredients:
  • 8 ½ cups of filtered water
  • 1 teaspoon chopped ginger (or a tablespoon of organic ginger root powder)
  • 1 medium-size cucumber, thinly sliced
  • 1 medium-sized lemon, thinly sliced
  • 12 mint leaves
Preparation:
Put all ingredients in a goblet and mix them. Let the flavors to whisk through the night. Before pouring the drink into a glass remove the lemon slices, ginger and mint leaves from the goblet. It is recommended to drink the whole amount from the goblet In one day. If you can’t drink it in one day, keep it in the refrigerator for up to 2 days.
- See more at: http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/#sthash.izREixE6.dpuf
In order to make this drink you will need the following ingredients:
  • 8 ½ cups of filtered water
  • 1 teaspoon chopped ginger (or a tablespoon of organic ginger root powder)
  • 1 medium-size cucumber, thinly sliced
  • 1 medium-sized lemon, thinly sliced
  • 12 mint leaves
Preparation:
Put all ingredients in a goblet and mix them. Let the flavors to whisk through the night. Before pouring the drink into a glass remove the lemon slices, ginger and mint leaves from the goblet. It is recommended to drink the whole amount from the goblet In one day. If you can’t drink it in one day, keep it in the refrigerator for up to 2 days.
This drink hydrates you and it is safe to drink, so you can drink it in the course of 4 weeks.
That is enough time to lose the extra fat.
- See more at: http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/#sthash.izREixE6.dpuf
In order to make this drink you will need the following ingredients:
  • 8 ½ cups of filtered water
  • 1 teaspoon chopped ginger (or a tablespoon of organic ginger root powder)
  • 1 medium-size cucumber, thinly sliced
  • 1 medium-sized lemon, thinly sliced
  • 12 mint leaves
Preparation:
Put all ingredients in a goblet and mix them. Let the flavors to whisk through the night. Before pouring the drink into a glass remove the lemon slices, ginger and mint leaves from the goblet. It is recommended to drink the whole amount from the goblet In one day. If you can’t drink it in one day, keep it in the refrigerator for up to 2 days.
This drink hydrates you and it is safe to drink, so you can drink it in the course of 4 weeks.
That is enough time to lose the extra fat.
- See more at: http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/#sthash.izREixE6.dpuf
In order to make this drink you will need the following ingredients:
  • 8 ½ cups of filtered water
  • 1 teaspoon chopped ginger (or a tablespoon of organic ginger root powder)
  • 1 medium-size cucumber, thinly sliced
  • 1 medium-sized lemon, thinly sliced
  • 12 mint leaves
Preparation:
Put all ingredients in a goblet and mix them. Let the flavors to whisk through the night. Before pouring the drink into a glass remove the lemon slices, ginger and mint leaves from the goblet. It is recommended to drink the whole amount from the goblet In one day. If you can’t drink it in one day, keep it in the refrigerator for up to 2 days.
This drink hydrates you and it is safe to drink, so you can drink it in the course of 4 weeks.
That is enough time to lose the extra fat.
- See more at: http://www.healthylifevision.com/this-amazing-drink-melts-fat-in-only-4-days/#sthash.izREixE6.dpuf

TIDUR

As-salam.

saya kurang pasti berkenaan saranan di bawah, tapi satu perkongsian yang baik untuk dicuba.  Tak rugi apa2 pun.

Sekadar pengalaman saya yang sering tertidur selepas solat isya' sekitar jam 9.30 malam, saya akan terjaga samada pukul 12 malam, 2 pagi dan kadang-kadang 3 pagi.  Masa terjaga tu memang rasa cergas dan cukup tidur, tidak rasa mengantuk langsung, biasanya saya akan siapkan mana-mana kerja rumah yang belum selesai a.k.a mengemas rumah hehehe.

Ini perkongsian daripada Cikgu Shaini :

Bila Dr Noorhisam dari Tahfiz Medic menukilkan dapatannya bahawa dalam sehari, kita hanya memerlukan tidur selama 3jam, saya cuba...saya tidur sebelum jam 12 dan cuma bangun semula pukul 3pagi tetapi saya bangun dengan rasa mengantuk dan letih. Kekadang saya tertidur semula dan bangun jam 4.30 pagi. 

Saya syak, mungkin sistem badan saya yang tidak berfungsi dengan baik..menyebabkan saya tidak dapat bangun dengan cergas seperti yang dirancang.

Tetapi saya pelik, bilamana ada hari-hari tertentu, tika saya "tanpa rela" sering tertidur pada pukul 9malam.....seterusnya secara otomatik, sekitar jam 2pagi saya pasti akan terjaga. Biji mata saya segar....lalu saya pun bangun untuk melakukan aktiviti2 rutin saya....tanpa mengantuk! Saya pelik!
Rupa-rupanya apa yang berlaku pada saya bukan suatu yang abnormal....saya menemui artikel karya Dr Hamza Al-Hamzawi.

Menurut kajian beliau, untuk bangun dengan cergas, kita tak perlu tidur selama 8jam seperti kajian barat. Tetapi cukup dengan tidur selama 3jam sahaja. Tetapi waktu tidur itu mestilah dari pukul 9 malam hingga 12 malam (tapi kita di zaman skrg ni kalau kita dapat tidur tepat pukul 10 dàn bangun jam 2pagi...itu dah lebih dari baik).

Berdasarkan sunnah, Rasulullah saw sememangnya tidur di awal malam kerana tidur pada waktu ini adalah waktu tidur yang paling bermanfaat. Seseorang itu boleh dapat 80% daripada tidur yang nyenyak pada waktu ini. Waktu ini juga terdapat 'Baraka' di dalamnya iaitu sejam waktu tidur bersamaan dengan tiga (3) jam waktu tidur.

Pada masa ini kelenjar pineal mengeluarkan hormon melatonin iaitu membantu kita untuk tidur.

👉Tidur dari pukul 12 pagi hingga 2 pagi
Waktu ini terdapat 20% waktu tidur nyenyak dan selebihnya iaitu 80% adalah 'dream sleeping' yang tidak berguna. Pada masa ini tidur sejam bersamaan dengan sejam waktu tidur.

👉Dari dari pukul 2 Pagi hingga 5 Pagi sebelum Subuh (Fajr)
Ini sebenarnya bukan lagi waktu tidur tetapi adalah waktu yang paling sesuai untuk menghafal, mengingati Allah, berzikir, Istighfar dan penumpuan mental.

👉Tidur pada waktu siang (selepas Fajr)
Tidur pada waktu ini adalah waktu tidur yang tidak bermanfaat kerana tiga (3) jam tidur bersamaan dengan sejam waktu tidur, ditambah dengan kelesuan, kekeliruan, dan hilangnya fokus.

👉Tidur dari Fajr hingga terbitnya matahari
Kelenjar pineal mengeluarkan hormon lain iaitu 'serotonin' iaitu dari Fajr sehingga terbitnya matahari dengan syarat seseorang itu mestilah sudah bangun.

Bagi mereka yang solat Subuh dengan 'Jamat' dan duduk mengingati Allah.
Pada waktu ini adalah sangat sesuai untuk berzikir dan melakukan aktiviti harian.
Pembebasan 'melatonin' oleh kelenjar pineal berkurangan selepas 40 tahun dan berhenti selepas 50 tahun. Kemudian seseorang itu harus memanfaatkan apa yang telah tersimpan dalam badan sehingga sepanjang hayatnya.

Jadi, jika seseorang mendapat 'Alzheimer' dan permulaan 'Dementia', bermakna dia telah tidur lewat sepanjang hidupnya.

Wallahualam.

Tuesday, 19 May 2015

Buat Ais Krim Kali Ke Tiga

As-salam.

Bila stok ais krim dalam peti sejuk habis, anak-anak warga Isyraq Rest House minta mengadun ais krim lagi.


Resepi ringkas sahaja :  1 tin susu cair, 1/2 tin susu pekat, 1 sudu besar ovellet, 1 sudu teh perisa strawberry dan sebiji telor ayam.

Bahan-bahan semua sudah siap, masukkan  semua dalam mixer dan putar dengan high speed selama 20 minit.

Hasilnya adunan kembang penuh mangkuk mixer.

 
Likat dan pekat, gebu hehehe suka tengok, makin semangat untuk buat di lain hari.

Kali ini masuk sahaja ke dalam bekas yang kecil, cukup-cukup untuk anak-anak sekali makan lebih kurang 2 senduk setiap bekas.

Buat warna putih sahaja tetapi berperisa strawberry.

Bila sudah beku esoknya, petang balik dari kerja dan anak-anak balik sekolah emmm masing-masing ambil sebekas dan masukkan bahan-bahan kesukaan masing-masing.

Yang sebelah ini, kami letak kacang yang telah dikisar, coklat rice dan coklat cip.

Untuk En. Suami, kacang tanah yang dikisar, sedikit roti yang dicarik-carik, dan 2 keping biskut oreo yang dipatah-patahkan.  Memang mabelosss sangat.


Monday, 18 May 2015

Hutang Ketupat Sotong


As-salam.

Hutang Ketupat Sotong akhirnya dapat dijelaskan.  Hehe dah lama sangat berangan nak ulang tayang masak ketupat sotong, minggu lepas baharu berjaya dimasak.

Bahan-bahan :
1.  1 kg sotong (RM16-ikut harga pasaran)
2.  1/2 cawan beras pulut dibersihkan.
3.  Santan pekat RM2.00 (cukup untuk menutupi sotong masa merebusnya nanti)
4.  5 helai daun pandan.
5.  Manisan Kelantan sekeping yang saiz besar atau 2 keping gula melaka bersaiz kecil.
6.  Garam secukup rasa.


Cara-cara :
1.  Bersihkan sotong.
2.  Bersihkan beras pulut dan rendam dalam santan selama 10 minit.
3.  Masukkan beras pulut ke dalam sotong : 1/3 penuh sahaja.
4.  Sepitkan dengan lidi.
5.  Potong daun pandan dan susun didalam periuk.
6.  Susun sotong yang telah disumbat di atas daun pandan.
7.  Masukkan juga lebihan santan hingga menutupi sotong.
tersebut, daun pandan, bunga cengkih dan gula melaka dan sedikit garam.
8.  Apabila mula mendidih, masak dengan api yang perlahan biarkan ia sampai kuahnya agak pekat. 9.  Bila santan jadi separuh baru masukkan gula melaka dan garam.





Inilah hasilnya.  Setakat sekilo sotong berapa ekor sahaja yang dapa.  Sotong ni faham-faham sahaja la kan, bila kita masak dia mengecut !!!

Apa-apa pon sedap.

Terima kasih DuniaCikguWan dan DapurKakYah

24 Mei 2015 Ahad Cuti Peristiwa di Negeri Kelantan

as-salam.

KENYATAAN MEDIA YAB MENTERI BESAR KELANTAN SEMPENA PERLAWANAN AKHIR PIALA FA 2015

Pihak Kerajaan Negeri Kelantan sangat mengutamakan aspek keselamatan para penyokong pasukan bola sepak Kelantan yang akan hadir menyaksikan perlawanan akhir Piala FA musim 2015 edisi ke-26 yang akan berlangsung di Stadium Nasional Bukit Jalil pada 23 Mei 2015 nanti. Saya berharap para penyokong dari Kelantan dapat menjaga solat ketika disana, tatasusila sebagai anak Kelantan dan adab ketika menyaksikan perlawanan tersebut.

Pihak Kerajaan Negeri dengan ini mengisytiharkan tarikh 24 Mei 2015 iaitu hari ahad sebagai hari cuti peristiwa di Negeri Kelantan bagi memberi keselesaan kepada anak-anak Kelantan untuk pulang dengan selesa dan tidak tergesa-gesa. Jaga keselamatan dijalan raya dan jangan berlumba-lumba untuk cepat sampai memandangkan ruang masa masih panjang untuk perjalanan pulang.

Harapan saya agar penyokong Kelantan dapat membawa ruh riadhah dan bersukan secara sihat tanpa terlibat dengan sebarang pelanggaran etika dan insiden yang tidak bermoral. Saya sendiri menaruh harapan agar pasukan bola sepak Kelantan, The Red Warriors dapat mempersembahkan aksi yang mantap pada perlawanan akhir nanti dan seterusnya menjuarai Piala FA 2015, insya-Allah.

Pasukan Bola Sepak Kelate Boleh!

YAB USTAZ DATO’ HAJI AHMAD YAKOB
Menteri Besar Kelantan
Bertarikh : 29 REJAB 1436 / 18 MEI 2015
Sumber dari FB Kerajaan Negeri Kelantan