简体   繁体   English

如何在Godaddy Linux共享托管服务器上安装xpdf?

[英]How can I install xpdf on a Godaddy Linux shared hosting server?

I'm having trouble determining if it's possible, based on the amount of access I have to my Godaddy server, to install XPDF. 根据我对Godaddy服务器的访问量,我无法确定是否可以安装XPDF。 Could someone shed some light on this? 有人可以阐明这一点吗? Here's the link to XPDF . 这是XPDF的链接。
And here is info about the GoDaddy server. 这是有关GoDaddy服务器的信息。

My goal is to convert PDF's to Plain Text automatically using a PHP script on the server. 我的目标是使用服务器上的PHP脚本自动将PDF转换为纯文本。 So far, other solutions like code posted in the comments of the PHP website have been insufficient. 到目前为止,PHP网站注释中发布的代码等其他解决方案还不够。 All research seems to point to XPDF. 所有研究似乎都指向XPDF。

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. 我怀疑Go Daddy是否会为您安装此软件。

You would need to use a hosting solution that includes this software, or rather use a VPS(virtual private server) or dedicated server. 您将需要使用包含此软件的托管解决方案,或者使用VPS(虚拟专用服务器)或专用服务器。 Then you will have root access and install any software you like. 然后,您将具有root用户访问权限并安装所需的任何软件。 Unmanaged VPS are not expensive, but you need to take care of backups and software upgrades. 非托管VPS并不昂贵,但是您需要注意备份和软件升级。 If you do not want to manage your server, then maybe find a hosting solution that includes the PHP extension and software you need. 如果您不想管理服务器,那么也许可以找到包含PHP扩展和所需软件的托管解决方案。

The page you reference does not give detailed information on PHP (phpinfo). 您引用的页面未提供有关PHP(phpinfo)的详细信息。 With this information, it is possible to determine if you can perhaps do what you are trying to do without xpdf. 有了这些信息,就可以确定是否可以在没有xpdf的情况下做您想做的事情。 There is also pdf2text, IIRC. 还有pdf2text,IIRC。

I installed xpdf and it was a snap. 我安装了xpdf,这很方便。 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. 您可以使用php exec()命令执行与Shell帐户相同的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM