Phpvirtualbox4.1.7 assembly process

Source: Internet
Author: User
Phpvirtualbox4.1.7 installation process? Create a file & gt; vi/etc/default/virtualboxVBOXWEB_USER = vbox set vboxweb service to start & gt; chkconfig -- levels235vbo phpvirtualbox4.1.7 installation process



?

Create a file

> Vi/etc/default/virtualbox

VBOXWEB_USER = vbox

Set vboxweb service to start

> Chkconfig -- levels 235 vboxweb-service on

>/Etc/init. d/vboxweb-service restart

Install web environment

> Yum install httpd php-mysql php-pear php-soap apr-util-sqlite apr-util-ldap apr-util wget

> Chkconfig -- levels 235 httpd on

>/Etc/init. d/httpd start

Download and install phpvirtualbox

> Cd/var/www/html
> Wget http://phpvirtualbox.googlecode.com/files/phpvirtualbox-4.1-7.zip

> Unzip phpvirtualbox-4.1-7.zip

> Music phpvirtualbox-4.1-7 phpvirtualbox

Set the configuration file

> Cd/var/www/html/phpvirtualbox/

> Cp config. php-example config. php

> Vi config. php

[...]

/* Username/Password for system user that runs VirtualBox */

Var $ username = 'root ';

Var $ password = 'rsclouds @ 123 ';

[...]

Complete: http: // 192.168.1.61: 8091/phpvirtualbox/account/Password: admin

?

The httpd of Apache is the monitored port 80 by default, but it will conflict with the ports of other web servers. Therefore, modify httpd here. conf to listen to Port 8091. by default, the/var/www/html file is used as the place where the web project is stored, so the phpvirtualbox can be decompressed and placed here.

?

Vi/etc/httpd/conf/httpd. conf

ServerName: 192.168.1.61: 8090

Listen IP: 192.168.1.61: 8090

If the port is the same, OK. The IP address can be the hostname or IP address of the local machine.

?

Restart the httpd service:

1. httpd

2./etc/init. d/httpd restart

The httpd command is required to take effect like the modified configuration.

?

Set the IP address in phpvirtualbox, so that you do not need to manually enter the IP address every time you use the terminal link.

Var $ lelehost = '192. 168.1.61'

If the port is in use, use lsof-I: 8091 to view the occupied port number, find the PID, kill, and restart the httpd service.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.