apache - One directory on server not using correct include path (Set with php.ini) -


i'm having issues 1 particular directory on site, cannot find included php files outside of root directory. baffles me working every other page outside of directory, particular directory not set itself. set include paths in php.ini so:

include_path = ".:/home1/(username)/inc:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear" 

the files i'm trying access in "inc" folder.

all have in file i'm running include_once ('include.php');

which should, based on php.ini settings, find right file in inc directory.

i've tried couple different things remedy including setting include path so:

include (dirname($_server['document_root'].'/inc/include.php');

which cannot find correct file.

as changing .htaccess located within folder manually set include path particular directory.

# allow user ip <limit post>  order deny,allow  deny  allow (ip of cron server) </limit>  # prevent viewing of .htaccess <files .htaccess>  order allow,deny  deny </files>  #set include path php_value include_path ".:/home1/(username)/inc" 

i not sure if did .htaccess right method produced same error in error.log file.

heres error.log file:

[05-jul-2015 15:50:01] php warning:  include_once(include.php) [<a href='function.include-once'>function.include-once</a>]: failed open stream: no such file or directory in /home1/(username)/public_html/audit/check_expired_email_keys.php on line 7 [05-jul-2015 15:50:01] php warning:  include_once() [<a href='function.include'>function.include</a>]: failed opening 'include.php' inclusion (include_path='.:/usr/lib64/php:/usr/share/pear') in /home1/(username)/public_html/audit/check_expired_email_keys.php on line 7 [05-jul-2015 15:50:01] php fatal error:  call member function query() on non-object in /home1/(username)/public_html/audit/check_expired_email_keys.php on line 9 

i'm @ loss right why directory fail behave rest of site is.

some advice of kind helpful here.

thanks in advance

::edit:: issue solved moving cronjobs directly super-root include directory.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -