Phpvirtualbox an unknown php error occurred

phpvirtualbox 5.2 — An unknown PHP error occured #93 Comments Hi, I’m having a hard time configuring phpvirtualbox 5.2 on Debian 9. When I open phpvirtualbox, it shows the message «An unknown PHP error occurred. This is most likely a syntax error. « When I open config.php on my browser it shows blank. Can […]

Содержание

  1. phpvirtualbox 5.2 — An unknown PHP error occured #93
  2. Comments
  3. Common phpVirtualBox Errors and Issues

phpvirtualbox 5.2 — An unknown PHP error occured #93

Hi, I’m having a hard time configuring phpvirtualbox 5.2 on Debian 9.

When I open phpvirtualbox, it shows the message «An unknown PHP error occurred. This is most likely a syntax error. «

When I open config.php on my browser it shows blank.
Can anyone help me?

The text was updated successfully, but these errors were encountered:

As said in the phpvirtualbox error window, the most common reason is that you have a syntax error in config.php. But, that error can also be reached if you don’t have enabled the php extension json.

I recommend you to check the syntax of your config.php and check you have enabled the json php extension.

The fact that you are getting a blank page when browsing config.php is quiet normal and means that your web server is able to serve PHP code. That is a good start.
Otherwise, you may have get a page displaying config.php as plain text.

In order to display the PHP error message instead of a blank page, you need to add display_errors = On in your php.ini, then restart your web server and navigate to your config.php again.
Otherwise, you can open your web server logs and look for ‘PHP Parse error .

Let me know if you still have any error.

Thanks a lot, tom077. I am still having a hard time with this.

I created a test.php file with the command in it, and I get the information that json is enabled

If you can, please take a look at my config.php file:

` $Id: config.php-example 585 2015-04-04 11:39:31Z imoore76 $

  • rename to config.php and edit as needed.
  • /* Username / Password for system user that runs VirtualBox */
    var $username = ‘vbox’;
    var $password = ‘xxxxxxx’;

    /* SOAP URL of vboxwebsrv (not phpVirtualBox’s URL) */
    var $location = ‘http://127.0.0.1:18083/’;

    /* Default language. See languages folder for more language options.

    • Can also be changed in File -> Preferences -> Language in
    • phpVirtualBox.
      */
      var $language = ‘en’;

    /* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
    var $vrdeports = ‘9000-9100’;

    • Not-so-common options / tweaking

    // Multiple servers example config. Uncomment (remove /* and /) to use.
    // Add ALL the servers you want to use. Even if you have the server set
    // above. The default server will be the first one in the list.
    /

    var $servers = array(
    array(
    ‘name’ => ‘London’,
    ‘username’ => ‘user’,
    ‘password’ => ‘pass’,
    ‘location’ => ‘http://192.168.1.1:18083/’,
    ‘authMaster’ => true // Use this server for authentication
    ),
    array(
    ‘name’ => ‘New York’,
    ‘username’ => ‘user2’,
    ‘password’ => ‘pass2’,
    ‘location’ => ‘http://192.168.1.2:18083/’
    ),
    );
    */

    // Disable authentication
    #var $noAuth = true;

    // Host / ip to use for console connections
    #var $consoleHost = ‘192.168.1.40’;

    // Disable «preview» box
    #var $noPreview = true;

    // Default preview box update interval in seconds
    #var $previewUpdateInterval = 30;

    // Preview box pixel width
    #var $previewWidth = 180;

    // Max number of progress operations to keep in list
    var $maxProgressList = 5;

    // Enable custom VM icons
    #var $enableCustomIcons = true;

    /*
    Exclusively use phpVirtualBox’s groups configuration rather than VirtualBox groups.
    This has the following effects:

    *) Group changes made in phpVirtualBox will not be reflected in VirtualBox programs such as
    VirtualBox and VBoxManage
    *) Group changes will not affect which folder a VM is placed in
    *) You can rename groups that contain running VMs and move / copy running VMs to groups
    */
    #var $phpVboxGroups = true;

    /*
    Allow to prompt deletion hard disk files on removal from Virtual Media Manager.
    If this is not set, files are always kept. If this is set, you will be PROMPTED
    to decide whether or not you would like to delete the hard disk file(s) when you
    remove a hard disk from virtual media manager. You may still choose not to delete
    the file when prompted.
    */
    var $deleteOnRemove = true;

    • File / Folder browser settings
      */

    // Restrict file types
    var $browserRestrictFiles = array(‘.iso’,’.vdi’,’.vmdk’,’.img’,’.bin’,’.vhd’,’.hdd’,’.ovf’,’.ova’,’.xml’,’.vbox’,’.cdr’,’.dmg’,’.ima’,’.dsk’,’.vfd’);

    // Restrict locations / folders
    #var $browserRestrictFolders = array(‘D:’,’C:UsersIan’); // Or something like array(‘/home/vbox’,’/var/ISOs’)

    // Force use of local, web server based file browser instead of going through vboxwebsrv
    #var $browserLocal = true;

    // Disable file / folder browser.
    #var $browserDisable = true;

    // Disable Windows drive detection
    #var $noWindowsDriveList = true;

    // Just list all drives from C: — Z: without checking if they exist or not.
    // This may be required on older Windows systems with more than one drive.
    #var $forceWindowsAllDriveList = true;

    • Auto-refresh interval in seconds for VirtualBox host memory usage information.
    • Any value below 3 will be ignored.
      */
      var $hostMemInfoRefreshInterval = 5;

    /* Show % of free host memory instead of % used */
    #var $hostMemInfoShowFreePct = true;

    • VM Memory warnings.
    • If $vmMemoryStartLimitWarn is enabled, each time a VM is started through
    • phpVirtualBox, it will check that the available host memory is greater than
    • the base and video memory of the VM + 50MB (a little bit of overhead). If it
    • is not, a confirmation dialog will be presented to confirm that you want to
    • start the VM.
    • If $vmMemoryOffset is set (and $vmMemoryStartLimitWarn), $vmMemoryOffset
    • megabytes is subtracted from the available host memory before the check is
    • performed by $vmMemoryStartLimitWarn logic. For instance it may be a good
    • idea to always have VM memory requirements + 100MB free. 100 is the default.
      */
      #var $vmMemoryStartLimitWarn = true;
      #var $vmMemoryOffset = 100;
    • Display guest additions version of a running VM on its Details tab
      */
      #var $enableGuestAdditionsVersionDisplay = true;

    /* Disable any of phpVirtualBox’s main tabs */
    #var $disableTabVMSnapshots = true; // Snapshots tab
    #var $disableTabVMConsole = true; // Console tab

    /* Screen resolutions for console tab */
    var $consoleResolutions = array(‘640×480′,’800×600′,’1024×768′,’1280×720′,’1440×900’);

    /* Console tab keyboard layout. Currently Oracle’s RDP client only supports EN and DE. */
    var $consoleKeyboardLayout = ‘EN’;

    /* Max number of network cards per VM. Do not set above VirtualBox’s limit (typically 8) or below 1 */
    var $nicMax = 4;

    /* Enable advanced configuration items (normally hidden in the VirtualBox GUI)

    • Note that some of these items may not be translated to languages other than English.
      */
      #var $enableAdvancedConfig = true;

    /* Enable startup / shutdown configuration.

    • This only works in linux and you must add the vboxinit file to
    • your startup scripts list.
      */
      #var $startStopConfig = true;

    // Authentication library.
    // var $authLib = ‘Builtin’;

    // VM ownership
    #var $enforceVMOwnership = true;

    // Per-user VM quota
    #var $vmQuotaPerUser = 2;

    // Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
    // If you do not know what VDE networking is — you do not need it, it is probably not supported by your
    // VirtualBox installation and will cause errors if enabled.
    #var $enableVDE = true;

    // Disable setting SATA controllers port count to the max port number found when saving VMs.
    #var $disableSataPortCount = true;

    /* Enable Parallel Port configuration — EXPERIMENTAL
    LPT support may or may not work for you.
    . VirtualBox LPT support only works in Linux. .
    */
    #var $enableLPTConfig = true;

    /* Enable HardDisk IgnoreFlush configuration. This controls the «ExtraData» setting

    • in «VBoxInternal/Devices/[controller type]/0/LUN#[x]/Config/IgnoreFlush». See
    • Responding to guest IDE/SATA flush requests at:
    • http://www.virtualbox.org/manual/ch12.html#idp12757424
      */
      #var $enableHDFlushConfig = true;
    • Event listener timeout in seconds. This is an advanced option that most people will
    • probably not need to change.
      */
      #var $eventListenerTimeout = 20;

    Источник

    Common phpVirtualBox Errors and Issues

    Clone this wiki locally

    NOTE: If your problem is not fixed or mentioned on this Wiki page, please see this.

    Invalid username or password

    The default username / password to use when logging in to phpVirtualBox is admin / admin.
    See: https://github.com/phpvirtualbox/phpvirtualbox/wiki/Authentication-in-phpVirtualBox

    Some users have reported issues logging in if the PHP engine can’t write to its session folder. It is impossible to cover all the possible PHP configurations here, so difficult to give direct guidance. I suggest you google «php failed to write session data» adding your operating system to the search.

    Error logging in or connecting to vboxwebsrv

    NOTE: This is different than an Invalid username or password error.

    This typically indicates that the username and / or password is incorrect in config.php. These must be set to the system username / password of the user that administers your VirtualBox virtual machines.

    Also, check to make sure that your vboxwebsrv is running and taking requests:

    If you have upgraded from VirtualBox 3.2.x and this was working before, you may have to run the following commands on your VirtualBox host:

    Could not connect to host

    looks like we got no XML document

    This message occurs when the $location setting in config.php is incorrect. The most common cause is that it is set to the location of phpVirtualBox rather than the SOAP URL of vboxwebsrv.

    There are 2 locations involved. One is the URL that phpVirtualBox is accessible through, and the other is the URL through which phpVirtualBox communicates with vboxwebsrv. The $location setting in config.php needs to be set to the URL to vboxwebsrv.

    The setting probably looks something like this:

    but needs to look like this:

    The URL through which phpVirtualBox is accessible does not need to be specified.

    HTTP GET method not implemented

    You are navigating to the $location setting in config.php. This is the URL through which phpVirtualBox communicates with VirtualBox’s vboxwebsrv. Instead you need to navigate to phpVirtualBox’s folder on your web server. Probably something like: http://localhost/phpvirtualbox

    The virtual machine ‘vm name’ has terminated unexpectedly during startup

    This is usually an indication of some sort of misconfiguration of the VM. For instance you may have enabled «Enable VT-x/AMD-V» in the VM’s configuration, but your processor does not support it (just an example). Unfortunately the only way to get the correct error message is to start the VM using another VirtualBox interface such as the VirtualBox GUI, VBoxManage, or VBoxHeadless. These should print a more descriptive error.

    If the cause is not apparent through the error message, post the issue on the forums over at http://www.virtualbox.org

    Method ‘ns1:xxxxxxxxxxx’ not implemented: method name or namespace not recognized

    You are probably using a version of phpVirtualBox that is incompatible with your version of VirtualBox.

    phpVirtualBox versioning is aligned with VirtualBox versioning in that the major and minor release numbers will maintain compatibility. phpVirtualBox 4.0-x will only be compatible with !VirtualBox 4.0.x. Regardless of what the latest x revision is. phpVirtualBox 4.1-x will only be compatible with VirtualBox 4.1.x. ..etc..

    Download and install the correct version of phpVirtualBox, restart apache, and clear your web browser’s cache.

    Function («xxxxxxxxxxxxxxxxx») is not a valid method for this service

    The short answer is to restart apache.

    PHP caches the WSDL file for vboxwebsrv and is still using an older version. The default cache timeout set in php.ini is 1 day. Restarting apache should force PHP to refresh this file.

    Undefined method: xxxxxxxxx

    You have probably upgraded phpVirtualBox and not cleared your web browser’s cache. The version in your web browser’s cache does not match the version on the server. Clear your browser’s cache and refresh the page.

    Empty virtual machine list

    This is usually an indication that the username / password entered in config.php is not that of the user that administers your VirtualBox virtual machines.

    Preview Box only shows VM name. Even when the VM is running.

    Console Tab is ALWAYS disabled

    To enable screen shots and the Console tab, please install a VirtualBox extension pack that supports VRDE such as the Oracle VM VirtualBox Extension Pack found in the Downloads section of http://www.virtualbox.org

    Right click menu is displayed under context menu on VM Details tab when using Firefox

    In Firefox, click on the Tools menu -> Options -> Content -> Advanced (next to Enable JavaScript), and enable the Disable or replace context menus option.

    vboxwebsrv stops after some time

    memory usage of vboxwebsrv grows constantly

    The fixes are easy, but the explanations around the fixes are long. The short answer is that this is a memory leak in pam_smbpass.so — a file used to sync samba passwords with system passwords. You have 2 options:

    Disable authentication in vboxwebsrv.

    Remove PAM references to this file so that it is not called for authentication

    Each have their own gotchas.

    Disable authentication in vboxwebsrv — The end-result of this is that a username / password is no longer required to interact with VirtualBox through vboxwebsrv. If you are running vboxwebsrv bound to localhost or 127.0.0.1, and you are not worried about other people on your system mucking with vboxwebsrv, or you are on a protected network, then this is probably not an issue. To disable authentication in vboxwebsrv, run:

    VBoxManage setproperty websrvauthlibrary null

    as the user that runs VirtualBox on your system. NOTE: a username / password will still be required to log into phpVirtualBox. If you don’t like that option, read on..

    • Remove pam_smbpass.so or PAM references to it — pam_smbpass is a PAM module that can be used on conforming systems to keep the smbpasswd (Samba password) database in sync with the UNIX password file. If you do not use samba (a software suite used to integrate * nix with Windows), removing the samba package from your system is the easiest choice. If you do use samba, but don’t care to keep your your samba user database in sync with system passwords, you can comment out any references to pam_smbpass in /etc/pam.d/ * . If you use samba AND want to keep your samba user database in sync with system passwords, your only choice is to disable vboxwebsrv authentication.

    Preview Box is Black and VM is running / saved

    The power or screen saver settings of the guest OS in the virtual machine is probably set to turn off the monitor or display a blank screen after a period of inactivity. Change this setting in the guest operating system of the virtual machine.

    Use of systemd to start and stop vm and phpvirtualbox coexistence

    If you use systemd script to start and stop vm, in your script_name.service you need to use

    instead to specify user and group as follow

    Also add httpd.service to After parameter into script_name.service.

    You should also start and stop vm only from systemd otherwise you risk to receive connection error.

    2D / 3D acceleration options do not exist

    These options have no effect in a headless environment (console via VRDE) and so are not displayed.

    My error message or issue is not covered here

    Источник


      • OMV 4.x
      • gelöst
      • Upgrade 3.x -> 4.x

    • odinb

    • 24. Juni 2018
      • #1

      Hi!

      After upgrade on my second OMV-box, I am unable to browse to the phpVirtualBox GUI. The VM guest-machines can be started, and are running just fine, it seems, but when I try to open the phpVirtualBox GUI, I get an error stating:

      An unknown PHP error occurred. This is most likely a syntax error in	config.php in phpVirtualBox's folder. The most common errors are an unclosed	quote or a missing	semicolon in a configuration item that has been entered (e.g.	location, username, or password).
      
      
      Depending on your PHP configuration,	navigating directly to config.php in your web	browser may display the PHP error message.
      
      
      If find that this is not the case,	or have no idea what this error message means, please raise the issue	at http://sourceforge.net/p/phpvirtualbox/discussion/help/

      If I browse to the suggested URL for «config.php», I get «Error 404. Sorry, the page you requested was not found.»

      The service is running:

      root@x2100:~# ps -ef |grep vbox
      vbox       739     1  0 19:51 ?        00:00:00 /usr/lib/virtualbox/vboxwebsrv --host 127.0.0.1 --port 18083
      vbox      1129     1  0 19:51 ?        00:00:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
      vbox      1268     1  0 19:51 ?        00:00:02 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
      vbox      2199  1268  1 19:52 ?        00:00:30 /usr/lib/virtualbox/VBoxHeadless --comment Machine1 --startvm d1835859-aa07-409d-8f8e-4e73dc3992bb --vrde config
      vbox      2255  1268  9 19:52 ?        00:02:37 /usr/lib/virtualbox/VBoxHeadless --comment Machine2 --startvm dfd0ad57-d2cd-4c2a-9980-2e22804e4b99 --vrde config
      vbox      2297  1268  1 19:52 ?        00:00:23 /usr/lib/virtualbox/VBoxHeadless --comment Machine3 --startvm 1cdf706c-4d7a-4b8a-b031-ff2018fdf185 --vrde config
      vbox      2339  1268  1 19:53 ?        00:00:28 /usr/lib/virtualbox/VBoxHeadless --comment Machine4 --startvm f3536833-c6bc-403e-9b32-f91f2aca7481 --vrde config
      root      3954  2997  0 20:20 pts/1    00:00:00 grep vbox
      root@x2100:~#

      I cannot find any significant differences between this and another OMV-box where it works after upgrade.

      Any ideas?

      • #2

      Seeing that the «openmediavault-webgui_error.log» is throwing errors about «»/var/www/openmediavault/virtualbox/index.php» is not found (2: No such file or directory)» and «»/var/www/openmediavault/virtualbox/css/theme-all.min.css» failed (2: No such file or directory)», but then again, I see these errors on the working box, so maybe nothing.

      I also see in messages that that OMV-engined is segfaulting every time I login to the OMV-gui and the phpvirtualbox-GUI (kernel: [ 441.370153] omv-engined[1894]: segfault at 7fba703f9205 ip 0000555aa68c034f sp 00007fff3ce84760 error 4 in php7.0[555aa6653000+3aa000]), but then again, see this on both the working and non-working machine.

      Really cannot find any leads to where to look.

      • #3

      Tried to, via the OMV-GUI, remove virtualbox plugin, reboot, then re-install it via same GUI. Had to re-point the plugin to the VM folder, but after this, they showed up, and works. The PHPVirtualBox GUI now also works, go figure!

      The above mentioned errors are however still there, the segfault one seemingly the most serious one. Maybe someone should look into the cause of that one, since my google searches showed other people had also seen this!

    #1 2010-09-08 08:37:27

    abauomy
    Member
    Registered: 2009-06-14
    Posts: 22

    phpvirtualbox not work

    hi All
    i try to install phpvirtualbox as «http://code.google.com/p/phpvirtualbox/ … PHPInstall»

    i install
    #pacman -S apache php-apache
    and start httpd & vboxwebsrv

    but i get this error

    An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox’s folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).

    Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message.

    If find that this is not the case, or have no idea what this error message means, please raise the issue at http://code.google.com/p/phpvirtualbox/issues/list

    Please help

    #2 2010-09-08 09:50:12

    litemotiv
    Forum Fellow
    Registered: 2008-08-01
    Posts: 5,026

    Re: phpvirtualbox not work

    How about following the advice in the error message?

    #3 2010-09-09 01:51:11

    abauomy
    Member
    Registered: 2009-06-14
    Posts: 22

    Re: phpvirtualbox not work

    i think the problim is no libapache2-mod-php5 packeg in arch

    #4 2010-09-09 08:57:12

    abauomy
    Member
    Registered: 2009-06-14
    Posts: 22

    Re: phpvirtualbox not work

    how i check that libapache2-mod-php5 registerd in apatche?

    PLZ help

    #6 2010-09-09 09:46:49

    abauomy
    Member
    Registered: 2009-06-14
    Posts: 22

    Re: phpvirtualbox not work

    yes i do it

    #7 2010-09-13 19:18:07

    stefanwilkens
    Member
    From: Enschede, the Netherlands
    Registered: 2008-12-10
    Posts: 624

    Re: phpvirtualbox not work

    issue worked out with the developer:
    http://code.google.com/p/phpvirtualbox/ … tail?id=63

    in /etc/php/php.ini, please remove the ; in front of:

    ;extension=json.so
    ;extension=soap.so

    and then restart apache:

    sudo /etc/rc.d/httpd restart

    I have tested this, it worked for me smile

    Last edited by stefanwilkens (2010-09-13 19:20:23)


    Arch i686 on Phenom X4 | GTX760

    root@atlantic556:~# sudo service apache2 status
    ● apache2.service - LSB: Apache2 web server
       Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
      Drop-In: /lib/systemd/system/apache2.service.d
               └─apache2-systemd.conf
       Active: inactive (dead) since Wed 2017-02-08 19:21:48 CET; 8s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 2204 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
      Process: 2196 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

    Feb 08 19:21:48 atlantic556.dedicatedpanel.com systemd[1]: Starting LSB: Apache2 web server...
    Feb 08 19:21:48 atlantic556.dedicatedpanel.com systemd[1]: Started LSB: Apache2 web server.

    root@atlantic556:~# systemctl status nginx.service
    ● nginx.service - LSB: Stop/start nginx
       Loaded: loaded (/etc/init.d/nginx; bad; vendor preset: enabled)
       Active: failed (Result: exit-code) since Wed 2017-02-08 18:51:35 CET; 2min 22s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 6170 ExecStart=/etc/init.d/nginx start (code=exited, status=1/FAILURE)

    Feb 08 18:51:35 atlantic556.dedicatedpanel.com systemd[1]: Starting LSB: Stop/start nginx...
    Feb 08 18:51:35 atlantic556.dedicatedpanel.com nginx[6170]: nginx: [emerg] open() "/var/log/apache2/domains/atlantic556.dedicatedpanel.com.error.log" failed (2: No such file or directory)
    Feb 08 18:51:35 atlantic556.dedicatedpanel.com systemd[1]: nginx.service: Control process exited, code=exited status=1
    Feb 08 18:51:35 atlantic556.dedicatedpanel.com systemd[1]: Failed to start LSB: Stop/start nginx.
    Feb 08 18:51:35 atlantic556.dedicatedpanel.com systemd[1]: nginx.service: Unit entered failed state.
    Feb 08 18:51:35 atlantic556.dedicatedpanel.com systemd[1]: nginx.service: Failed with result 'exit-code'.


    Подскажите, пожалуйста, как исправить?

    Веста свои сервисы настроила. ОС переставлять придётся. Потом настрою ещё раз.


    Пользователь добавил сообщение 09 Февраля 2017, 11:38:35:


    Вcё переставил. Есть контакт. Но теперь ошибка при загрузке страницы:

    An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).

    Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message.

    If find that this is not the case, or have no idea what this error message means, please raise the issue at http://sourceforge.net/p/phpvirtualbox/discussion/help/


    Пользователь добавил сообщение 09 Февраля 2017, 14:50:01:


    Пошаманил и запустил. Только теперь пишет, что версия phpvirtualbox 5.0.5, а для virtualbox 5.1.14 нужна новее. Но, вроде, работает и так. Спасибо за помощь!

    Cannot login to 5.0.5 on Ubuntu 18.04 running VirtualBox 5.2 #130

    Comments

    dlfuller commented Jun 4, 2018

    I’m trying to get an idea why phpVirtualBox logins always fail after upgrading to Ubuntu Server 18.04, VirtualBox 5.2.12r122591, Extension Pack 5.2.12, and phpVirtualBox 5.0.5.

    VirtualBox seems to be running as expected on the server, but any phpVirtualBox logins are met with dialog «An unknown PHP error occurred. This is most likely a syntax error…».
    I’ve worked with a couple of pristine config.php-example files changing only my username and password to that of the server host to create a config.php.

    What am I missing? Is this truly a config.php problem with syntax or is it something else? Nothing seems amiss in vboxwebsrv.log or VBoxSVC.log

    `vboxautostart-service.service loaded active exited
    vboxballoonctrl-service.service loaded active exited
    vboxdrv.service loaded active exited
    vboxweb-service.service loaded active running
    vgauth.service loaded inactive dead
    virtualbox.service loaded active exited

    $ lsof -i -n | grep vboxweb
    (returns…)
    vboxwebsr 1515 dlfuller 9u IPv4 25701 0t0 TCP 127.0.0.1:18083 (LISTEN)
    `
    Thanks for any suggestions.

    The text was updated successfully, but these errors were encountered:

    h6w commented Jun 4, 2018

    dlfuller commented Jun 5, 2018

    Thanks for the suggestion @h6w. I had followed a couple of not-too-old how-tos that linked to 5.0.5 had no idea newer 5.2 was available.

    Okay, I deleted all the old phpvirtualbox directory and downloaded 5.2 from your link. Next was making changes in the new /var/www/html/phpvirtualbox/config.php file:
    var $username = ‘vbox’; to the system admin username of my server var $username = ‘dlfuller’;
    var $password = ‘pass’; to the system admin password of my server var $password = ‘……………’;

    Only two lines were changed. Next the config.php file owner and group were changed to match the other files in the phpvirtualbox directory.

    Reboot everything and still the login is met with «An unknown PHP error occurred. This is most likely a syntax error…» dialog. Any additional troubleshooting hints?

    `vboxautostart-service.service loaded active exited vboxautostart
    vboxballoonctrl-service.service loaded active exited vboxballoonct
    vboxdrv.service loaded active exited VirtualBox Li
    vboxweb-service.service loaded active running vboxweb-servi
    vgauth.service loaded inactive dead Authenticatio
    virtualbox.service loaded active exited LSB: VirtualB

    vboxwebsr 1511 dlfuller 9u IPv4 25881 0t0 TCP 127.0.0.1:18083 (LISTEN
    `

    Источник

    Error accessing PHPVirtualBox #179

    Comments

    Tsolete commented Jul 22, 2019

    I’ve recently updated my system (Centos 7 64bits) and I cannot log in. It shows me this message.

    «An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox’s folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).

    Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message.

    If find that this is not the case, or have no idea what this error message means, please raise the issue at https://github.com/phpvirtualbox/phpvirtualbox/issues»

    The config hasn’t been modified

    The text was updated successfully, but these errors were encountered:

    negativzeroe commented Jul 26, 2019

    Bumping because I’m having the same issue.

    trasherdk commented Jul 26, 2019

    Did you try to check the config.php as suggested?
    One way of checking php -l config.php

    Tsolete commented Jul 26, 2019

    Yes. This is the output.

    «No syntax errors detected in config.php»

    negativzeroe commented Jul 26, 2019 •

    ^ Same
    I’m on Debian Buster btw — php7.3.

    trasherdk commented Jul 26, 2019

    Maybe the PHP version is your issue.
    I’m on Slackware x64 14.2 with PHP 5.6.40 (cli) (built: Feb 7 2019 14:31:35) ;^)

    Trying to read the source code is a nightmare. Even the inline comments are misleading.
    It’s an impressive piece of software.

    Tsolete commented Jul 26, 2019

    I’m in PHP 7.3 too. The problem is that the past week I also was in PHP 7.3 and PHPvirtualbox runned smoothly

    negativzeroe commented Jul 26, 2019

    I have to second this because the instructions say to use whatever is current for your distro as long as it’s >=5.1 and Debian only has 7 in the default repos.

    trasherdk commented Jul 26, 2019

    I’ve just (10 min. ago) upgraded VirtualBox from 6.0.4 to 6.0.10 on the host and all guests.
    Minutes before that, I upgraded the Linux Kernel to 4.4.186, the latest on Slackware.

    No problem what so ever.

    negativzeroe commented Jul 26, 2019

    Error log from my apache logs:

    [Fri Jul 26 06:25:01.899739 2019] [mpm_prefork:notice] [pid 10871] AH00163: Apache/2.4.25 (Debian) configured — resuming normal operations [Fri Jul 26 06:25:01.899765 2019] [core:notice] [pid 10871] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 06:25:01.901347 2019] [core:notice] [pid 10871] AH00052: child pid 22328 exit signal Segmentation fault (11) [Fri Jul 26 06:25:01.901749 2019] [core:notice] [pid 10871] AH00052: child pid 28744 exit signal Segmentation fault (11) [Fri Jul 26 06:25:01.901769 2019] [core:notice] [pid 10871] AH00052: child pid 28794 exit signal Segmentation fault (11) [Fri Jul 26 07:58:47.490321 2019] [core:notice] [pid 10871] AH00052: child pid 31297 exit signal Segmentation fault (11) zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted [Fri Jul 26 08:27:10.582289 2019] [core:notice] [pid 10871] AH00052: child pid 12498 exit signal Segmentation fault (11) [Fri Jul 26 08:27:10.582391 2019] [mpm_prefork:notice] [pid 10871] AH00169: caught SIGTERM, shutting down [Fri Jul 26 08:30:44.566954 2019] [mpm_prefork:notice] [pid 29524] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 08:30:44.566988 2019] [core:notice] [pid 29524] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 08:32:01.861890 2019] [mpm_prefork:notice] [pid 29524] AH00169: caught SIGTERM, shutting down [Fri Jul 26 08:32:52.039300 2019] [mpm_prefork:notice] [pid 1067] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 08:32:52.054827 2019] [core:notice] [pid 1067] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 08:40:46.865603 2019] [mpm_prefork:notice] [pid 1067] AH00169: caught SIGTERM, shutting down [Fri Jul 26 08:40:46.960039 2019] [mpm_prefork:notice] [pid 16415] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 08:40:46.960118 2019] [core:notice] [pid 16415] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 09:02:39.951267 2019] [mpm_prefork:notice] [pid 16415] AH00169: caught SIGTERM, shutting down [Fri Jul 26 09:08:04.646049 2019] [mpm_prefork:notice] [pid 29397] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 09:08:04.646104 2019] [core:notice] [pid 29397] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 09:11:36.329315 2019] [mpm_prefork:notice] [pid 29397] AH00169: caught SIGTERM, shutting down [Fri Jul 26 09:11:36.395012 2019] [mpm_prefork:notice] [pid 31401] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 09:11:36.395056 2019] [core:notice] [pid 31401] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 09:11:37.688984 2019] [mpm_prefork:notice] [pid 31401] AH00169: caught SIGTERM, shutting down [Fri Jul 26 09:11:37.752531 2019] [mpm_prefork:notice] [pid 31427] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 09:11:37.752585 2019] [core:notice] [pid 31427] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 09:15:40.678993 2019] [mpm_prefork:notice] [pid 31427] AH00169: caught SIGTERM, shutting down [Fri Jul 26 09:15:40.801245 2019] [mpm_prefork:notice] [pid 1232] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 09:15:40.801355 2019] [core:notice] [pid 1232] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 09:15:48.386211 2019] [mpm_prefork:notice] [pid 1232] AH00169: caught SIGTERM, shutting down [Fri Jul 26 09:15:48.454645 2019] [mpm_prefork:notice] [pid 1869] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 09:15:48.454696 2019] [core:notice] [pid 1869] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 09:18:03.693135 2019] [mpm_prefork:notice] [pid 1869] AH00169: caught SIGTERM, shutting down [Fri Jul 26 09:19:40.691836 2019] [mpm_prefork:notice] [pid 4330] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 09:19:40.691883 2019] [core:notice] [pid 4330] AH00094: Command line: ‘/usr/sbin/apache2’ [Fri Jul 26 12:19:51.598868 2019] [mpm_prefork:notice] [pid 4330] AH00169: caught SIGTERM, shutting down [Fri Jul 26 12:19:51.713103 2019] [mpm_prefork:notice] [pid 30431] AH00163: Apache/2.4.38 (Debian) configured — resuming normal operations [Fri Jul 26 12:19:51.713195 2019] [core:notice] [pid 30431] AH00094: Command line: ‘/usr/sbin/apache2’

    h6w commented Jul 27, 2019 •

    That’s funky. I think Apache segfaulting is a little outside our scope. You have some sort of corruption in the zend heap (that’s PHP). I’d be guessing there’s some library conflict between your build of apache and your build of php and/or the libraries they link to.

    Источник

    An unknown PHP error occurred #286

    Comments

    gentlemgp commented Oct 7, 2021

    Hey there. I have got a fresh installation of virtualbox (v6.1.26) and phpvirtualbox (latest develop version).

    I have tried several times and I always run into this error messages, while browsing to phpvirtualbox.

    «An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox’s folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).
    Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message.
    If find that this is not the case, or have no idea what this error message means, please raise the issue at https://github.com/phpvirtualbox/phpvirtualbox/issues»

    I have checked config.php and no mistakes were found. I have also checked installation of json and libxml extensions.

    Here is my config.php for further information.
    config.php.txt

    The text was updated successfully, but these errors were encountered:

    gentlemgp commented Oct 7, 2021

    OS is Debian bullseye
    php version is 7.4

    dbautsch commented Oct 8, 2021

    I suggest you to take a look into apache log file and/or increase PHP log verbosity, so you can potentially see the error in the web browser (don’t forget to revert to an original verbosity level after fixing this issue).

    JD-aus commented Oct 15, 2021

    did you get this sorted ?

    i am running on Debian 11 and its working fine for me (although it took me a LONG time to get it running initially).

    gentlemgp commented Oct 15, 2021

    I haven’t made any progress. The log files were inconspicuous.

    JD-aus commented Oct 18, 2021

    Have you tried just leaving as much of the configuration at default as you can and seeing if that works?

    I am using debian11, so I know it works. I will compare your file to mine when I get a chance.

    JD-aus commented Oct 18, 2021 •

    var $name = ‘removed’; — this isn’t in my config file
    var $enableAdvancedConfig = true; is commented out in my file
    the following are different:
    var $username = ‘removed’; — obviously
    var $password = ‘removed’; — .
    var $browserRestrictFolders = array(‘/home/vbox/VBox’); — does this DIR exist ? case correct?

    I have used your config file in my setup and it worked to a degree (no php errors — just can’t talk to my vboxweb service)

    i think the problem is either going to be permissions of webserver related . have you tried testing php by creating a new file and adding phpinfo(); then browse to that file in your webbrowser and see if you get the expected output ?

    did you chown the files to the apache user / group ? (you will need to google exactly how to di this)

    how are your files setup ? I have mine in /var/www/phpvirtualbox with a soft link from that dir to /var/www/html/phpvb then i look up http://127.0.0.1/phpvb

    your setup should be working . just troubleshoot the basics and see what you can figure out and let me know what you work out please .

    Источник

    An unknown PHP error occurred #211

    Comments

    shanov commented Dec 1, 2019

    Error: An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox’s folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).

    Host OS:
    arch linux
    php 7.3
    virtualbox 6.0
    apache 2.4

    httpd, vboxwebsrv, VBoxSVC logs doesn’t error content.

    • phpVirtualBox example configuration.
    • @Version $Id: config.php-example 585 2015-04-04 11:39:31Z imoore76 $
    • rename to config.php and edit as needed.

    /* Username / Password for system user that runs VirtualBox */
    var $username = ‘vbox’;
    var $password = ‘pass’;

    /* SOAP URL of vboxwebsrv (not phpVirtualBox’s URL) */
    var $location = ‘http://127.0.0.1:18083/’;

    /* Default language. See languages folder for more language options.

    • Can also be changed in File -> Preferences -> Language in
    • phpVirtualBox.
      */
      var $language = ‘en’;

    /* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 /
    var $vrdeports = ‘9000-9100’;
    /
    Set the default VRDE address, e.g. 192.168.1.1 */
    #var $vrdeaddress = ‘127.0.0.1’;

    • Not-so-common options / tweaking

    // Multiple servers example config. Uncomment (remove /* and /) to use.
    // Add ALL the servers you want to use. Even if you have the server set
    // above. The default server will be the first one in the list.
    /

    var $servers = array(
    array(
    ‘name’ => ‘London’,
    ‘username’ => ‘user’,
    ‘password’ => ‘pass’,
    ‘location’ => ‘http://127.0.0.1:18083/’,
    ‘authMaster’ => true // Use this server for authentication
    ),
    array(
    ‘name’ => ‘New York’,
    ‘username’ => ‘user2’,
    ‘password’ => ‘pass2’,
    ‘location’ => ‘http://192.168.1.2:18083/’
    ),
    );
    */

    // Disable authentication
    #var $noAuth = true;

    // Host / ip to use for console connections
    #var $consoleHost = ‘127.0.0.1’;

    // Disable «preview» box
    #var $noPreview = true;

    // Default preview box update interval in seconds
    #var $previewUpdateInterval = 30;

    // Preview box pixel width
    #var $previewWidth = 180;

    // Max number of progress operations to keep in list
    var $maxProgressList = 5;

    // Enable custom VM icons
    #var $enableCustomIcons = true;

    /*
    Exclusively use phpVirtualBox’s groups configuration rather than VirtualBox groups.
    This has the following effects:

    *) Group changes made in phpVirtualBox will not be reflected in VirtualBox programs such as
    VirtualBox and VBoxManage
    *) Group changes will not affect which folder a VM is placed in
    *) You can rename groups that contain running VMs and move / copy running VMs to groups
    */
    #var $phpVboxGroups = true;

    /*
    Allow to prompt deletion hard disk files on removal from Virtual Media Manager.
    If this is not set, files are always kept. If this is set, you will be PROMPTED
    to decide whether or not you would like to delete the hard disk file(s) when you
    remove a hard disk from virtual media manager. You may still choose not to delete
    the file when prompted.
    */
    var $deleteOnRemove = true;

    • File / Folder browser settings
      */

    // Restrict file types
    var $browserRestrictFiles = array(‘.iso’,’.vdi’,’.vmdk’,’.img’,’.bin’,’.vhd’,’.hdd’,’.ovf’,’.ova’,’.xml’,’.vbox’,’.cdr’,’.dmg’,’.ima’,’.dsk’,’.vfd’);

    // Restrict locations / folders
    #var $browserRestrictFolders = array(‘D:’,’C:UsersIan’); // Or something like array(‘/home/vbox’,’/var/ISOs’)

    // Force use of local, web server based file browser instead of going through vboxwebsrv
    #var $browserLocal = true;

    // Disable file / folder browser.
    #var $browserDisable = true;

    // Disable Windows drive detection
    #var $noWindowsDriveList = true;

    // Just list all drives from C: — Z: without checking if they exist or not.
    // This may be required on older Windows systems with more than one drive.
    #var $forceWindowsAllDriveList = true;

    • Auto-refresh interval in seconds for VirtualBox host memory usage information.
    • Any value below 3 will be ignored.
      */
      var $hostMemInfoRefreshInterval = 5;

    /* Show % of free host memory instead of % used */
    #var $hostMemInfoShowFreePct = true;

    • VM Memory warnings.
    • If $vmMemoryStartLimitWarn is enabled, each time a VM is started through
    • phpVirtualBox, it will check that the available host memory is greater than
    • the base and video memory of the VM + 50MB (a little bit of overhead). If it
    • is not, a confirmation dialog will be presented to confirm that you want to
    • start the VM.
    • If $vmMemoryOffset is set (and $vmMemoryStartLimitWarn), $vmMemoryOffset
    • megabytes is subtracted from the available host memory before the check is
    • performed by $vmMemoryStartLimitWarn logic. For instance it may be a good
    • idea to always have VM memory requirements + 100MB free. 100 is the default.
      */
      #var $vmMemoryStartLimitWarn = true;
      #var $vmMemoryOffset = 100;
    • Display guest additions version of a running VM on its Details tab
      */
      #var $enableGuestAdditionsVersionDisplay = true;

    /* Disable any of phpVirtualBox’s main tabs */
    #var $disableTabVMSnapshots = true; // Snapshots tab
    #var $disableTabVMConsole = true; // Console tab

    /* Screen resolutions for console tab */
    var $consoleResolutions = array(‘640×480′,’800×600′,’1024×768′,’1280×720′,’1440×900’);

    /* Console tab keyboard layout. Currently Oracle’s RDP client only supports EN and DE. */
    var $consoleKeyboardLayout = ‘EN’;

    /* Max number of network cards per VM. Do not set above VirtualBox’s limit (typically 8) or below 1 */
    var $nicMax = 4;

    /* Enable advanced configuration items (normally hidden in the VirtualBox GUI)

    • Note that some of these items may not be translated to languages other than English.
      */
      #var $enableAdvancedConfig = true;

    /* Enable startup / shutdown configuration.

    • This only works in linux and you must add the vboxinit file to
    • your startup scripts list.
      */
      #var $startStopConfig = true;

    // Authentication library.
    // var $authLib = ‘Builtin’;

    // VM ownership
    #var $enforceVMOwnership = true;

    // Per-user VM quota
    #var $vmQuotaPerUser = 2;

    // Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
    // If you do not know what VDE networking is — you do not need it, it is probably not supported by your
    // VirtualBox installation and will cause errors if enabled.
    #var $enableVDE = true;

    // Disable setting SATA controllers port count to the max port number found when saving VMs.
    #var $disableSataPortCount = true;

    /* Enable Parallel Port configuration — EXPERIMENTAL
    LPT support may or may not work for you.
    . VirtualBox LPT support only works in Linux. .
    */
    #var $enableLPTConfig = true;

    /* Enable HardDisk IgnoreFlush configuration. This controls the «ExtraData» setting

    • in «VBoxInternal/Devices/[controller type]/0/LUN#[x]/Config/IgnoreFlush». See
    • Responding to guest IDE/SATA flush requests at:
    • http://www.virtualbox.org/manual/ch12.html#idp12757424
      */
      #var $enableHDFlushConfig = true;
    • Event listener timeout in seconds. This is an advanced option that most people will
    • probably not need to change.
      */
      #var $eventListenerTimeout = 20;

    The text was updated successfully, but these errors were encountered:

    Источник

    Exception Object

    (

    [message:protected] => Failed to load R0 module /opt/VirtualBox/VMMR0.r0: Symlinks are not permitted: ‘/opt’ (VERR_SUPLIB_SYMLINKS_ARE_NOT_PERMITTED).

    Failed to load VMMR0.r0 (VERR_SUPLIB_SYMLINKS_ARE_NOT_PERMITTED)

    [string:Exception:private] =>

    [code:protected] => 0

    [file:protected] => /volume1/web/phpvirtualbox/endpoints/lib/vboxconnector.php

    [line:protected] => 2429

    [trace:Exception:private] => Array

    (

    [0] => Array

    (

    [file] => /volume1/web/phpvirtualbox/endpoints/lib/vboxconnector.php

    [line] => 951

    [function] => remote_progressGet

    [class] => vboxconnector

    [type] => ->

    [args] => Array

    (

    [0] => Array

    (

    [progress] => 6890a5beaa36c396-0000000000000005

    )

    )

    )

    [1] => Array

    (

    [file] => /volume1/web/phpvirtualbox/endpoints/api.php

    [line] => 316

    [function] => __call

    [class] => vboxconnector

    [type] => ->

    [args] => Array

    (

    [0] => progressGet

    [1] => Array

    (

    [0] => Array

    (

    [progress] => 6890a5beaa36c396-0000000000000005

    )

    [1] => Array

    (

    [0] => Array

    (

    [data] => Array

    (

    [responseData] => Array

    (

    [progress] => 6890a5beaa36c396-0000000000000005

    [info] => Array

    (

    [completed] => 1

    [canceled] =>

    [description] => Starting VM

    [operationDescription] => Starting virtual machine

    [timeRemaining] => Array

    (

    )

    [timeElapsed] => Array

    (

    [days] => 16810

    [hours] => 15

    [minutes] => 10

    [seconds] => 47

    )

    [percent] => 20

    )

    )

    [success] => 1

    [key] => 53474945cfd7ac0bf8114767c209c2a6

    )

    [errors] => Array

    (

    )

    [persist] => Array

    (

    )

    [messages] => Array

    (

    )

    )

    )

    )

    )

    )

    [2] => Array

    (

    [file] => /volume1/web/phpvirtualbox/endpoints/api.php

    [line] => 316

    [function] => progressGet

    [class] => vboxconnector

    [type] => ->

    [args] => Array

    (

    [0] => Array

    (

    [progress] => 6890a5beaa36c396-0000000000000005

    )

    [1] => Array

    (

    [0] => Array

    (

    [data] => Array

    (

    [responseData] => Array

    (

    [progress] => 6890a5beaa36c396-0000000000000005

    [info] => Array

    (

    [completed] => 1

    [canceled] =>

    [description] => Starting VM

    [operationDescription] => Starting virtual machine

    [timeRemaining] => Array

    (

    )

    [timeElapsed] => Array

    (

    [days] => 16810

    [hours] => 15

    [minutes] => 10

    [seconds] => 47

    )

    [percent] => 20

    )

    )

    [success] => 1

    [key] => 53474945cfd7ac0bf8114767c209c2a6

    )

    [errors] => Array

    (

    )

    [persist] => Array

    (

    )

    [messages] => Array

    (

    )

    )

    )

    )

    )

    )

    [previous:Exception:private] =>

    )

    Понравилась статья? Поделить с друзьями:
  • Phpstorm composer createprocess error 193 1 не является приложением win32
  • Pip install aiogram ошибка
  • Phpstan ignored error pattern
  • Pip install aiogram error
  • Phpmyadmin ошибка несоответствие токена