apache - AWS:EC2 - php files are not working -
when load website, no pages loading , looking apache logs, see following errors
[thu jun 25 09:42:59.279803 2015] [:error] [pid 31196] php warning: include_once(/var/www/htdocs/inc/inc/util/sessionmanager.php): failed open stream: no such file or directory in /var/www/htdocs/inc/util/inag.php on line 13 [thu jun 25 09:42:59.279854 2015] [:error] [pid 31196] php warning: include_once(): failed opening '/var/www/htdocs/inc/inc/util/sessionmanager.php' inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/htdocs/inc/util/inag.php on line 13 [thu jun 25 09:42:59.279875 2015] [:error] [pid 31196] php warning: require_once(/var/www/htdocs/inc/inc/config.php): failed open stream: no such file or directory in /var/www/htdocs/inc/util/inag.php on line 14 [thu jun 25 09:42:59.279884 2015] [:error] [pid 31196] php fatal error: require_once(): failed opening required '/var/www/htdocs/inc/inc/config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/htdocs/inc/util/inag.php on line 14
i have changed root directory /var/www/html /var/www/htdocs did following changes in https.conf
documentroot "/var/www/html" => "/var/www/htdocs"
and worked
i tried change
<directory "/var/www"> allowoverride none # allow open access: require granted </directory>
to
<directory "/var/www"> allowoverride # allow open access: require granted </directory>
but did not work purpose (loading index.php pretty url).
any idea how php files loading properly?
Comments
Post a Comment