尝试安装maxmind geolite2数据库

我在安装时遇到了一些麻烦。 我有一个托管VPS,我的支持说他们安装了它,这是我尝试使用脚本时出现的错误:</ p>

“警告:require(/ home / SITE / public_html /SITE.info/vendor/autoload.php):无法打开流:第3行/home/SITE/public_html/SITE.info/age1/age1.php中没有此类文件或目录</ p>

致命错误:require():无法打开所需的'/home/SITE/public_html/SITE.info/vendor/autoload.php'(include_path ='。:/ usr / lib / php:/ usr / local / lib / php')在/home/SITE/public_html/SITE.info/age1/age1.php第3行“</ p>

对此有任何帮助将非常感谢。</ p> \ n </ div>

展开原文

原文

I'm having a bit of trouble installing this. I have a managed VPS and my support said they installed it, here is the error that is coming up when I try using the script:

"Warning: require(/home/SITE/public_html/SITE.info/vendor/autoload.php): failed to open stream: No such file or directory in /home/SITE/public_html/SITE.info/age1/age1.php on line 3

Fatal error: require(): Failed opening required '/home/SITE/public_html/SITE.info/vendor/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/SITE/public_html/SITE.info/age1/age1.php on line 3"

Any help on this would be very appreciated.

php

1个回答



 “autoload”:{
“psr-0”:{“MaxMind”:“src /”}
</ code> </ pre>

在composer.json文件中添加此脚本,然后再次安装编写器和依赖项。</ p>
</ div>

展开原文

原文

"autoload": {
    "psr-0": { "MaxMind": "src/" }

Add this script in your composer.json file and do install composer and dependencies again.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问