Install 1.7.1+: Linux FC5 with Web path & admin Error.

Install 1.7.1+: Linux FC5 with Web path & admin Error.

by Michael Kovacs -
Number of replies: 0
Thanks to all the help on here, I've managed to get a fresh install of 1.7.1+ on a redhat FC5 install. I did run into the very frustrating issues of the "Web Address not valid" as well as the eternal looping in the alternate "admin" prompt box. Fortunately I was able to get by these probs and get the install to complete. This info is only half original work, and half someone elses.

* For the "Web Address" box, edit the install.php script to this code block:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/// Check the directory settings

if ($INSTALL['stage'] == DIRECTORY) {

error_reporting(0);

/// check wwwroot
if (false && ini_get('allow_url_fopen')) {
if (($fh = @fopen($INSTALL['wwwrootform'].'/install.php', 'r')) === false) {
$errormsg .= get_string('wwwrooterror', 'install').'<br />';
$INSTALL['wwwrootform'] = $INSTALL['wwwroot'];
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And as to the admin directory, this code worked just fine:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//==========================================================================//

/// If the next stage is admin directory settings OR we have just come from there then
/// check the admin directory.
/// If we can open a file then we know that the admin name is correct.

if ($nextstage == ADMIN or $INSTALL['stage'] == ADMIN) {
if (!ini_get('allow_url_fopen')) {
$nextstage = ($goforward) ? ENVIRONMENT : DATABASE;
} else if (($fh = @fopen($INSTALL['wwwrootform'].'/'.$INSTALL['admindirname'].'/environment.xml', 'r')) == false) {
// } else if (($fh = @fopen($INSTALL['wwwrootform'].'/'.'admin/environment.xml', 'r')) !== false) {
$nextstage = ($goforward) ? ENVIRONMENT : DATABASE;
fclose($fh);
} else {
if ($nextstage != ADMIN) {
$errormsg = get_string('admindirerror', 'install');
$nextstage = ADMIN;
}
}
}

//==========================================================================//

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All I did here was changed the "!==" to a "==" and let it go on.

Finally, the custom install I did somehow didn't put on the php_mysql extensions, so I went back to the install CD and manually added them using rpm -Uvh php-mysql-xxx.xxx.xxx


Hope this helps someone else! It really feels likethe install script is broken on the FC5 systems.

Drom


Average of ratings: -