AD:
In AppFog, when you connect Database you will use tunnel but I could not access today.
|
$ af tunnel 1: database_name Which service to tunnel to?: 1 Deploying tunnel application 'caldecott-ap-aws'. <span style="color:red;">Error 600: Not enough memory capacity, you're allowed: 2048</span> |
So I searched why and then I found out the problem.
How I fix
When using af tunnel, it uses 64MB that why error was “Not enough memory capacity“.
I just went to Console Page in AppFog and then reduced memory from one of App.
|
$ af tunnel 1: database_name Which service to tunnel to?: 1 Getting tunnel connection info: OK |
Done
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0
AD:
Thanks Appfog /tmp folder
|
$_SERVER['DOCUMENT_ROOT'].'/../tmp' |
My wp-config.php for WordPress
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
/** Setup for AppFog **/ $services = getenv("VCAP_SERVICES"); if($services !== false){ $services_json = json_decode($services,true); $mysql_config = $services_json["mysql-5.1"][0]["credentials"]; define('DB_NAME', $mysql_config["name"]); define('DB_USER', $mysql_config["user"]); define('DB_PASSWORD', $mysql_config["password"]); define('DB_HOST', $mysql_config["hostname"]); define('DB_PORT', $mysql_config["port"]); define('TMP_FOLDER', realpath($_SERVER['DOCUMENT_ROOT'].'/../tmp')); #local setting }else{ define('DB_NAME', 'DatabaseName'); define('DB_USER', 'UserName'); define('DB_PASSWORD', 'Password!'); define('DB_HOST', 'localhost'); define('TMP_FOLDER', '/tmp'); } |
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0