problem debian err failed to open stream

vu joerbram joerbram at fh-lausitz.de
Mon Mar 5 19:49:42 CET 2007


Hallo *!

I have a Problem after systemupdate.
Detail see my protokoll...

Where do I have to search?

regards Joerg

- Problem:
  - after "apt-get upgrade" kolab do not work
    - Fehlermeldung:

https://kola.launic.de/admin/

Warning: main(admin/include/mysmarty.php) [function.main]: failed to open
stream
: No such file or directory in /usr/share/kolab-webadmin/admin/index.php
on line
 21

Fatal error: main() [function.require]: Failed opening required
'admin/include/m
ysmarty.php' (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/kol
ab-webadmin/admin/index.php on line 21

- Version
  - Debian testing

- cause:
  - ??

- solution:
  - ??
-------------------------------------------------------------------------------
- Protokoll:

  - Error "failed_to_open_stream":
Warning: main(admin/include/mysmarty.php) [function.main]: failed to open
stream
: No such file or directory in /usr/share/kolab-webadmin/admin/index.php
on line
 21

Fatal error: main() [function.require]: Failed opening required
'admin/include/m
ysmarty.php' (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/kol
ab-webadmin/admin/index.php on line 21

  -  Error-log
# tail -n 2 /var/log/apache2/*log | more
==> /var/log/apache2/access.log <==
192.168.128.2 - - [23/Feb/2007:16:56:26 +0100] "GET / HTTP/1.0" 302 350
"-" "Moz
illa/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20060902
Firefox/1.0.4 (De
bian package 1.0.4-2sarge11)"
192.168.128.2 - - [23/Feb/2007:16:56:27 +0100] "GET /favicon.ico HTTP/1.0"
404 3
33 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20060902
Firefo
x/1.0.4 (Debian package 1.0.4-2sarge11)"

==> /var/log/apache2/error.log <==
[Fri Feb 23 18:14:34 2007] [notice] caught SIGTERM, shutting down
[Fri Feb 23 18:14:45 2007] [notice] Apache/2.2.3 (Debian) PHP/4.4.4-8
mod_ssl/2.
2.3 OpenSSL/0.9.8c configured -- resuming normal operations

==> /var/log/apache2/kolab_access.log <==

==> /var/log/apache2/kolab_error.log <==
[Fri Feb 23 18:14:44 2007] [warn] RSA server certificate CommonName (CN)
`kola.f
h-lausitz.de' does NOT match server name!?
[Fri Feb 23 18:14:45 2007] [warn] RSA server certificate CommonName (CN)
`kola.f
h-lausitz.de' does NOT match server name!?

==> /var/log/apache2/kolab_rewrite.log <==


==> /var/log/apache2/kolab_ssl.log <==

==> /var/log/apache2/ssl_access.log <==
192.168.128.2 - - [23/Feb/2007:18:15:38 +0100] "GET /admin/ HTTP/1.1" 200
492
192.168.128.2 - - [23/Feb/2007:18:15:38 +0100] "GET /favicon.ico HTTP/1.1"
404 3
34

==> /var/log/apache2/ssl_error.log <==
[Fri Feb 23 18:15:17 2007] [error] [client 192.168.128.2] File does not
exist: /
var/www/favicon.ico
[Fri Feb 23 18:15:38 2007] [error] [client 192.168.128.2] File does not
exist: /
var/www/favicon.ico

==> /var/log/apache2/ssl_requestr.log <==
[23/Feb/2007:18:15:38 +0100] 192.168.128.2 TLSv1 DHE-RSA-AES256-SHA "GET
/admin/
 HTTP/1.1" 492
[23/Feb/2007:18:15:38 +0100] 192.168.128.2 TLSv1 DHE-RSA-AES256-SHA "GET
/favico
n.ico HTTP/1.1" 334

  - logfile show no really problems....

  - Warnung: [warn] RSA server
    - solution:  create new certificat (s. 061005.kola.installlog)
      # apache2-ssl-certificate

      - Hinweis: apache2-ssl-certificate ist nicht mehr installiert.
        Es wurde beim letzten Update entfernt. (evtl.
Abhaengigkeitsfehler)
        - Abhilfe: apache2-ssl-certificate von einem anderen System kop.

    - cause not found yet time

