SHARE
TWEET

errophpvirtualbox

a guest Sep 22nd, 2017 132 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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).
  2.  
  3. Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message.
  4.  
  5. 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/
  6.  
  7.  
  8.  
  9. arquivo config.php
  10.  
  11. <?php
  12. /**
  13.  * phpVirtualBox example configuration.
  14.  * @version $Id: config.php-example 585 2015-04-04 11:39:31Z imoore76 $
  15.  *
  16.  * rename to config.php and edit as needed.
  17.  *
  18.  */
  19. class phpVBoxConfig {
  20.  
  21. /* Username / Password for system user that runs VirtualBox */
  22. var $username = 'vbox';
  23. var $password = 'vbox123';
  24.  
  25. /* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
  26. var $location = 'http://127.0.0.1:18083/';
  27.  
  28. /* Default language. See languages folder for more language options.
  29.  * Can also be changed in File -> Preferences -> Language in
  30.  * phpVirtualBox.
  31.  */
  32. var $language = 'en';
  33.  
  34. /* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
  35. var $vrdeports = '18080-18083';
  36.  
  37. /*
  38.  *
  39.  * Not-so-common options / tweaking
  40.  *
  41.  */
  42.  
  43. // Multiple servers example config. Uncomment (remove /* and */) to use.
  44. // Add ALL the servers you want to use. Even if you have the server set
  45. // above. The default server will be the first one in the list.
  46. /*
  47. var $servers = array(
  48.         array(
  49.                 'name' => 'London',
  50.                 'username' => 'user',
  51.                 'password' => 'pass',
  52.                 'location' => 'http://192.168.1.1:18083/',
  53.                 'authMaster' => true // Use this server for authentication
  54.         ),
  55.         array(
  56.                 'name' => 'New York',
  57.                 'username' => 'user2',
  58.                 'password' => 'pass2',
  59.                 'location' => 'http://192.168.1.2:18083/'
  60.         ),
  61. );
  62. */
  63.  
  64. // Disable authentication
  65. #var $noAuth = true;
  66.  
  67. // Host / ip to use for console connections
  68. #var $consoleHost = '192.168.1.40';
  69.  
  70. // Disable "preview" box
  71. #var $noPreview = true;
  72.  
  73. // Default preview box update interval in seconds
  74. #var $previewUpdateInterval = 30;
  75.  
  76. // Preview box pixel width
  77. #var $previewWidth = 180;
  78.  
  79. // Max number of progress operations to keep in list
  80. var $maxProgressList = 5;
  81.  
  82. // Change default preview aspect ratio to 1.
  83. // http://www.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios
  84. #var $previewAspectRatio = 1.6;
  85.  
  86. // Enable custom VM icons
  87. #var $enableCustomIcons = true;
  88.  
  89. /*
  90. Exclusively use phpVirtualBox's groups configuration rather than VirtualBox groups.
  91. This has the following effects:
  92.  
  93. *) Group changes made in phpVirtualBox will not be reflected in VirtualBox programs such as
  94.     VirtualBox and VBoxManage
  95. *) Group changes will not affect which folder a VM is placed in
  96. *) You can rename groups that contain running VMs and move / copy running VMs to groups
  97. */
  98. #var $phpVboxGroups = true;
  99.  
  100.  
  101. /*
  102. Allow to prompt deletion hard disk files on removal from Virtual Media Manager.
  103. If this is not set, files are always kept. If this is set, you will be PROMPTED
  104. to decide whether or not you would like to delete the hard disk file(s) when you
  105. remove a hard disk from virtual media manager. You may still choose not to delete
  106. the file when prompted.
  107. */
  108. var $deleteOnRemove = true;
  109.  
  110. /*
  111.  * File / Folder browser settings
  112.  */
  113.  
  114. // Restrict file types
  115. var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd');
  116.  
  117. // Restrict locations / folders
  118. #var $browserRestrictFolders = array('D:\\','C:\\Users\\Ian'); // Or something like array('/home/vbox','/var/ISOs')
  119.  
  120. // Force use of local, web server based file browser instead of going through vboxwebsrv
  121. #var $browserLocal = true;
  122.  
  123. // Disable file / folder browser.
  124. #var $browserDisable = true;
  125.  
  126. // Disable Windows drive detection
  127. #var $noWindowsDriveList = true;
  128.  
  129. // Just list all drives from C:\ - Z:\ without checking if they exist or not.
  130. // This may be required on older Windows systems with more than one drive.
  131. #var $forceWindowsAllDriveList = true;
  132.  
  133. /*
  134.  * Misc
  135.  */
  136.  
  137. /*
  138.  * Auto-refresh interval in seconds for VirtualBox host memory usage information.
  139.  * Any value below 3 will be ignored.
  140.  */
  141. var $hostMemInfoRefreshInterval = 5;
  142.  
  143. /* Show % of free host memory instead of % used */
  144. #var $hostMemInfoShowFreePct = true;
  145.  
  146. /*
  147.  * VM Memory warnings.
  148.  *
  149.  * If $vmMemoryStartLimitWarn is enabled, each time a VM is started through
  150.  * phpVirtualBox, it will check that the available host memory is greater than
  151.  * the base and video memory of the VM + 50MB (a little bit of overhead). If it
  152.  * is not, a confirmation dialog will be presented to confirm that you want to
  153.  * start the VM.
  154.  *
  155.  * If $vmMemoryOffset is set (and $vmMemoryStartLimitWarn), $vmMemoryOffset
  156.  * megabytes is subtracted from the available host memory before the check is
  157.  * performed by $vmMemoryStartLimitWarn logic. For instance it may be a good
  158.  * idea to always have VM memory requirements + 100MB free. 100 is the default.
  159.  */
  160. #var $vmMemoryStartLimitWarn = true;
  161. #var $vmMemoryOffset = 100;
  162.  
  163.  
  164. /*
  165.  * Display guest additions version of a running VM on its Details tab
  166.  */
  167. #var $enableGuestAdditionsVersionDisplay = true;
  168.  
  169. /* Disable any of phpVirtualBox's main tabs */
  170. #var $disableTabVMSnapshots = true; // Snapshots tab
  171. #var $disableTabVMConsole = true; // Console tab
  172.  
  173. /* Screen resolutions for console tab */
  174. var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900');
  175.  
  176. /* Console tab keyboard layout. Currently Oracle's RDP client only supports EN and DE. */
  177. var $consoleKeyboardLayout = 'EN';
  178.  
  179. /* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */
  180. var $nicMax = 4;
  181.  
  182. /* Enable advanced configuration items (normally hidden in the VirtualBox GUI)
  183.  * Note that some of these items may not be translated to languages other than English.
  184.  */
  185. #var $enableAdvancedConfig = true;
  186.  
  187. /* Enable startup / shutdown configuration.
  188.  * This only works in linux and you must add the vboxinit file to
  189.  * your startup scripts list.
  190.  */
  191. #var $startStopConfig = true;
  192.  
  193. // Authentication library.
  194. // var $authLib = 'Builtin';
  195.  
  196. // VM ownership
  197. #var $enforceVMOwnership = true;
  198.  
  199. // Per-user VM quota
  200. #var $vmQuotaPerUser = 2;
  201.  
  202.  
  203. // Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
  204. // If you do not know what VDE networking is - you do not need it, it is probably not supported by your
  205. // VirtualBox installation and will cause errors if enabled.
  206. #var $enableVDE = true;
  207.  
  208. // Disable setting SATA controllers port count to the max port number found when saving VMs.
  209. #var $disableSataPortCount = true;
  210.  
  211. /* Enable Parallel Port configuration - EXPERIMENTAL
  212. LPT support may or may not work for you.
  213. !!! VirtualBox LPT support only works in Linux. !!!
  214. */
  215. #var $enableLPTConfig = true;
  216.  
  217. /* Enable HardDisk IgnoreFlush configuration. This controls the "ExtraData" setting
  218.  * in "VBoxInternal/Devices/[controller type]/0/LUN#[x]/Config/IgnoreFlush". See
  219.  * Responding to guest IDE/SATA flush requests at:
  220.  * http://www.virtualbox.org/manual/ch12.html#idp12757424
  221. */
  222. #var $enableHDFlushConfig = true;
  223.  
  224. /*
  225.  * Event listener timeout in seconds. This is an advanced option that most people will
  226.  * probably not need to change.
  227.  */
  228. #var $eventListenerTimeout = 20;
  229.  
  230. /* END SETTINGS  */
  231.  
  232.  
  233. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top