Exabytes new host and 2 strange issues

I call it strange because I have never met it before. At least, not before the migration to the new server (so I was informed).

First issue is about 403 Forbidden.

I can access www.something.com/somefolder/index.php

but strangely cannot get

www.something.com/somefolder/index.php?q=somequery

It’s just a query string.

Second issue with phpmyadmin, able to access but cannot get it working properly.

Both have been reported about same time 9.24pm, let us see how quick Exabytes can help me.

09. July 2015 by Basri MY
Categories: General | Leave a comment

Ikan singgang Kelantan

Kalau ke KL biasanya saya suka Syuhada Ikan Singgang area Jalan TAR. Jamu selera masakan Kelantan, ikan singgang dan ulam-ulaman dengan budu. Memang berselera.

Setelah di Google resepi ikan singgang, saya jumpa Blog Hamelia Hamid dengan resepi dan cara memasaknya.

Dalam hanya 1 kali percubaan, saya dapat merasa kesedapan yang sama dengan menu Syuhada Ikan Singgang. Banyak betul faedah internet kepada umat zaman sekarang :)

Setelah mencuba kali kedua semalam, rasanya bertambah enak dan saya dah dapat ingat resepi dan caranya tanpa merujuk kertas sambil memasak.

Begini, bahan yang diperlukan:
2 ekor ikan kembung
4-5 ulas bawang merah
2-3 ulas bawang putih
9-10 keping asam gelugor
5-6 ketul lengkuas
2 biji kacang bendi

Asam gelugor dan lengkuas tu saya lebihkan kerana nak bagi lebih umphhh dan rasa masam.

Bawang putih dan merah selepas potong, dicampak bersama asam gelugor dan lengkuas ke dalam air mendidih.

Bila dah agak keluar bau tu campak pula ikan nya.

Lepas tu masukkan garam, ajinomoto & gula secukup rasa. Last sekali masukkan kacang bendi.

Memang simple, tetapi menyelerakan. Sediakan juga ulam-ulam seperti kacang botol, petai, jering, ulam raja dan paling penting budu dengan tempoyak.

07. July 2015 by Basri MY
Categories: Resepi | Leave a comment

Fast points redemption with Standard Chartered

Quick blog updates.

Just received a parcel from City Link Express few minutes ago. It was sent from one of the partners at Standard Chartered 360 Rewards. It is nice to note that the delivery was so fast, and redemption process was so easy. Request was made yesterday.

Just browse through the items for redemption at Standard Chartered website, add to cart, provide mailing address and it was done.

02. July 2015 by Basri MY
Categories: General | Leave a comment

Tar & Untar

To create archive:
tar -zcvf tar-archive-name.tar.gz source-folder-name

To extract files:
tar -zxvf tar-archive-name.tar.gz

19. June 2015 by Basri MY
Categories: Linux | Leave a comment

Using .htaccess to redirect www to non-www or vice versa

To redirect from www to non-www, edit your .htaccess file suc as:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

and to redirect from non-www to wwww:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

07. June 2015 by Basri MY
Categories: Web | Leave a comment

Usind find command

find [location] -iname “*text*”

eg:

find / -iname “*filename*”

05. June 2015 by Basri MY
Categories: Linux | Leave a comment

Delete file of certain types older than X days

rm -f `find ./ -mtime +5 | grep -i ‘.*[.]h264’`

15. April 2015 by Basri MY
Categories: Linux | Leave a comment

How to install VSFTPD on Ubuntu

apt-get update
apt-get install vsftpd
nano /etc/vsftpd.conf

Change the following:
anonymous_enable=NO
write_enable=YES
ftpd_banner=Welcome to YOUR FTP service.

/etc/init.d/vsftpd restart

03. April 2015 by Basri MY
Categories: Linux | Leave a comment

VSFTP default permission 600? How to fix it.

Okay, just ensure this parameter in /etc/vsftpd.conf accordingly:

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=0002
anon_upload_enable=YES
anon_mkdir_write_enable=YES
file_open_mode=0777

Then restart;

/etc/init.d/vsftpd restart

03. April 2015 by Basri MY
Categories: Linux | Leave a comment

Serialize array safely

I have issue with putting serialized array containing “‘” into database. This is how to fix it:

//to safely serialize
$safe_string_to_store = base64_encode(serialize($multidimensional_array));

//to unserialize…
$array_restored_from_db = unserialize(base64_decode($encoded_serialized_string));

Source here.

30. March 2015 by Basri MY
Categories: PHP | Leave a comment

← Older posts