The first step: thinkPHP3.2.3 full version, the directory structure is as follows
Step Two: Create a new app on Sina SAE
Step three: With SVN down, there will be two files: index.php, Config.yaml
At this time, the download good thinkPHP3.2.3 full version (thinkphp folder, public folder, index.php file, the other is not used) first run in the local, Mr. into the directory, "Ps:sae above no write permission",
Then configure the config.php as follows:
' Config item ' = ' config value '
/* Database Settings */
' Db_type ' = ' mysql ',//database type
' Db_host ' = sae_mysql_host_m,//server address
' Db_name ' = sae_mysql_db,//database name
' Db_user ' + sae_mysql_user,//user name
' Db_pwd ' = sae_mysql_pass,//password
' Db_port ' = sae_mysql_port,//Port
' Db_prefix ' = ', '//database table prefix
The Config.yaml file adds the following content:
Handle
-Rewrite:if (!is_dir () &&!is_file () && path~ "^ (. *) $") goto "index.php/$1"
The final directory structure:
Run:
thinkPHP3.2.3 full version of the above SAE deployment