Newly Installed ISPConfig3 on Ubuntu 8.04 : login redirect fail ?

Discussion in 'Installation/Configuration' started by cripperz, Mar 20, 2009.

  1. cripperz

    cripperz New Member

    Hi,

    anyone came across this issue. I have an ubuntu 8.04 succesfully installs on the server. But i will have this issue when i try to log in.

    LOGIN_REDIRECT:/index.php

    what can be the issue ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Make sure that you enabled javascript and cookies in your browser and that you use the correct username and password:

    User: admin
    password: admin
     
  3. cripperz

    cripperz New Member

    hi,

    yes i have enabled javascript and cookies by default. Still facing the same issue. Any other suggestion ?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What browser are you using? Any errors in Apache's error log?
     
  5. DonAteloNow

    DonAteloNow New Member

    I got this issue when I moved to mod_fcgid following "How To Set Up Apache2 With mod_fcgid And PHP5 On CentOS 5.2" guide. Before, when I tried to install and use SuPHP, I couldn't get to control panel at all. Now my /etc/httpd/conf/sites-enabled/000-ispconfig.vhost looks like this:

    <IfModule mod_fcgid.c>
    DocumentRoot /usr/local/ispconfig/interface/web/
    SuexecUserGroup ispconfig ispconfig
    PHP_Fix_Pathinfo_Enable 1
    <Directory /usr/local/ispconfig/interface/web>
    Options Indexes FollowSymLinks MultiViews +ExecCGI
    AllowOverride AuthConfig Indexes Limit Options FileInfo
    AddHandler fcgid-script .php
    FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/php-fcgi-starter .php
    Order allow,deny
    Allow from all
    </Directory>
    </IfModule>

    My phpinfo.php files are working now on other sites and I can access control panel, enter username and password, but after it gives me "LOGIN_REDIRECT:/index.php".

    Error logs:
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 2
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined index: s in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 4
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: include_once(/usr/local/ispconfig/interface/web/js/lib/lang/_javascript.lng) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 4
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/ispconfig/interface/web/js/lib/lang/_javascript.lng' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 4
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined variable: wb in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 298
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined variable: wb in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 303
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined variable: wb in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 308
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined variable: wb in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 313
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined variable: wb in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 318
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined variable: wb in /usr/local/ispconfig/interface/web/js/scrigo.js.php on line 323
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:28 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:29 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:36 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:36 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:36 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Notice: Undefined index: user in /usr/local/ispconfig/interface/lib/classes/auth.inc.php on line 96
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in /usr/local/ispconfig/interface/lib/app.inc.php on line 55
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/var/lib/php/session/sess_29hslse0u5keha5o4olbe64at0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
    [Sun Mar 22 11:28:37 2009] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

    I'm still looking how to sort this out. I'll post if I'll find anything useful.
     
  6. DonAteloNow

    DonAteloNow New Member

    Webinterface with Apache2 Worker + fcgid

    No luck with solution below - still the same result. :(


    + ispconfig need its own php-fcgi-script /var/www/php-fcgi-scripts/ispconfig
    + symbolic link to /usr/local/ispconfig/interface/web in /var/www/ named ispconfig
    + in the 000-ispconfig.vhost the DocumentRoot has to be set to: /var/www/ispconfig

    the mod_fastcgi.c should be changed to:

    <IfModule mod_fcgid.c>
    SuexecUserGroup ispconfig ispconfig
    <Directory /var/www/ispconfig/>
    Options Indexes FollowSymLinks MultiViews +ExecCGI
    AllowOverride AuthConfig Indexes Limit Options FileInfo
    AddHandler fcgid-script .php
    FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
    Order allow,deny
    Allow from all
    </Directory>
    </IfModule>

    #!/bin/sh
    PHPRC=/etc/php5/cgi/
    export PHPRC
    exec /usr/lib/cgi-bin/php
    PHP_FCGI_MAX_REQUESTS=5000
    export PHP_FCGI_MAX_REQUESTS
    export PHP_FCGI_CHILDREN=8
    export PHP_FCGI_MAX_REQUESTS=500
     

Share This Page