- Move two files from Ubuntu desktop to/etc/apache2/site-available
Linux Guidelines
2) Install Virtualbox
3) Open Virtualbox
4) Click on Machine->add
5) Open Ubuntu 13.04.vbox file from the VM folder (downloaded in step 1)
The first is to go to \nas\temp\jaguar download Ubuntu, this is someone else originally fix, is temporary share.
is to click Machine->new to create a new virtual machine
Then the next step, when you choose hard Drive, Find my next Ubuntu backup and select the. vdi file in centimeters, so that you can install it automatically, and you can run the file by double-clicking it.
The success of the operation.
User:ciandt
Pass: $ciandt 123
This is what you need to use with the sudo statement.
2.3 How to configure an environment
There is a symbolic link in/var/www that links to/home/ciandt/www folder.
1) Download filesystem from your project and decompress it in/home/ciandt/www folder.
2) Create a file (as Super User)/etc/apache2/sites_available/www_onetouch_com.
$ sudo vim/etc/apache2/sites_available/www_onetouch_com
3) Use this example that is created for www_jom_com. Replace www_jom_com and Jom by your SiteName.
4) Edit/etc/hosts and add local.yoursite.com to point to your localhost. This was very similar to the Hosts file in Windows.
Open the Hosts file in the/etc directory with the terminal. Then set 127.0.0.1 to the URL you want.
Add the statement in the red box.
This is Bala wrote two files into the/etc/apache2/sites-available directory, and then the next few words are to enable or prohibit some files, a2ensite this is the Enable file, A2dissite is a disable file. Then sudo service apache2 reload restart.
Put These under your Linux VM. /etc/apache2/sites-available. Assuming you downloaded to/home/ciandt/downloads/
?sudo cp /home/ciandt/Downloads/www_onetouchla_com* /etc/apache2/sites-available/ ? Create a folder?mkdir -p /home/ciandt/www/www_onetouchla_com? Run below to enable the sites?sudo a2ensite www_onetouchla_com?sudo a2ensite www_onetouchla_com-ssl?sudo a2dissite default?sudo a2dissite www_jom_com?sudo service apache2 reload
7) Upload the database to your MySQL. You can use MySQL Workbench or command line. I suggest to use command line:
-h-u rootmysql> drop schema www_yoursite_commysql> source database_dump.sql
Seventh step because no database did not do
8) in the virtual machine's Firefox, open the following Url:local-onetouchla-com.citdev normally open as follows:
If you create a index.html under the folder you created earlier, the HTML information will be displayed.
/home/ciandt/www/www_onetouchla_com
9) Access your site from your host (below this figure is set in the machine->setting inside virtual box)
The Bala attached to is the selected bridge, and I am the selected Nat, also can succeed, in that port forwarding inside, write two ports, one is 80, one is 443.
1.Configure Port Forwarding
2.edit/etc/hosts and add local.yoursite.com to point to 127.0.0.1
Access the MySQL from localhost (not implemented)
1. mysql-h Localhost-u Root
Mysql>grant all privileges on . To ' root ' @ '% ' with GRANT OPTION; Mysql>flush privileges;
2. Sudo vim/etc/mysql/my. Cnf
Find #bind-address = 127.0.0.1//cancellation this line
3. sudo service MySQL restart
2.4 Hacked module (not implemented)
Https://docs.google.com/a/ciandt.com/document/d/1cQX_iIe3p7Ao7GD16yLtTXVe6cq2YIZEgEOGJmijzvc/edit
2.5 Sharing folders between Windows and VMS
1.ox
Click Devices→shared Folders ...
3. Choose your folder in Windows. would be shared.
4.On your Virtual machine, open terminal, create a folder and mount the shared folder:
mkd IRshaRed (italanguagesentenceto bein theRooTMeshRecordundershippedLine,thatintogo toafterFirstloseintoCd ) sudo mount-t vboxsf jnj/home/ciandt/shared
Jnj→it is the folder name, and entered in Step 3.
/home/ciandt/shared→it is the folder, which you created in step 4.
Note: Shared words,
1. First create a folder on my own Windows system, such as I created a JNJ folder on the desktop.
2. Then create a shared directory on Ubuntu, such as I am a shared folder created under Directory/home/ciandt/, you can use the code $ mkdir shared (this statement is to run in the root directory, enter the CD first).
3. Then click into the VM inside devices/shared forders Settings
4. Then go to the box of this setting, fill in the information as follows, find the folder you created under Windows to share, and then remember to tick auto-mount and make permanent.
5. In fact, this file sharing is done, the rest is to establish a soft connection, the shared directory to map to my development environment.
With the LN statement, the previous directory is the shared object that you want to make a soft connection to, and the following directory is where you want to create the shortcut.
Ps:
Error message Logging
, this error message is that there is no directory, to do is to take the last/remove
This error is that the target file is a read-only file. So the reason is that the file directory is written in reverse.
5./home/ciandt/shared is a shared folder, the can use to copy and paste between your Host and the VM.
2.6 Possible Issues
1.If you have a UUID issues in your Virtual HD with the use of the following command in CMD:
C:\virtualbox\ubuntu> ' C:\Program files\oracle\virtualbox\vboxmanage.exe ' internalcommands sethduuid ubuntu.vdi
2.For forbidden Issues When you try to access your site, try to change the permissions of your folder:
$ chmod -R755 ~/www/yoursite$ chmod -R777 ~/www/yoursite/sites/default/files
For the use of Ubuntu and the initialization of the environment