When Xoops was installed using the Addon installer of Cpanel, I viewed the following errors.
I am looked like the error of an installer.
I want to learn the fixed step.
--[Access to install url]-------------------------
Warning: main([% installdir %]/include/common.php) [function.main]: failed to open stream: No such file or directory in /home/user/public_html/xoops/mainfile.php on line 95
Warning: main([% installdir %]/include/common.php) [function.main]: failed to open stream: No such file or directory in /home/user/public_html/xoops/mainfile.php on line 95
Fatal error: main() [function.require]: Failed opening required '[% installdir %]/include/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/xoops/mainfile.php on line 95
-------------------------
--[/home/user/public_html/xoops/mainfile.php]-----
...
// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');
define('XOOPS_ROOT_PATH', '[% installdir %]');
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://url_to_xoops_directory');
define('XOOPS_URL', '[% url_to_install_without_trailing_slash %]');
...
(line91-99)
if ( !count($xoopsScriptPath) ) {
die("XOOPS path check: this file cannot be requested directly");
}
$xoopsScriptPath = $xoopsScriptPath[0]['file'];
} else {
...
--------------------------------------------------------------
I am looked like the error of an installer.
I want to learn the fixed step.
--[Access to install url]-------------------------
Warning: main([% installdir %]/include/common.php) [function.main]: failed to open stream: No such file or directory in /home/user/public_html/xoops/mainfile.php on line 95
Warning: main([% installdir %]/include/common.php) [function.main]: failed to open stream: No such file or directory in /home/user/public_html/xoops/mainfile.php on line 95
Fatal error: main() [function.require]: Failed opening required '[% installdir %]/include/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/xoops/mainfile.php on line 95
-------------------------
--[/home/user/public_html/xoops/mainfile.php]-----
...
// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');
define('XOOPS_ROOT_PATH', '[% installdir %]');
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://url_to_xoops_directory');
define('XOOPS_URL', '[% url_to_install_without_trailing_slash %]');
...
(line91-99)
if ( !count($xoopsScriptPath) ) {
die("XOOPS path check: this file cannot be requested directly");
}
$xoopsScriptPath = $xoopsScriptPath[0]['file'];
} else {
...
--------------------------------------------------------------