login problem with /home/admispconfig/ispconfig/web//lib/module.inc.php)

Discussion in 'General' started by mercer, Sep 1, 2006.

  1. mercer

    mercer New Member

    Hi, I've installed ISPConfig 2.2.6 on Fedora Core 5 64bit. I went through "The Perfect Setup - Fedora Core 5 (64-bit) " and install ISPConfig. Everything was perfect. Created some sites, users... everythings worked. But few days ago i couldn't login into ISPConfig. When i enter as admin or reseller followin error message appears:

    Warning: include(/home/admispconfig/ispconfig/web//lib/module.inc.php) [function.include]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/lib/session.inc.php on line 240
    Warning: include() [function.include]: Failed opening '/home/admispconfig/ispconfig/web//lib/module.inc.php' for inclusion (include_path='.:') in /home/admispconfig/ispconfig/lib/session.inc.php on line 240​

    Is there some files missing or some variables couldn't pass?
    Do i have to install ISPConfig again?
     
    Last edited: Sep 1, 2006
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The module variable is empty and so ISPConfig is not able to retrieve the libraries from the correct directory.

    Do you get this error directly after you entered the login data and clicked on login. Did you change anything manually in the ispconfig database?
     
  3. mercer

    mercer New Member

    Thanks for quick response.

    This error appears just after Login button. On my db_ispconfig table i didn't do anything. There were problem that one of site is requires register globals=on in php.ini. So i changed it manually.
     
  4. mercer

    mercer New Member

    If i reinstall ISPConfig, what about my current sites, users, db_ispconfig table, emails? Is installation removes old records and fill with new values in db_ispconfig table?
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Change it back and use

    Code:
    php_admin_flag register_globals on
    in the Apache Directives field of that web site in ISPConfig.
     
  6. mercer

    mercer New Member

    I've added php_admin_flag register_globals on in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf at virtual host section of the required site. And changed /etc/php.ini and /root/ispconfig/php/php.ini to register_globals off. So restarted httpd service but login problem still the same. So i restarted /etc/init.d/ispconfig_server restart again, "register_globals on" required site is working fine, but my ISPConfig still couldn't login.
     
    Last edited: Sep 4, 2006
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Never edit /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf manually, your changes will be overridden. Add the config directives in the apache directives field in ISPConfig as falko suggested.

    To your ISPConfig problem:

    Please have a look in the ISPConfig mysql database with e.g. phpmyadmin. In the tbale sys_user: is the field "modul" empty in the record where the username is like the user you are trying to login with?
     
  8. mercer

    mercer New Member

    1. Never edit Vhosts_ispconfig.conf manually - Got it.
    2. Problem is still the same. After installation of ISPConfig i changed somethings manually. I don't remember exactly.
    3. I want to reinstall ISPConfig again. So what do i have to do to use old sites ...? How to backup and restore ispconfig mysql records? Does it work: "exporting all db_ispconfig databases, reinstall ISPConfig and import all records to db_ispconfig"?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Plaese answer this question:

    A reinstallation without data loss is only possible if your database is not damaged and therefor I need the above answer.
     
  10. mercer

    mercer New Member

    table: sys_user

    N____ username ___ modul ___ perm ___ modules
    1____ admin ______ isp ______ rwa ____ sys,isp,dns,isp_file,isp_fakt,tools,help
    2____ reseller _____ isp ______ rw _____ isp,isp_file,tools,help
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    This looks fine so far. You can try to unpack and run the latest ISPConfig installer again, the installer script will recognize your currently installed version and performs an update.
     
  12. mercer

    mercer New Member

    Ok, tnx for your help. I'll try it few hours later.
     
  13. rv3000

    rv3000 ISPConfig Developer ISPConfig Developer

    I v installed ispconfig on gentoo box
    IMHO i have similar problem

    When i click e.g. "New User" button it says "The requested document type does not exist."

    When i click e.g. "Help" button it returns

    Warning: include(/home/admispconfig/ispconfig/web//lib/module.inc.php) [function.include]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/lib/session.inc.php on line 237

    Warning: include() [function.include]: Failed opening '/home/admispconfig/ispconfig/web//lib/module.inc.php' for inclusion (include_path='.:') in /home/admispconfig/ispconfig/lib/session.inc.php on line 237
     
  14. rv3000

    rv3000 ISPConfig Developer ISPConfig Developer

    I noticed unserialize method of doctype_def doesn't work
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

  16. rv3000

    rv3000 ISPConfig Developer ISPConfig Developer

    thanks but it still unavailable to add new user for example
    this is debug output



    -------------------

    server => Array

    dir_trenner => /
    server_root => /home/admispconfig/ispconfig
    server_url => http://192.168.1.2:81
    include_root => /home/admispconfig/ispconfig/lib
    classes_root => /home/admispconfig/ispconfig/lib/classes
    temp_dir => /home/admispconfig/ispconfig/temp
    files_dir => /home/admispconfig/ispconfig/files
    backup_dir => /home/admispconfig/ispconfig/backup
    version => 2.2.6
    os => linux
    ort => local
    banner => 0
    db_host => localhost
    db_name => db_ispconfig
    db_user => root
    db_password =>
    db_type => mysql
    mail_server =>
    mail_user =>
    mail_password =>
    smtp_server => localhost
    mode =>
    lang => en
    postfix_config => 1
    smtp_restart => 1
    network_config => 0
    sudo_du_enabled =>
    apache2_php => both
    password_hash => crypt
    do_automated_backups => 0
    ssh_chroot => 0
    log_level => 0
    log_file => /home/admispconfig/ispconfig/ispconfig.log
    log_mail => [email protected]
    log_device => FILE

    tools => Array

    zip => /home/admispconfig/ispconfig/tools/zip/zip
    unzip => /home/admispconfig/ispconfig/tools/unzip/unzip
    imagemagick => Array

    theme => Array

    sitename => ISPConfig
    page => Array
    charset => iso-8859-1
    title => blau
    path => design/default
    style_path => design/blau_100x100
    width => 100%
    modus => full
    buttons => default

    demo => Array

    web_path =>

    user => Array

    userid => 1
    username => admin
    private_dir =>
    firstname =>
    lastname =>
    groups =>
    status => ok
    perms => rwa
    language => en
    email => [email protected]
    email_home =>
    mail_server =>
    mail_user =>
    mail_password =>

    group => Array

    groupid =>
    perms =>
    status =>
    title =>
    members =>
    description =>
    group_dir =>

    session => Array

    id => 678804f5daa0ce7e8689e591a1b55aa5
    approved => 1
    site => ISPConfig
    domain => ispconfig.de
    screen_height => 100
    screen_width => 100
    timeout => 1800
    modules => Array

    modul => Array

    name => isp
    title => ISP Manager
    path => isp_manager
    table_name => isp
    include_dir => /home/admispconfig/ispconfig/lib
    template_dir =>
    item_order => 1
    news => 1
    menu => Array
    element_types => Array
    lang_dir =>
    version =>
    groups => 2
    sidenav => tree

    temp =>


    Warning: Invalid argument supplied for foreach() in /home/admispconfig/ispconfig/lib/session.inc.php on line 254
    The following error occurred:






    The requested document type does not exist.
     
  17. rv3000

    rv3000 ISPConfig Developer ISPConfig Developer

    i dont know why but doctype_def field is incomplite
     
  18. rv3000

    rv3000 ISPConfig Developer ISPConfig Developer

    how do you think is limit for unserialize method in doctype_get function in ispconfig.doc.lib
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you modified the source of the ISPConfig DB library as described in the howto?
     
  20. rv3000

    rv3000 ISPConfig Developer ISPConfig Developer

    Yes, After that some buttons start working
    I can give you access you can have a look
     

Share This Page