4 Replies - 837 Views - Last Post: 18 December 2014 - 05:55 PM

#1 xotix  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 02-December 12

Setting up Web Dev Server (VM)

Posted 15 December 2014 - 01:23 PM

Hi,

I have problems setting up a web dev server. I'm using Virtual Box and Ubuntu Server 14.04.

I installed LAMP, added vhosts as usual and added the entries to the host file of my host OS (Windows).

I can connect vis SSH (I did port forwarding)

I have problems accessing my Homepage.

I only want to access it locally, I don't need to access if from other PCs.

Here are my question:
1. What Network Adapter should I use for local use only? (I'm using the shared folder feature of Vbox to access files with my IDE and also connect via SSH which works fine)

2. Anyone got a good Article about setting permissions of the www folder etc. so I can be sure this is fine as well?

Is This A Good Question/Topic? 0
  • +

Replies To: Setting up Web Dev Server (VM)

#2 astonecipher  Icon User is offline

  • Too busy for this
  • member icon

Reputation: 2330
  • View blog
  • Posts: 9,381
  • Joined: 03-December 12

Re: Setting up Web Dev Server (VM)

Posted 15 December 2014 - 03:24 PM

Localhost, means on the same machine. While a virtual machine is using resources from the host, for all intents and purposes, it is another computer.

On the virtual machine, go to localhost in a browser and see what happens.
Was This Post Helpful? 1
  • +
  • -

#3 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 5074
  • View blog
  • Posts: 13,697
  • Joined: 18-April 07

Re: Setting up Web Dev Server (VM)

Posted 15 December 2014 - 03:30 PM

Any particular reason you are setting up through Virtual box? You can setup Wamp or do a basic install of apache on windows and be up and running. Just trying to practice http admin through Ubuntu?

1) Not sure what you mean about what network adapter you should use. Typically you have only one active network adapter running at one time. I think you should be worried about looking at ports and what apache is listening to. If setup correctly you would then hit it usually through localhost and some port number (other than 80). So for instance if you setup apache to listen on port 8080 then you could hit it through http://localhost:8080

2) For the www folder, you typically have 755 for the permissions.

But I am still curious why you are putting in the extra layer of complexity to setup a local dev environment to go through virtual box. :)
Was This Post Helpful? 0
  • +
  • -

#4 xotix  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 02-December 12

Re: Setting up Web Dev Server (VM)

Posted 18 December 2014 - 10:59 AM

I know that the VM is a own PC. I only want to know what adapter I should use if I want to acheive the following:

-connect via brwoser from the host to a web app hosted on the VM
-SSH to it
-Internet connection
-Fix IP so I don't have to change my hosts's host file all the time etc.
-SSH and Hosting should work without internet connection

i did set up this several times but that's a few years ago and I can't remember having lots of trobules.

I would never work with apache installed on my Win8.1 machine for several reasons. I like the consol,e I would never use stuff like phpmyadmin, I like to develope on a production like system, etc.

Currently I got it working by using 2 adapters: host only and nat (for internet)

Thanks

This post has been edited by xotix: 18 December 2014 - 11:03 AM

Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6551
  • View blog
  • Posts: 30,682
  • Joined: 10-May 07

Re: Setting up Web Dev Server (VM)

Posted 18 December 2014 - 05:55 PM

** Moved to Web Servers & Hosting **
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1