Menu

phpVirtualBox + centos7

Help
Mechanicss
2019-06-26
2019-06-26
  • Mechanicss

    Mechanicss - 2019-06-26

    I has Centos7 and try to run phpVirtualBox 5.0.5 ( 5.2 tryed too)

     php -v
    PHP 7.1.29 (cli) (built: May 13 2019 18:32:21) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.1.29, Copyright (c) 1999-2018, by Zend Technologies
    
    cat /etc/default/virtualbox
    VBOXWEB_USER=virtual
    VBOXWEB_HOST=127.0.0.1 #ip
    VBOXWEB_PORT=18083 
    # VBOXWEB_LOGFILE=/var/log/vboxweb.log
    
     ps -ax|grep virt
    15815 pts/1    S+     0:00 grep --color=auto virt
    19768 ?        Sl     0:01 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1 -p 18083
    19780 ?        S      0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
    19787 ?        Sl     0:01 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
    

    but when i try to login phpvirtualbox i have error
    In log file nginx i have

    2019/06/26 13:36:06 [error] 14571#0: *19549 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function VBox_Enum::__construct(), 0 passed in /var/www/phpvirtualbox/endpoints/lib/vboxconnector.php on line 2522 and exactly 2 expected in /var/www/phpvirtualbox/endpoints/lib/vboxServiceWrappers.php:225
    Stack trace:
    #0 /var/www/phpvirtualbox/endpoints/lib/vboxconnector.php(2522): VBox_Enum->__construct()
    #1 /var/www/phpvirtualbox/endpoints/lib/vboxconnector.php(951): vboxconnector->remote_vboxGetEnumerationMap(Array)
    #2 /var/www/phpvirtualbox/endpoints/api.php(316): vboxconnector->__call('vboxGetEnumerat...', Array)
    #3 {main}
      thrown in /var/www/phpvirtualbox/endpoints/lib/vboxServiceWrappers.php on line 225" while reading response header from upstream, client: 83.143.xxx.xxx, server: ckatmonitor.reedlan.com, request: "POST /virtualbox/endpoints/api.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "ckatmonitor.reedlan.com", referrer: "http://*.*.com/virtualbox/"
    
     
  • Smart Guide

    Smart Guide - 2019-10-09
    Post awaiting moderation.

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.