php - How do I fix the Apache error PHPSESSID? -
i getting apache errors aws php library, here error getting apache error log file,
[fri aug 09 15:47:12 2013] [error] failed determine home directory after trying "sh: 1: cd: can't cd ~" (exit code 2) [fri aug 09 15:47:12 2013] [error] phpsessid f97oht9qlsuvknc45t075hohn5 [fri aug 09 15:47:12 2013] [error] f97oht9qlsuvknc45t075hohn5 [fri aug 09 15:47:12 2013] [error] f97oht9qlsuvknc45t075hohn5 =
i tried fix error of http://blog.isnoop.net/2012/04/02/cd-1-cant-cd-to/ forum. after got other 3 lines errors,
[fri aug 09 15:47:12 2013] [error] phpsessid f97oht9qlsuvknc45t075hohn5 [fri aug 09 15:47:12 2013] [error] f97oht9qlsuvknc45t075hohn5 [fri aug 09 15:47:12 2013] [error] f97oht9qlsuvknc45t075hohn5 =
how fix these errors? advance help.
if using version 1.6.x of sdk , explicitly providing credentials client object (instead of relying sdk's config discovery mechanism), try using aws_disable_config_auto_discovery
constant circumvent of self-discovery code.
you must define constant before include sdk.
define('aws_disable_config_auto_discovery', true); require '/path/to/sdk.class.php';
this remove need of hack described on isnoop's blog , may resolve issue other 3 lines showing in log (though i'm not sure why sdk cause lines appear).
Comments
Post a Comment