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.