thinkPHP3.2.3 full version of the above SAE deployment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.