Still cant install :o(

Still cant install :o(

by Rob Fitzgerald -
Number of replies: 10

Folks

I'm still having no luck installing. Last night I deleted my existing Moodle folder and uploaded a new copy from the stable download - ensuring it was in binary, checked all the folders were present, named correctly (with cases) but I still get :

Could not find this file: /www/r/robfitz/htdocs/Students/lib/setup.php

Are you sure all your files have been uploaded?

Config.PHP file is as follows:



<?PHP // $Id: config-dist.php,v 1.57 2004/05/24 07:43:09 moodler Exp $
unset($CFG);  // Ignore this line

$CFG->dbtype    = 'mysql';       // mysql or postgres7 (for now)
$CFG->dbhost    = 'mysql06.powweb.com';   // eg localhost or db.isp.com
$CFG->dbname    = 'student';      // database name, eg moodle checked case
$CFG->dbuser    = 'robf';    // your database username
$CFG->dbpass    = '*****';    // your database password
$CFG->prefix    = 'mdl_';        // Prefix to use for all table names

$CFG->dbpersist = false;         // Should database connections be reused?
              // "false" is the most stable setting
              // "true" can improve performance sometimes
//=========================================================================
// 2. WEB SITE LOCATION
//=========================================================================

$CFG->wwwroot   = 'http://www.robfitz.com/Students'; checked case

//=========================================================================
// 3. SERVER FILES LOCATION
//=========================================================================

$CFG->dirroot = '/www/r/robfitz/htdocs/Students'; checked case

//=========================================================================
// 4. DATA FILES LOCATION
//=========================================================================

$CFG->dataroot  = '/www/r/robfitz/MoodleData'; checked case

//=========================================================================
// 5. DATA FILES PERMISSIONS
//=========================================================================

$CFG->directorypermissions = 0755;

//=========================================================================
// 6. DIRECTORY LOCATION  (most people can just ignore this setting)
//=========================================================================

$CFG->admin = 'admin';

//=========================================================================
// 7. OTHER MISCELLANEOUS SETTINGS (ignore these for new installations)
//=========================================================================

// Prevent users from updating their profile images
//      $CFG->disableuserimages = true; 
//
// Prevent scheduled backups from operating (and hide the GUI for them)
// Useful for webhost operators who have alternate methods of backups
//      $CFG->disablescheduledbackups = true;
//
// Restrict certain usernames from doing things that may mess up a site
// This is especially useful for demonstration teacher accounts
//      $CFG->restrictusers = 'teacher,fred,jim';
//
// Turning this on will make Moodle filter more than usual, including
// forum subjects, activity names and so on (in ADDITION to the normal
// texts like forum postings, journals etc).  This is mostly only useful
// when using the multilang filter.   This feature may not be complete.
//$CFG->filterall = true;
//
// Setting this to true will enable admins to edit any post at any time
//      $CFG->admineditalways = true;
//
// This variable will override the default block configuration on newly
// created courses, or on upgraded courses from Moodle 1.2.1 and earlier.
// The names here should all be existing blocks in the "blocks" directory.
//      $CFG->defaultblocks = "participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity";
//
// This setting will put Moodle in Unicode mode.  It's very new and
// most likely doesn't work yet.   THIS IS FOR DEVELOPERS ONLY, IT IS
// NOT RECOMMENDED FOR PRODUCTION SITES
//      $CFG->unicode = true;

//=========================================================================
// ALL DONE!  To continue installation, visit your main page with a browser
//=========================================================================
if (file_exists("file:///C|/Documents%20and%20Settings/Rob/Application%20Data/Ipswitch/WS_FTP/Storage/$CFG-%3Edirroot/lib/setup.php"))  {       // Do not edit
    include_once("file:///C|/Documents%20and%20Settings/Rob/Application%20Data/Ipswitch/WS_FTP/Storage/$CFG-%3Edirroot/lib/setup.php");
} else {
    if ($CFG->dirroot == dirname(__FILE__)) {
        echo "<p>Could not find this file: $CFG->dirroot/lib/setup.php</p>";
        echo "<p>Are you sure all your files have been uploaded?</p>";
    } else {
        echo "<p>Error detected in config.php</p>";
        echo "<p>Error in: \$CFG->dirroot = '$CFG->dirroot';</p>";
        echo "<p>Try this: \$CFG->dirroot = '".dirname(__FILE__)."';</p>";
    }
    die;
}
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>


My Site structure is:

/htdocs/Students (Moodle folder) CHMOD 755

/MoodleData (Moodle data folder) CHMOD 755

I'm using the 1.3.2 stable version posted.

I know others use Moodle on this host.

Any suggestions?

RobF

Average of ratings: -
In reply to Rob Fitzgerald

Re: Still cant install :o(

by Gunther Dippe -
Do you know for sure that this is the path from root
/www/r/robfitz/htdocs/Students/lib/setup.php

I don't know what OS is used but if it is Redhat Linux I'd expect this path to be
/var/www/...

If you have access to the prompt (via e.g. ssh), go to the Moodle directory and type
pwd
which will give you the whole path to this directory.

Cheers
In reply to Gunther Dippe

Re: Still cant install :o(

by Rob Fitzgerald -

When I check with my host the following info is displayed for HTTP services:

ServerName:robfitz.com

ServerRoot:www/r/robfitz

In reply to Rob Fitzgerald

Re: Still cant install :o(

by André Krüger -
Picture of Core developers

Please try

// 3. SERVER FILES LOCATION
//=========================================================================

$CFG->dirroot = '/www/r/robfitz/Students';

when your moodle- directory is Students, that mean as subdirectories from Students you have admin, auth, backup

Otherwise use ssh, and make it with pwd in the moodle directory ( /www/r/robfitz/Students ? ) as Gunther wrote.

The last chance write me a private mail, with your ftp or ssh- account, and I will try find the error. 

In reply to André Krüger

Re: Still cant install :o(

by Rob Fitzgerald -

Thanks but I've already tried that. I get this error message:

Error detected in config.php

Error in: $CFG->dirroot = '/www/r/robfitz/Students';

Try this: $CFG->dirroot = '/www/r/robfitz/htdocs/Students';

I've changed the line to this but still get the message that the setup file cant be found.

In reply to Rob Fitzgerald

Re: Still cant install :o(

by Gunther Dippe -
It is indeed something fishy with your installation.
When I go to http://robfitz.com/Students/lib/setup.php
I get a blank page. If this file was not there I would get a page not found error from the web server.

What file permissions do you have?

Also, maybe you should consider letting Andre or I check out your installation (via ftp).

(I checked out your server and got the following info:
FreeBSD, Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 mod_ssl/2.8.17 OpenSSL/0.9.7c PHP-CGI/0.1b PowWebBandwidth/1.0 PowWeb/1.1
14-Jul-2004
66.152.98.24

Unfortunately I have very little experience with pHp as a cgi.)
In reply to Gunther Dippe

Re: Still cant install :o(

by Rob Fitzgerald -

Should that be http://www.robfitz.com/Students/lib/setup.php ?

I get the message following the above link?!?

If I dont have any luck by the end of today I'll take you guys up on your offer about my ftp.

Thanks

Rob

In reply to Rob Fitzgerald

Re: Still cant install :o(

by Gunther Dippe -
It doesn't matter since the ip-address is registered with both names. You should get a blank page in any case (since I got that).
In reply to Rob Fitzgerald

Re: Still cant install :o(

by Rob Fitzgerald -

oops sorry - misunderstood

I'm going to double check a couple of things and get back

cheers guys

Rob

In reply to Rob Fitzgerald

Re: Still cant install :o(

by André Krüger -
Picture of Core developers

I have read your first thread once more. There I have found this lines

//=========================================================================
// ALL DONE!  To continue installation, visit your main page with a browser
//=========================================================================

if (file_exists("file:///C|/Documents%20and%20Settings/Rob/Application%20Data/Ipswitch/WS_FTP/Storage/$CFG-%3Edirroot/lib/setup.php"))  {       // Do not edit
    include_once("file:///C|/Documents%20and%20Settings/Rob/Application%20Data/Ipswitch/WS_FTP/Storage/$CFG-%3Edirroot/lib/setup.php");

In my config.php I have found :

if (file_exists("$CFG->dirroot/lib/setup.php"))  {       // Do not edit
    include_once("$CFG->dirroot/lib/setup.php");

Please check this lines. 

In reply to André Krüger

Re: Still cant install :o(

by Rob Fitzgerald -

Thanks Andre

You spotted the problem big grin

Not sure how that code got there but never mind now

....and thanks to everyone else for their suggestions

Rob