Centos 5.3 i386
基本安裝, 也沒勾server選項
安裝其它軟體
yum install php
yum install php-gd
yum install php-mysql
yum install mysql-server
yum install php-mbstring
安裝vmware tools
rpm -ivh VMwareTools-7.7.5-156745.i386.rpm
然後跟著提示打
/usr/bin/vmware-config-tools.pl
路徑
mysql data
/var/lib/mysql
www
/var/www/html
add follow to /etc/my.cf, 因為有些資料沒有設default character set , 所以
直接copy檔案的話, 其db的default character會變成latin
[mysql]
default-character-set = utf8
[mysqld]
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_general_ci
init_connect = ‘SET collation_connection = utf8_general_ci’
init_connect = ‘SET NAMES utf8’
更改etc/php.ini
display_error = on
register_global = on
include_path = “.:/php/includes;/var/www/html/FastTemplate"