Ich hatte diese lösung schon einmal irgendwo gesehen wusste aber nicht das es das schon ist. Wenn ich hinzufügen darf, das execute bit des Eigentümers ist noch von nöten ;)
Leider habe ich folgendes Problem immernoch:
Code: Select all
Warning: main(class.ezpdf.php): failed to open stream: No such file or directory in /var/www/localhost/htdocs/web2/html/de/classes/rechnung.function.php on line 22
Warning: main(): Failed opening 'class.ezpdf.php' for inclusion (include_path='.:/usr/lib/php') in /var/www/localhost/htdocs/web2/html/de/classes/rechnung.function.php on line 22
Fatal error: Cannot instantiate non-existent class: cezpdf in /var/www/localhost/htdocs/web2/html/de/classes/rechnung.function.php on line 45
Rufe ich die Datei über den Browser auf klappt das alles problemlos.
hier kurz ein auszug aus meiner php.ini:
Code: Select all
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
include_path = ".:/usr/lib/php:/usr/lib/php/Smarty/:/usr/lib/php/Cpdf"
;
; Windows: "path1;path2"
;include_path = ".;c:phpincludes"
Verzeichnisstruktur:
Code: Select all
rubidium cronjobs # ls -la /usr/lib/php/
total 232
drwxr-xr-x 18 root root 4096 Aug 31 11:14 .
drwxr-xr-x 36 root root 16384 Sep 17 10:53 ..
-rw-r--r-- 1 root root 6 Aug 31 09:56 .filemap
-rw-r--r-- 1 root root 0 Aug 31 09:56 .lock
drwxr-xr-x 2 root root 4096 Aug 31 09:56 .registry
drwxr-xr-x 2 root root 4096 Jul 22 14:21 Archive
drwxr-xr-x 2 root root 4096 Jul 22 14:21 Console
drwxrwxr-x 3 root root 4096 Aug 31 11:15 Cpdf
drwxr-xr-x 2 root root 4096 Jul 22 14:21 DB
-rw-r--r-- 1 root root 33812 Jul 22 14:21 DB.php
-rw-r--r-- 1 root root 7839 Jul 22 14:21 HTTP.php
drwxr-xr-x 2 root root 4096 Jul 22 14:21 Mail
-rw-r--r-- 1 root root 7331 Jul 22 14:21 Mail.php
drwxr-xr-x 2 root root 4096 Jul 22 14:21 Net
drwxr-xr-x 2 root root 4096 Jul 22 14:21 OS
drwxr-xr-x 4 root root 4096 Jul 22 14:21 PEAR
-rw-r--r-- 1 root root 30154 Jul 22 14:21 PEAR.php
drwxr-xr-x 5 root root 4096 Aug 31 09:56 PhpDocumentor
drwxrwxr-x 4 root root 4096 Aug 26 11:42 Smarty
-rw-r--r-- 1 root root 17972 Jul 22 14:21 System.php
drwxr-xr-x 3 root root 4096 Jul 22 14:21 XML
drwxr-xr-x 2 root root 4096 Jul 22 14:21 build
drwxr-xr-x 4 root root 4096 Aug 31 09:56 data
drwxr-xr-x 5 root root 4096 Aug 31 09:56 doc
-rw-r--r-- 1 root root 9413 Jul 22 14:21 pearcmd.php
-rw-r--r-- 1 root root 26767 Jul 22 14:21 run-tests.php
drwxr-xr-x 5 root root 4096 Aug 31 09:56 test
Wie erwähnt das Problem tritt nur auf der Shell oder via Cron Job auf.
Ich habe mal gesehen das es unter
diese Variable auch mit der Bezeichnung Master und ich glaube Slave gab ob es damit zusammenhängt?