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