-2

我正在尝试使用以下 php 应用程序: 开源 Cyanogenmod OTA Server Alternative - 更新链接 -

我用免费的 php 托管服务开设了一个帐户并将项目文件复制到public_html文件夹

当我请求该站点时,我收到此错误:

<br />
<b>Warning</b>: require(vendor/autoload.php): failed to open stream: No such file or directory in <b>/home/imamromh/public_html/index.php</b> on line <b>25</b>
<br />
<br />
<b>Warning</b>: require(vendor/autoload.php): failed to open stream: No such file or directory in <b>/home/imamromh/public_html/index.php</b> on line <b>25</b>
<br />
<br />
<b>Fatal error</b>: require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/imamromh/public_html/index.php</b> on line <b>25</b>
<br />

4

2 回答 2

1

我认为您共享的存储库的链接不正确。但是您遇到的错误是一个常见问题。

您需要使用 composer 进行设置,但由于您使用的是免费主机,如 host-ed,我怀疑您是否可以访问命令行。

要了解这里发生了什么,您得到的错误是因为您没有运行它所需的库。Composer 帮助安装这些库(vendor/autoload.php 是所有这些的一部分) 我不会详细介绍,以免您感到困惑。

因此,或者找到一个可以让您访问命令行的主机。使用它在 digitalocean 上获得 10 美元,足够托管 2 个月。https://m.do.co/c/22764aaa6bbf

设置 LAMP 服务器 https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu

只需执行以下指令,您当前的问题就会得到解决。

cd /var/www/ && composer create-project julianxhokaxhiu/cyanogenmod-ota CyanogenModOTA
于 2016-05-23T10:54:51.087 回答
0

你读过自述文件吗?

如何运行

Clone this repo or download it
cd to the directory where you cloned this repo
npm install
Open node index.js and edit the OtaHost variable with your url.
node index.js
Enjoy!
于 2016-05-23T10:42:41.043 回答