7
Apparently I can able to install XOOPS in our web server successfully. However, I found that there are a tons of problem when installing it.
Problem 1I don't know why my web server cannot return a value by function call "getcwd()". I need to reach out all entry in XOOPS package and replaced it by "dirname($_SERVER['PATH_TRANSLATED'])". I don't know if it is a bug from XOOPS and any improvement in future.
Problem 2Under administrator page -> "Modules", whenever I click on one module for setup, an error message will be prompted.
XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.I checked the code in mainfile.php and I found the following code segment leaded to such problem.
if ( strcasecmp( substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH)) ) {
exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
}
I tried to print the result on page,
substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH) -> "../../../include/cp_hea"
str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH) -> "/home/pchk1/public_html"
However, if I delete the code segment everything went good.
Does anyone have any suggestion? Thanks