zoukankan      html  css  js  c++  java
  • ubuntu安装phpVirtualBox web服务

    首先确保已经安装好了 virtualbox,打开了 vboxweb-service
    $ sudo ls /etc/init.d | grep vboxweb-service
     
     
    然后, Installing Apache2 phpVirtualBox:

    sudo apt-get install apache2 php5 libapache2-mod-php5 unzip
    wget http://downloads.sourceforge.net/project/phpvirtualbox/phpvirtualbox-4.3-1.zip
    $ sudo unzip phpvirtualbox-4.3-1.zip -d "/var/www" && sudo mv /var/www/phpvirtualbox-4.3-1 /var/www/phpvirtualbox


    STEP TWO  [Configuring/completing your installation]

    Before we can finish configuring phpVirtualBox, we need to create a dedicated account that phpVirtualBox can use to control VirtualBox. In this example, I will be using the username vbox

    $ sudo adduser vbox --ingroup vboxusers
    sudo passwd vbox

    Finally, we want to edit the configuration of phpVirtualBox and VirtualBox with this information. 

    $ sudo mv /var/www/phpvirtualbox/config.php-example /var/www/phpvirtualbox/config.php
    sudo vi /var/www/phpvirtualbox/config.php

    Update the fields as follows:

    /* Username / Password for system user that runs VirtualBox */
    var $username = 'vbox';
    var $password = 'your_password_here';


    /* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
    var $location = 'http://localhost:18083/';

    Additionally, if you would like to disable username authentication:

    /* Disable authentication */
    var $noAuth = true;


    These variables may require some tweaking depending on your environment. For more information, please visit the phpVirtualBox configuration section on their Wiki. 
    Picture
     
    Picture
     
    Once you have completed editing your phpVirtualBox config, we want to edit the VirtualBox configuration. 

    $ sudo vi /etc/default/virtualbox

    Add the following line:

    VBOXWEB_USER=vbox
    Picture
     
    Next, we need to modify the Apache configuration file to point to our "phpvirtualbox" directory.

    sudo vi /etc/apache2/sites-enabled/000-default.conf

    Modify the DocumentRoot to our new phpvirtualbox location:

    DocumentRoot /var/www/phpvirtualbox
    Picture
     
    To finalize your installation, restart the services with the following command:

    $ sudo service apache2 restart && sudo service vboxweb-service restart


    STEP THREE 
    [Testing/optimizing your installation]

    Congratulations! Your installation should be completed. To verify it is working, please visit: 

    http://your_IP_address

    You should be greeted with a "Username" and "Password" Log in window:

    Default username: admin
    Default password: admin

     

     转自: http://www.serveradventures.com/the-adventures/virtual-machines-in-ubuntu-server-virtualbox-phpvirtualbox
  • 相关阅读:
    JavaScript之闭包
    JavaScript之原型模式
    .NET Core3.1 解决跨域问题 Startup的配置
    .NTE Core 使用Editor.md富文本编辑器上传图片
    .NET Core3.1 WebApi 配置Swagger 超详细办法
    C#添加写日志,记录单个变量
    一个让我痛不欲生的算法题
    用EF 搭建底层
    用Linq To SQL 搭建底层
    安卓端腾讯QQ-【我的电脑】下载地址
  • 原文地址:https://www.cnblogs.com/pinganzi/p/6687607.html
Copyright © 2011-2022 走看看