我在使用5.3版的Laravel时遇到了问题。这个
php artisan migrate
指挥部在当地运作良好。但命令不在服务器上侦听。
服务器有PHP 7.0/mariadb-10.0.x/UTF-8/HTTP2.0/Apache2。
这是错误消息:
$ php artisan migrate
PHP Fatal error: Uncaught ErrorException: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /home/prepend/funcall_excute/funcall_excute.php:307
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'gethostbyaddr()...', '/home/prepend/f...', 307, Array)
#1 /home/prepend/funcall_excute/funcall_excute.php(307): gethostbyaddr('')
#2 /home/prepend/funcall_excute/funcall_excute.php(166): __simplexi_prepend_funcall_create_file('/home/prepend/f...', 'funcall.txt')
#3 /home/prepend/funcall_excute/funcall_excute.php(10): __simplexi_prepend_funcall_get_whitelist()
#4 [internal function]: __fc_dispose(Array)
#5 /sue1924/Alzzle/vendor/symfony/console/Terminal.php(127): proc_open('stty -a | grep ...', Array, Array, NULL, NULL, Array)
#6 /sue1924/Alzzle/vendor/symfony/console/Terminal.php(70): Symfony\Component\Console\Terminal::getSttyColumns()
#7 /sue1924/Alzzle/vendor/symfony/console/Terminal.php(32): Symfony\Component\Console\Terminal::initDimensions()
#8 /sue1924/Alzzle/ven in /home/prepend/funcall_excute/funcall_excute.php on line 307
有人解决了这个问题吗?