Page 1 of 1

lib not found

PostPosted: 24. March 2020 09:19
by maria.199910
Hi
I use wkhtmltopdf to convert to pdf.

from the terminal it works perfectly,
but with apache web server (http: //localhost/job/pp.php) it doesn't work.

content of pp.php:
<?php
exec('wkhtmltopdf 2>&1', $output);
print_r($output);
?>


output error:
Array ( [0] => wkhtmltopdf: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by wkhtmltopdf) [1] => wkhtmltopdf: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by wkhtmltopdf) [2] => wkhtmltopdf: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by wkhtmltopdf) )


the strange thing is that from the terminal it works without errors