---------------------------------------------------------------------------
- search in newsgroup

kolab Warning:  mysmarty.php "failed to open stream:"

  - 1 answer only

http://kolab.org/pipermail/kolab-devel/2005-April/003318.html
    -> error in  php-konfig ?

---------------------------------------------------------------------------
  - check php.ini :

v1:/etc/apache2/ssl# ls -latr /etc/php4/apache2/php.ini*
-rw-r--r-- 1 root root 37824 Feb  5 12:49
/etc/php4/apache2/php.ini.ucf-old
-rw-r--r-- 1 root root 38495 Feb  5 12:49 /etc/php4/apache2/php.ini

# php.ini.ucf-old php.ini
< extension=mcrypt.so
< extension=imap.so

    - irgendein update (UCF?) hat 2 Eintraege entfernt. Wiederherstellen:

# cp -p /etc/php4/apache2/php.ini /etc/php4/apache2/php.ini.ucf
# cp -p /etc/php4/apache2/php.ini.ucf-old  /etc/php4/apache2/php.ini


# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)....

    -> Problem not resolved
---------------------------------------------------------------------------
  - lt. http://faq.wiprojekt.de/4_21_de.html
    -> suphp not right installed

v1:/etc/apache2# apt-cache pkgnames | grep php | grep su
libapache-mod-suphp
suphp-common
libapache2-mod-suphp
php4-suhosin
php5-suhosin
v1:/etc/apache2# dpkg --get-selections | grep php | grep su
v1:/etc/apache2#


  - suphp installieren:
# apt-get install libapache2-mod-suphp

---------------
https://kola.launic.de/admin/

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to c
omplete your request.

Please contact the server administrator, root at example.com and inform them
of the
 time the error occurred, and anything you might have done that may have
caused
the error.

More information about this error may be available in the server error
log.

---------------
  - oh a new error...
     - error "docroot"

[Fri Mar 02 17:07:50 2007] [error] [client 192.168.128.10] SoftException
in Appl
ication.cpp:199: Script "/usr/share/kolab-webadmin/admin/index.php"
resolving to
 "/usr/share/kolab-webadmin/admin/index.php" not within configured docroot
[Fri Mar 02 17:07:50 2007] [error] [client 192.168.128.10] Premature end
of scri
pt headers: index.php

    - docroot seen not defined?
      Wer zickt hier rum? php oder kolab....Welche Variable ist gemeint?
        docroot or doc_root
---------------------------------------------------------------------

  - Test doc_root

v1:~# diff /etc/php4/cgi/php.ini.old /etc/php4/cgi/php.ini
438c438
< doc_root =
---
> doc_root =/usr/share
v1:~# /etc/init.d/apache2 restart

     - dito
---------------------------------------------------------------------

news suche: php SoftException Script configured docroot

http://forum.webhostlist.de/forum/webserver-software-linux-unix-etc/79206-php4-p
hp5-unter-apache2-unter-debian-3-1-a-2.html
  -> suPHP_engine off


  - wich config wiil be used?
# find /etc -iname "suphp.conf"
/etc/apache2/mods-enabled/suphp.conf
/etc/apache2/mods-available/suphp.conf
/etc/suphp/suphp.conf

    - we are testing...:
# cp -a /etc/apache2/mods-available /etc/apache2/mods-available.old
# diff /etc/apache2/mods-available.old/suphp.conf
/etc/apache2/mods-available/su
php.conf
4c4
<       suPHP_Engine on
---
>       suPHP_Engine off


  - error "docroot" resolved?
    but browser can not display this page:

https://kola.launic.de/admin/

   ... save only ....

$ more ~/sp7j9lkw.phtml
<?php
/*
 *  Copyright (c) 2004 KlarC$lvdalens Datakonsult AB
 *
 *    Written by Steffen Hansen <steffen at klaralvdalens-datakonsult.se>
....

     -> file include php-sources. Kein Wunder dass Firefox streikt.
        -> d.h. php-engine do not work...
---------------------------------------------------------------------

http://ubuntuforums.org/archive/index.php/t-189231.html
  - sudo apt-get remove --purge suphp-common libapache2-mod-suphp
    -> ist Gurke und vergessen wir schnell wieder....

---------------------------------------------------------------------
????




More information about the users mailing list