Questions tagged [www]

World Wide Web, aka. W3, or simply web - a system of interlinked hypertext documents accessed via the Internet

The World Wide Web (abbreviated as WWW or W3, commonly known as the web) is a system of interlinked hypertext documents accessed via the Internet. With a web browser, one can view web pages that may contain text, images, videos, and other multimedia and navigate between them via hyperlinks.

On March 12, 1989, Tim Berners-Lee, a British computer scientist and former CERN employee, wrote a proposal for what would eventually become the World Wide Web. The 1989 proposal was meant for a more effective CERN communication system but Berners-Lee eventually realised the concept could be implemented throughout the world. Berners-Lee and Belgian computer scientist Robert Cailliau proposed in 1990 to use hypertext "to link and access information of various kinds as a web of nodes in which the user can browse at will", and Berners-Lee finished the first website in December of that year. The first test was completed around 20 December 1990 and Berners-Lee reported about the project on the newsgroup alt.hypertext on 7 August 1991....

Source: Wikipedia - World Wide Web

44 questions
80
votes
2 answers

Why shouldn't /var/www have chmod 777

When developing a page on a localhost, I sometimes get a "Permission denied" error which I can solve by running chmod -R 777 /var/www. However, people are telling me that this is a bad idea for security reasons. Why shouldn't /var/www have a chmod…
Luis Alvarado
  • 216,643
51
votes
6 answers

Grant a user permissions on www-data owned /var/www

I have a simple web server setup for some websites, with a layout something like: site1: /var/www/site1/public_html/ site2: /var/www/site2/public_html/ I have previously used the root user to manage files, and then given them back to www-data when I…
George Pearce
  • 613
  • 1
  • 6
  • 6
24
votes
0 answers

Using Terminal as a web browser

I've found that terminal can be used for various purposes. This will be great if I can use it as a web browser. Is there any way to use it as a web browser??
opu 웃
  • 2,167
  • 11
  • 30
  • 43
15
votes
2 answers

Cannot edit group-owned files as user belonging to that group

I'm running an Ubuntu 14.04.1 LTS server on Digital Ocean. I'm trying to make it so I can edit files in /srv/www from my normal user account, without needing to be root. Currently, /srv/www is owned by www-data:www-data: sudo chown -R…
shea
  • 267
14
votes
3 answers

Granting a sftp user access to a /var/www directory

I've created a user and made his home directory /var/www/mysite/ftpdir I've also added a Match user entry for this user in sshd_config with a ChrootDirectory that points to /var/www/mysite I've restarted ssh to pick this up. When I log in with sftp…
hawkeye
  • 4,107
11
votes
1 answer

Easy way to change apache www location

Instead of changing permissions to /var/www, installing nautilus permission related extensions or having to execute gksu i want to know an easy to do way of changing /var/www to another place like /home/cyrex/www for example. This way I save on…
Luis Alvarado
  • 216,643
9
votes
3 answers

'/'var/www/' vs '/home/$USER/public_html'

I recently started using Ubuntu as a LAMP server. I've come across plenty of tutorials that say to place the files at '/var/www/' and I've also seen others that put them in '/home/$USER/public_html/'. During my testing and figuring stuff out, I was…
6
votes
2 answers

Can't create folder or document in

how to enable to create New document or new folder in var/www/html ? "my Ubuntu is 16.04"
5
votes
1 answer

What is the default permission for /var/www?

After upgrading to 12.04, I had to reinstall the LAMP stack. Then I brought all my www project folders from a pen drive to the /var/www folder (using sudo nautilus, and dragging the files in there). Now I cannot make any changes to the…
itsols
  • 1,200
5
votes
1 answer

Correct steps for adding user to /var/www

I am used to adding sites in /home/USR/public_html. But now I have decided to put sites into /var/www/site1, /var/www/site2, and so on. Root owns /var/www/, but you want your user to be able to work in this location so are these the right steps in…
joe
  • 55
4
votes
4 answers

Permissions for apache webroot folder on dev server?

I am a web developer and have Apache setup on my local system for testing. I keep running into issues with the permissions e.g. unless I chmod any new directories to 777 my IDE cannot write to the files there. I was hoping there was a way to add…
Hailwood
  • 5,017
4
votes
0 answers

How can I rename a folder using the terminal?

Possible Duplicate: Whats the simplest way to edit and add files to “/var/www”? I need to rename it in the terminal because it is in the root directory in Lubuntu. I have a folder in /var/www/ which I need to change the name of from htdocs to…
Magpie
  • 1,295
3
votes
2 answers

What are the benefits of having www in the home folder than in the default /var/www folder

I am trying to explain some students what are the differences between having www on the home folder, for example /home/cyrex/www and in the /var/www. So I wanted to ask here what are the benefits of having it in the home folder instead of the…
Luis Alvarado
  • 216,643
3
votes
2 answers

Setting up my www directory correctly

I'm quite new to Ubuntu and Linux in general. I need to create a my www directory (in /home) and set the permissions/ownership correctly so that any new files and directories created by myself (via terminal etc, username is matt) OR the web server…
2
votes
1 answer

XAMPP: cannot find /var/www/html

I downloaded the latest XAMPP deb file and installed it. But apparently, there is no /var/www folder. Can anyone tell me the default location of the Apache's DocumentRoot directory within XAMPP installation?
1
2 3