Sunday, August 12, 2012

Apache Command Line

sudo apachectl start
sudo apachectl stop
sudo apachectl restart

Tuesday, August 2, 2011

Batch Update File/Directory Right

sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;

Tuesday, June 7, 2011

Install PHP on IIS7

1. Run PHP window installer.

2. inetmgr

3. Handler Mappings
> Add Script Map...
- Request path = *.php
- Executable = ...\php5isapi.dll
- Name = PHP-ISAPI
> OK
> OK

4. ISAPI and CGI Restrictions
> Add...
- ISAPI or CGI path = ...\php5isapi.dll
- Description = PHP
- Allow extension path to execute = checked
> OK (may exist already)

5. Default Document
> Add...
- Name = index.php
> OK

6. Restart IIS

Monday, September 20, 2010

MySQL problem after upgrade to Mac OS 10.6 #2

Mac OS version:
10.6.4

Problem:
phpMyAdmin show following error after login

"Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly."

Solution:
In folder "/etc"
Recreate "php.ini" from "php.ini.default"
- sudo cp php.ini.default php.ini
- sudo chmod 777 php.ini
- edit /etc/php.ini (using what ever editor)
-> session:auto_start = 1
-> session:save_path = /tmp
-> mysql.default_socket = /tmp/mysql.sock (x2)
- sudo chmod 444 php.ini
Restart apache

Saturday, August 28, 2010

MySQL problem after upgrade to Mac OS 10.6

Mac OS version:
10.6.3

Problem:
MySQL server not started

Solution:
Create a symbolic link named "mysql"
In folder "/usr/local"
Point to "/usr/local/mysql-5.1.42-osx10.5-x86_64"
Restart computer

Wednesday, June 16, 2010

14" Notebook

1) Asus
A52JC

A52JR
http://hk.asus.com/product.aspx?P_ID=OdtStEQ9nbSbUSMI

A52F

2) Lenovo
Thinkpad Edge
Core i3-330M, 14" WXGA, 320G HD, 2G RAM, DVD
HDMI, 6 cell, 2.22kg, Win7 Home Premium
Color:black or red
Price: HK$5,688 up

Saturday, June 12, 2010

Handle photo with iPhone

1) Copy photo file from SD card to iPhone

ZoomIt SD Card Reader (hardware)
Google Search: iPhone SD card reader


2) Upload file to FTP server

iStorage (iPhone App)
Info: search "iStorage" in iTunes App Store
Google Search: istorage

FTP On The Go (iPhone App)
Info: search "ftp" in iTunes App Store
Google Search: ftp on the go
Google Search: iPhone upload ftp


3) Update Exif/IPTC meta data of photo file

Still searching ...