\/td>
$errors
";
if ($tikidomain) {
$install_link = '?multi=' . urlencode($tikidomain);
}
if (! TikiSetup::isWindows()) {
print "Your options:
1- With FTP access:
a) Change the permissions (chmod) of the directories to 777.
b) Create any missing directories
c) Execute the Tiki installer again (Once you have executed these commands, this message will disappear!)
or
2- With shell (SSH) access, you can run the command below.
a) Run setup.sh and follow the instructions:
\$ bash
\$ cd $docroot
\$ sh setup.sh
The script will offer you options depending on your server configuration.
b) Execute the Tiki installer again (Once you have executed these commands, this message will disappear!)
If you have problems accessing a directory, check the open_basedir entry in
$PHP_CONFIG_FILE_PATH/php.ini or $httpd_conf.
Consult the tiki.org installation guide if you need more help or visit the forums
";
}
exit;
}
}
/**
* Checks if we're using files for the sessions and checks the dir is accessible
* But only if the session has not been started yet.
*
* @return string errors if present
*/
public static function checkSession()
{
$errors = '';
if (ini_get('session.save_handler') == 'files') {
$save_path = ini_get('session.save_path');
if (empty($save_path)) {
$save_path = session_save_path();
if (empty($save_path)) {
$save_path = sys_get_temp_dir();
}
}
// check if we can check it. The session.save_path can be outside
// the open_basedir paths.
$open_basedir = ini_get('open_basedir');
if (empty($open_basedir)) {
if (! is_dir($save_path)) {
$errors .= "The directory '$save_path' does not exist or PHP is not allowed to access it (check open_basedir entry in php.ini).\n";
} elseif (! TikiSetup::is_writeable($save_path)) {
$errors .= "The directory '$save_path' is not writeable.\n";
}
}
if ($errors) {
$save_path = sys_get_temp_dir();
if (is_dir($save_path) && TikiSetup::is_writeable($save_path) && session_status() !== PHP_SESSION_ACTIVE) {
session_save_path($save_path);
$errors = '';
}
}
}
return $errors;
}
}