如何在 Godaddy Linux 共享托管服务器上安装 xpdf?
我无法根据我对 Godaddy 服务器的访问量来确定是否可以安装 XPDF。有人可以解释一下吗? 这是 XPDF 的链接。
这里是有关 GoDaddy 服务器的信息。
我的目标是使用自动将 PDF 转换为纯文本服务器上的 PHP 脚本。到目前为止,其他解决方案(例如在 PHP 网站的评论中发布的代码)还不够。所有研究似乎都指向 XPDF。
I'm having trouble determining if it's possible, based on the amount of access I have to my Godaddy server, to install XPDF. Could someone shed some light on this?
Here's the link to XPDF.
And here is info about the GoDaddy server.
My goal is to convert PDF's to Plain Text automatically using a PHP script on the server. So far, other solutions like code posted in the comments of the PHP website have been insufficient. All research seems to point to XPDF.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从您提供的信息来看,这听起来像是您正在使用的共享托管解决方案。通常,您无法在共享主机帐户上安装系统软件。我怀疑 GoDaddy 会为你安装这个。
您需要使用包含此软件的托管解决方案,或者使用 VPS(虚拟专用服务器)或专用服务器。然后您将获得 root 访问权限并安装您喜欢的任何软件。非托管 VPS 并不昂贵,但您需要注意备份和软件升级。如果您不想管理您的服务器,那么也许可以找到一个包含您需要的 PHP 扩展和软件的托管解决方案。
您引用的页面没有提供有关 PHP (phpinfo) 的详细信息。有了这些信息,就可以确定您是否可以在没有 xpdf 的情况下完成您想要做的事情。还有 pdf2text、IIRC。
From the information you give, it sounds like it is a shared hosting solution you are using. Typically, you will not be able to install system software on a shared hosting account. I doubt that Go Daddy will install this for you.
You would need to use a hosting solution that includes this software, or rather use a VPS(virtual private server) or dedicated server. Then you will have root access and install any software you like. Unmanaged VPS are not expensive, but you need to take care of backups and software upgrades. If you do not want to manage your server, then maybe find a hosting solution that includes the PHP extension and software you need.
The page you reference does not give detailed information on PHP (phpinfo). With this information, it is possible to determine if you can perhaps do what you are trying to do without xpdf. There is also pdf2text, IIRC.
我安装了 xpdf,一切都很顺利。只需按照二进制发行版附带的说明进行操作,然后将文件复制到您选择的目录即可。您可以使用 php exec() 命令执行使用 shell 帐户执行的任何操作。
I installed xpdf and it was a snap. Just followed the instructions that came with the binary distribution then copy the file to the directory of your choice. You can use the php exec() command to do anything that you would with a shell account.