How to deploy yiisae on SAE-php Tutorial

Source: Internet
Author: User
How to deploy yiisae on SAEs recently tried to deploy Yii on SAEs, so I downloaded yiisae1.1.3, decompressed it, and copied the framework under yiisae to yii/framework/according to readme instructions, then in protected/config/main. in php, configure the ingress according to https://code.google.com/p/yii-sae/, as shown below:
If (defined ('sae _ TMP_PATH ') {// SAE does not support I/O $ config ['runtimepath'] = SAE_TMP_PATH; // when SAEDbConnection is configured, you do not need to consider the user name and password and perform automatic read/write splitting. $ config ['components'] ['DB'] = array ('class' => 'saedbconnection ', 'charset' => 'utf8', 'tableprefix' => 'tbl _ ', 'emulateprepare' => true, // enable the SQL record 'enableprofiling' => true, 'enablesparamlogging' => true, // cache 'schemacachingduration' => 3600,); // SAE does not support I/O storage assets. If you are in the official environment, merge the css/js files published to assets and put them directly under the app directory. the storage duration is 5000 minutes, the app is 200000 // The latest SAE does not use storage but is imported into siteController. a SAEAssetsAction is imported through site/assets? Pathpattern aaa.txt: output the file content to the web end to access the actual aaa.txt file, $ config ['components'] ['assetmanager'] = array ('class' => 'saeassetmanager', 'domain '=> 'asset'); // if not necessary, you do not need to modify the cache configuration. SAE does not support local file I/O processing. memcache $ config ['components'] ['cache'] = array ('class' => 'saemcache ', 'servers' => array ('host' => 'localhost', 'port' => 11211, 'weight' => 100 ),),);}


After the configuration is completed, access to the sae will be reported, such:
Include (SAEMemCache. php) [function. include]: failed to open stream: No such file or directory
This kind of class file cannot be loaded (the classes in lines 7th and 22nd in the code), is it because I put these directories and files in the wrong place? Or do I have to make another configuration elsewhere? My directory structure is as follows:
| -- 1/
| -- Branches/
| -- Www/
| -- Assets/
| -- Protected/
| --...
| --...
| -- Yii/
| -- Framework/
| -- Base/
| -- Caching/
| -- Cli/
| -- Collections/
| -- Db/
| -- Framework/
| -- Sae/
| -- Vendors/
| -- YiiBase. php
| -- Yiilite. php
| -- Gii/
| --....
.....
| -- Vendors/
...
| -- YiiBase. php
| -- Yiilite. php
| --....
.....


Reply to discussion (solution)

Have you activated the memcache service?

Have you activated the memcache service?
Activated

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.