mod_fcgid: stderr: PHP Warning:

Discussion in 'Installation/Configuration' started by alexloko, Jul 5, 2011.

  1. alexloko

    alexloko New Member

    Hi there.
    I saw that this problem have been posted yet in same thread but nothing not help me. So...
    CentOS 5.6 ISPConfig 3.0.3.3 Apache2.2.3 PHP5.3.6 MySQL 5.5.13 Joomla 1.6.3
    I recive next error -

    [warn] mod_fcgid: stderr: PHP Warning: include() [<a href='function.include'>function.include</a>]:
    open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client1/web1/web:/var/www/clients/client1/web1/tmp:/var/www/DOMAIN.TLD/web:/srv/www/DOMAIN.TLD/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)
    in /var/www/clients/client1/web1/web/libraries/joomla/application/component/view.php on line 606

    When i select SuPHP for PHP- everything its OK. But any other selects (Fast-CGI, CGI, ModPHP) work with this error.

    If i swith off "show error" in joomla admin panel - this error not appears, but written in error.log (in 4 days - 162 Mb)

    Pleace, how can i fix it
    Thanks and sorry for my English )
     
  2. till

    till Super Moderator

    Joomla tries to access a file which is not within the paths that are defined in the open_basedir field in the web settings. Add the path where the file that joomla wants to access in the open_basedir field, separated by ":".
     
  3. alexloko

    alexloko New Member

    ok...
    My open_basedir was ->

    /var/www/clients/client1/web1/web:
    /var/www/clients/client1/web1/tmp:
    /var/www/domain.tld/web:
    /srv/www/domain.tld/web:
    /usr/share/php5:
    /tmp:
    /usr/share/phpmyadmin:
    /etc/phpmyadmin:
    /var/lib/phpmyadmin
    ---
    i modifed it to ->

    /var/www/clients/client1/web1/web:
    /var/www/clients/client1/web1/web/includes:
    /var/www/clients/client1/web1/tmp:
    /var/www/domain.tld/web:
    /var/www/domain.tld/web/includes:
    srv/www/domain.tld/web:
    /srv/www/domain.tld/web/includes:
    /usr/share/php5:
    /tmp:
    /usr/share/phpmyadmin:
    /etc/phpmyadmin:
    /var/lib/phpmyadmin
    ---
    but... without succes. May by it`s need to add some other folders to open_basedir ?:confused:
     
    Last edited: Jul 6, 2011
  4. dimas

    dimas Member

    If the open_basedir field in the web settings is OK, then it's most likely the
    eaccellerator bug (if you have it installed).

    I had the same problem some time ago on a very similar setup.

    I had to remove eaccellerator - and the problem went away.

    On CentOS it should be

    yum remove php-eaccelerator

    I wish I knew the way to keep it, though, and avoid the bug -so if anyone has any ideas, I'd welcome it very much!
     
  5. alexloko

    alexloko New Member

    EDITED
    -------------
    Oh no ((( It`no work (((
    After restart httpd - error appears again... Sorry for next
    --------------
    OK - Resolved! (EDITED - Not Resolved)
    Just erase the folder /web in a string /var/www/domain.tld/web:
    /srv/www/domain.tld/web: and al its ok!

    But i`am afraid that this have potential security hole, becose that means that the scripts from ./web wil have access to ./domain.tld/ is`nt?
    ---
    Ok, in any case, with this sting all work correctly. THANK YOU very much!

    /var/www/clients/client1/web1/web:
    /var/www/clients/client1/web1/tmp:
    /var/www/domain.tld/web: (don`t type it -(erase /web ))
    /srv/www/domain.tld/web: (don`t type it -(erase /web ))
    /usr/share/php5:
    /tmp:
    /usr/share/phpmyadmin:
    /etc/phpmyadmin:
    /var/lib/phpmyadmin
     
    Last edited: Jul 6, 2011
  6. alexloko

    alexloko New Member

    Thank you! after remove php-eaccelerator the error is not appeare.
    May appear some other problems after delete it?
     
  7. dimas

    dimas Member

    eAccelerator is a PHP accelerator & optimizer.

    Its official web sites states that it increases the performance of PHP scripts by caching them in their compiled state.

    They also say that eAccelerator should reduce server load and increase the speed of PHP code by 1-10 times.

    Well, that's theory. In practice, frankly speaking, I couldn't tell the difference with or without it - on a few relatively busy php sites.

    So - there will not be any problems apart from (potentially) slower operation of the php-driven sites.
     
  8. Lionheart82

    Lionheart82 New Member

    +1 for eAccelerator removal, it does stop these errors.
    Thank you!
     
  9. till

    till Super Moderator

    You can use xcache instead of eaccelerator. After you uninstalled eaccelaretor with:

    yum remove php-eaccelerator

    install xcache with:

    yum install php-xcache

    xcache is a php binary cache like eaccelerator but it does not cause these problems with joomla and phpmyadmin.
     
    Last edited: Feb 6, 2012
  10. Lionheart82

    Lionheart82 New Member

  11. stevebor1

    stevebor1 New Member

    yum remove php-eaccelerator worked for me.
     

Share This Page