php - File or directory not found error on apache 1.3 but works on apache 2.x -
so there problem, have hardware devices running apache servers, older run 1.3 , newer ones run 2.x. updating html/php stuff , using relative paths in our includes
include_once("../stuff/other_file.php")
this works fine on 2.x apache servers on 1.3 server returns file not found errors(even tho file exists), tried setting include_path root directory still didnt work.
what did work setting include_once this
include_once($_server['document_root']."/stuff/other_file.php");
which works fine on both, problem there lot of files includes on system take days go through , fix this.
so why doesnt work under apache 1.3?
there can issue httpd , module path correctly defined apache2.x not apache1.x. use httpd-switcher install 1.x scratch. should resolved issue.
for more information use below command httpd-switcher -h
Comments
Post a Comment