Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибки при запуске #4

Closed
bivilbi opened this issue Jun 27, 2017 · 5 comments
Closed

Ошибки при запуске #4

bivilbi opened this issue Jun 27, 2017 · 5 comments
Labels

Comments

@bivilbi
Copy link

bivilbi commented Jun 27, 2017

Система Deb 8 64
Vesta CP
php 5.6.30
Ставлю
composer require bogdaan/viber-bot-php
composer require monolog/monolog
composer require php-console/php-console
Делаю setup.php.
Получаю 500 ошибку
[client 52.0.253.232:47674] PHP Warning: is_dir(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s):
[client 52.0.253.232:47674] PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'There is no existing directory at "/tmp" and its not buildable
PHP Fatal error: Call to undefined method Viber\Api\Exception\ApiException::getError() in
Права стоят. Даже пробовал 777/
В чем проблема может быть? Спасибо

@Bogdaan
Copy link
Owner

Bogdaan commented Aug 16, 2017

вам необходимо настроить open_basedir (php.ini)
http://lmgtfy.com/?q=open_basedir+restriction+in+effect

@Niloofaar
Copy link

А у меня выходит следующая ошибка:
Remote error: Result[HttpRequest[POST /bot.php HTTP/1.1]@471d9673 > HttpResponse[HTTP/1.1 500 Internal Server Error]@3ad19f7d] null
при запуске php setup.php

@antonr45
Copy link

А у меня выходит следующая ошибка:
Remote error: Result[HttpRequest[POST /bot.php HTTP/1.1]@471d9673 > HttpResponse[HTTP/1.1 500 Internal Server Error]@3ad19f7d] null
при запуске php setup.php

Добрый день!
Как Вы решили данную проблему?

Error: Remote error: Result[HttpRequest[POST /bots/viber/bot.php HTTP/1.1]@572b5ac2 > HttpResponse[HTTP/1.1 500 Internal Server Error]@1323ed84] null

@Niloofaar
Copy link

Niloofaar commented Nov 26, 2018 via email

@antonr45
Copy link

antonr45 commented Nov 26, 2018

Спасибо, Niloofaar!
Проблема была в пути к /vendor/autoload.php
прописал /usr/local/bin/vendor/autoload.php и всё успешно заработало

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants