ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Login


  • 2004-01-28 09:37:14

    Login

    Hi All,

    New user here!
    I followed the steps described in the installation, got all the way to the end successfully and then attempted to log in.
    Here is the list of messages I got:
    Show me the light?

    Warning: session_start(): open(/tmp\sess_c781d89a72d0c56514d8b0bf5793c0bf, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 63

    Warning: Unknown(): open(/tmp\sess_c781d89a72d0c56514d8b0bf5793c0bf, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

  • 2004-01-28 10:19:04

    Login

    which version of ATutor?

  • 2004-01-28 16:18:41

    Turn off cache

    Comment out the caching line near the end of include/config.inc.php, or define it with a directory that exists. On windows it should be something like c:\windows\temp.

    The directory /tmp would not exist on your system

  • 2004-01-29 08:24:02

    Login problem

    Hi Greg,

    I commented the line:
    /* define('CACHE_DIR', ''); */

    I still get the same messages:
    Before the login box:

    Warning: session_start(): open(/tmp\sess_ec5ef75557054c51d70c184d73668ea2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\vitals.inc.php on line 83

    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\basic_html\header.php on line 15


    After the login box:
    Warning: Unknown(): open(/tmp\sess_ec5ef75557054c51d70c184d73668ea2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

    [reply][b]In reply to:[/b]
    Comment out the caching line near the end of include/config.inc.php, or define it with a directory that exists. On windows it should be something like c:\windows\temp.

    The directory /tmp would no...
    [op]forums/view.php?fid=7;pid=995;page=1#1001[/op][/reply]

  • 2004-01-29 08:38:56

    Login problem

    Hi Joel,

    Info:
    ATutor 1.3.1
    - install dir: /htdocs/ATutor

    Apache: 2.0
    - install dir: /Program Files/Apache Group/Apache2

    PHP: 4.3.4
    - install dir: /php

    MySQL: 4.0.17
    - install dir: /mysql

    Config.inc.php file (condensed):

    <?php
    define('DB_USER', 'root');
    define('DB_PASSWORD', '');
    define('DB_HOST', 'localhost');
    define('DB_PORT', '3306');
    define('DB_NAME', 'atutor');
    define('TABLE_PREFIX', 'AT_');
    define('ADMIN_USERNAME', 'admin');
    define('ADMIN_PASSWORD', 'admin');
    define('ADMIN_EMAIL', 'dprice_2000@yahoo.com');
    define('EMAIL_NOTIFY', TRUE);
    define('ALLOW_INSTRUCTOR_REQUESTS', TRUE);
    define('AUTO_APPROVE_INSTRUCTORS', FALSE);
    $MaxFileSize = 1048576; /* 1 MB */
    $MaxCourseSize = 10485760; /* 10 MB */
    $MaxCourseFloat = 2097152; /* 2 MB */
    $IllegalExtentions = array('exe', 'asp', 'php', 'php3', 'bat', 'cgi', 'pl', 'com', 'vbs', 'reg', 'pcd', 'pif', 'scr', 'bas', 'inf', 'vb', 'vbe', 'wsc', 'wsf', 'wsh', );
    define('SITE_NAME', 'Course Server');
    define('DEFAULT_LANGUAGE', 'en');
    /* define('CACHE_DIR', ''); */
    define('BACKWARDS_COMPATIBILITY', FALSE);
    define('AT_INSTALL', true);
    ?>

    Windows XP Pro

    [reply][b]In reply to:[/b]
    which version of ATutor?
    [op]forums/view.php?fid=7;pid=995;page=1#998[/op][/reply]

  • 2004-01-29 10:32:05

    sessions

    ATutor does not officially support Apache2 for this reason.

    find your php.ini file (use windows' search) and edit the line:
    session.save_path = C:\PHP\sessiondata

    and set it to something as above, instead of to /tmp which obviously doesn't exist on your windows machine.

    Make sure that session.save_path uses a directory that exists!

    .joel

  • 2004-01-29 11:36:41

    Login problem

    Hi Joel,

    Here is the entry I created:
    session.save_path = C:\PHP\sessiondata

    And I created the corresponding directory.
    No such luck.

    It still seems to want to use the "tmp" directory.

    Any ideas?

  • 2004-01-29 12:17:10

    Login problem

    Hi Joel,

    Some progress...
    Greg mentioned to either comment out the cache parameter or give it a valid directory.
    I put in C:\PHP\sessiondata.

    The directory now contains the following files:

    .phpCache-storage-V1.4.1-HASH=0 0 KB
    phpCache.lang=enXXloginXphp 2 KB
    phpCache.msgs=en
    phpCache.systemXcourses=systemXcourses 1 KB
    phpCache.systemXlangs=systemXlangs 1 KB

    Ideas?

    thanks,
    Dave

  • 2004-01-29 12:30:02

    Login problem

    Hi Joel,

    I now get this message:
    "ATutor does not appear to be installed. Continue on to the installation"

    Should I reinstall?

    Please confirm my changes:

    php.ini
    session.save_path = c:\php\sessiondata

    config.inc.php
    define('CACHE_DIR', 'C:\PHP\sessiondata\');

    thanks,
    Dave

  • 2004-01-29 12:51:20

    Login problem

    Hi Joel,

    No resolution yet.
    Can you tell me the correct syntax for the
    config.inc.php item:
    define('CACHE_DIR', 'C:\PHP\sessiondata\');

    If I place a backslash on the path, the login.php says:
    "ATutor does not appear to be installed..."
    If I remove it, I get the list of errors.

    Can you tell me what I should do?

    thanks,
    Dave

  • 2004-01-29 13:55:43

    login

    You should not have touched the CACHE_DIR it had nothing to do with any of this and was not the problem. Now that you changed CACHE_DIR you're escaping the single quote which is causing a parse error.

    edit your php.ini file searching for the session.save_path and make sure it points to C:\PHP\sessiondata and that directory must exist.

    Delete anything in that directory and make sure it's empty first.

    Then delete the config.inc.php file and reinstall (you will have to delete your AT_ tables as well in your database).

    .joel

  • 2004-01-29 14:25:48

    Login problem

    Hi Joel,

    I did as you suggested.
    I did not specify a cache directory during installation.
    I get the same list of errors.

    Ideas?

    thanks,
    Dave

  • 2004-01-29 14:34:33

    l

    Hi Joel,

    I would be willing to be the lab rat for Apache 2 if you wouldn't mind spending the time with me to get this thing up and running.
    I would prefer not to go to an older version of Apache if at all possible.

    Thanks,
    Dave

  • 2004-01-29 16:46:08

    Login problem

    Hi Joel,

    In spite of the Login problems, I am able to register a as a user. I checked the database and the new record exists.

    Here are the errors it produces when I login with the newly created ID:

    Warning: session_start(): open(/tmp\sess_8aa792259e093322b5a3bf1d2c8bf01b, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php on line 20

    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\vitals.inc.php on line 83

    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ATutor\include\session.inc.php:20) in C:\Program Files\Apache Group\Apache2\htdocs\ATutor\login.php on line 89

    Warning: Unknown(): open(/tmp\sess_8aa792259e093322b5a3bf1d2c8bf01b, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

  • 2004-01-30 10:25:15

    apache

    PHP support in Apache2 is still [b]Experimental[/b], which is why it is not recommended. Apache 1.x is the most stable version.. much more stable than Apache2, so don't confuse 2 with being the latest and greatest, it's just a newer code base, but isn't a mature version of 1.

    create a php file with phpinfo(); in it and see where your php.ini file is being saved, b/c it still has session.save_path set to /tmp, which is wrong, it should be a directory that exists on your machine. it's possible that you're editing the wrong php.ini file, so double check its location.

    your problem has nothing to do with ATutor. your PHP/Apache installation is not set up correctly.

    .joel

  • 2004-01-30 13:36:48

    Login problem

    Hi Joel,

    Apache 2 - understood.

    I followed your instructions and created a file with the function specified.
    The list states session.save_path as /tmp as you suspected. I've looked everywhere for this reference and can't find it.

    However, in my finite wisdom decided to create a directory by that name under the root as c:/tmp.
    It worked!!!!!!!!!!!!!!!!!

    What do you make of that?

    thanks,
    Dave

  • 2004-01-30 14:28:49

    php.ini

    your phpinfo() page should somewhere tell you where the php.ini page is being looked for. it might be in c:\winnt\system\php.ini
    though it could be in a different place.

    if that file does not exist then php will be using the default options and you will not be able to change them, so you will have to find an original php.ini file and place it where it's supposed to be, then any changes you make to that file will be used by php (after you restart your server).

    installing php with apache is always a bit tricky since it doesn't do it automatically, there's a bit of manual options to set to get it to work.

    glad it works though.

    .joel

  • 2004-01-30 14:52:15

    Login problem

    Hi Joel,

    FYI

    You were right. PHP uses /tmp as a default.

    In my case it was because it was expecting to find the PHP.INI file in the Windows directory.
    I had place it in the System32 dirctory under Windows.

    As a test I moved it up one and it picked up the path.
    Interesting.