Skip to main content

Adding RPM Issue

Comments

9 comments

  • Bazinga
    Hello, I want to have pdftotext on my CloudLinux server, my host installed it but it's not functioning... I added poppler (it's part of that I believe) via: cagefsctl --addrpm poppler (that's the only thing I have executed) But it's not working... Any idea?

    Hi, After adding rpm you have to also run 'cagefsctl --force-update' to actually place a new files into filesystem template. However if it depends on some other libraries - most probably it will fails. If it is not working after 'cagefs --force-update' - try running it over strace to check what files are missing.
    0
  • 24x7server
    Hello :), Also you can add custom file OR command in cagefs with the following steps.
    nano /etc/cagefs/conf.d/custom.cfg
    And add following code in this file.
    [custom] comment=custom paths paths=/usr/local/bin/poppler
    Once it's done, You need update cagefsctl on your server with the following command.
    cagefsctl --force-update
    0
  • NixTree
    Did you tried "cagefsctl --force-update", Normally this should do the trick .
    0
  • cPanelMichael
    Hello, Yes, as mentioned, "cagefsctl --force-update" might help. Let us know if the issue continues. Thanks!
    0
  • Friends4U
    Hi, I needed popler for PDFTOTEXT, this is installed now: root@sh1 [~]# which pdftotext /usr/bin/pdftotext So I added: /etc/cagefs/conf.d/custom.cfg [custom] comment=custom paths paths=/usr/bin/pdftotext And run: cagefsctl --force-update I Did not get errors but it did not work... My host tried to help me and got it working when I use the PHP selector, but I want to run the native PHP (because of other problems) but than pdftotext does not work :( Sorry I did not reply earlier, I forget to make the topic watched... Now it is :)
    0
  • cPanelMichael
    Hello, Could you let us know us which steps you are taking to verify it's not working? Do you notice any output to the error_log file within the document root of the PHP script you are testing with? Thank you.
    0
  • Friends4U
    The piece of script (this was working before CloudLinux (other server)).
    $pdl = @popen("which pdftotext 2>&1", "r"); if ($pdl) { $this->pdftotext = fread($pdl, 1024); pclose($pdl); } if (!preg_match('/\/pdftotext$/',$this->pdftotext)) { echo "
    pdftotext is not available on your webserver. " . ($this->pdftotext ? "Server says: " . $this->pdftotext . ". " : "") . "
    Please ask your hoster to make it available for you or deactivate \$collect_pdfs.
    "; $this->error = true; }

    When I choose a custom PHP version it works (the hoster has done this for me, but he didn't know how to make it work on the native PHP version. No error log, it's handled in the script, the output is: pdftotext is not available on your webserver.
    0
  • cPanelMichael
    When I choose a custom PHP version it works (the hoster has done this for me, but he didn't know how to make it work on the native PHP version. No error log, it's handled in the script, the output is: pdftotext is not available on your webserver.

    Hello, Do you have root access to this system? If so, please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • Friends4U
    Thank you, my ticket number is: 7997523
    0

Please sign in to leave a comment.