my tests with tcpfd run well as long as in terminal mode. (see 1. and 2.). they don't when browser calls the same file via http (3.): why?
- local apache2 lists the file with appropriate rights:
tcPDFv6213 # ls -l include/tcpdf_font_data.php -rw-r--r-- 1 root root 313432 Dez 2 2016 include/tcpdf_font_data.php
- starting rechnung.php via php provides the demanded rech.pdf correctly
tcPDFv6213 # php rechnung.php >rech.pdf (what is not under focus here)
- unfortunately the same will not provided if invoked via http:
http://localhost/html/platzhalter.One/tcPDFv6213/rechnung.php
the call provides me with "warning" and "fatal error".
Warning: require_once(/var/www/html/platzhalter.One/tcPDFv6213/include/tcpdf_font_data.php): failed to open stream: Permission denied in /var/www/html/platzhalter.One/tcPDFv6213/tcpdf.php on line 113
Fatal error: require_once(): Failed opening required '/var/www/html/platzhalter.One/tcPDFv6213/include/tcpdf_font_data.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/platzhalter.One/tcPDFv6213/tcpdf.php on line 113
- i tried to chmod root:root to www-data:www-data and v.v. then i tried to chmod rights for other to 6 and finally to 7. all that without any success - the error throwed remains the same ..
my system is linux (ubuntu) and mostly running well
edit: after chmod folder include to 755 (see comments, thans martin) the response to http://localhost/html/platzhalter.One/tcPDFv6213/rechnung.php changes from fatal error to warnings (concerning image related functions).
The issue reported here in my question has been solved. thank you, martin.