Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had the exact same issue with PHP running PDFTK on CentOS and spent a number of hours hunting things down, so I hope someone will find this useful. My specific use for PDFTK is for the FillPDF module on Drupal. The solution to the exit code 11 issue was setting a local policy module to allow httpd to run PDFTK. If you grep /var/log/audit/audit.log for pdftk like this</p> <pre><code>grep -i pdftk /var/log/audit/audit.log </code></pre> <p>you should see some errors, probably one for 'execmem', amongst others. Here is what I did to fix the issue...</p> <p>Running this command will pull the errors out of the log and put them into a file for you to review.</p> <pre><code>grep -i pdftk /var/log/audit/audit.log | audit2allow -m pdftklocal &gt; pdftklocal.te </code></pre> <p>If the output looks good (e.g. there IS output), run this command to create the module.</p> <pre><code>grep -i pdftk /var/log/audit/audit.log | audit2allow -M pdftklocal </code></pre> <p>Once the module is created, you make the policy active by running this command.</p> <pre><code>/usr/sbin/semodule -i pdftklocal.pp </code></pre> <p>PDFTK should run now from PHP. If it does not, check to see if httpd_enable_cgi is on by running</p> <pre><code>getsebool httpd_enable_cgi </code></pre> <p>If it is not on, turn it on by running</p> <pre><code>setsebool -P httpd_enable_cgi 1 </code></pre> <p>Details on the policy module can be found here: <a href="http://wiki.centos.org/HowTos/SELinux#head-faa96b3fdd922004cdb988c1989e56191c257c01" rel="nofollow">http://wiki.centos.org/HowTos/SELinux#head-faa96b3fdd922004cdb988c1989e56191c257c01</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload