Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:24:42+00:00 2026-06-12T12:24:42+00:00

I installed wkhtmltopdf on my Centos server. Everything works fine in the shell. If

  • 0

I installed wkhtmltopdf on my Centos server.
Everything works fine in the shell. If I try to send the command in the shell:

/usr/local/bin/wkhtmltopdf http://www.google.it /var/www/html/test_report.pdf

or simply

wkhtmltopdf ... /var/www/html/test_report.pdf

everything goes well, but the same is not working if i use the exec command in a php script:

exec("/usr/local/bin/wkhtmltopdf http://www.google.it /var/www/html/test_report.pdf");

I changed the chmod of the html folder in 0777, but in the access.log I have the following response:

[08/Oct/2012:17:11:18 +0200] “GET test_report.php HTTP/1.1”
200 311 “-” “Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101
Firefox/15.0.1”

The same script works fine on a windows 2003 server.

Is there a way to get around this error?
Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:24:43+00:00Added an answer on June 12, 2026 at 12:24 pm

    Most likely SELinux is blocking it, I had the same issue once.

    Don’t disable SELinux (that’s just a bad idea/the lazy man’s way to “fix” it), but use the audit2allow tool instead to figure out what context/SELinux booleans need to be altered.

    See http://wiki.centos.org/HowTos/SELinux#head-faa96b3fdd922004cdb988c1989e56191c257c01 for more details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried in all ways to get wkhtmltopdf installed on our web server
Did anybody ever installed wkhtmltopdf on Fedora 14? On http://code.google.com/p/wkhtmltopdf/wiki/compilation there is a step
I installed Python through MacPorts, and then changed the path to that one. /opt/local/bin/python
I've installed wkhtmltopdf on Centos 5.5. (Since there was library issues, it's been 4
When I try to install wkhtmltopdf through build out by using bin/buildout after modifying
Installed Apache Ver 2.2.3 on my vps with Centos 5.6 but when I try
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
Installed Magento 1.6.2.0, and noticed that the links are like http://MYSEUPERSTORE.com/ index.php /customer/account/ but
I'm trying to install wkhtmltopdf on my debian linux server so I will be
Installed SlikSvn on Window 2008 server Created Repository at c:\dia\svn\repos running this windows service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.