Unable to paste files to my Apache server

Questions about applications and software
Forum rules
Before you post please read how to get help
kidgrave90240
Level 1
Level 1
Posts: 9
Joined: Mon Nov 05, 2012 12:32 am

Unable to paste files to my Apache server

Postby kidgrave90240 » Mon Nov 05, 2012 8:47 am

I have apache up, it's up and working. I am able to create files, but I am however unable to paste files to my /var/www directory. So what can I do to fix this problem?? Here is a screen shot of the error I get when I try to paste files:

Image

Under "Show More Details", it says:

Error when getting information for file '/home/kidgrave/Pictures/advertised.jpg
': No such file or directory

User avatar
DataMan
Level 6
Level 6
Posts: 1234
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Midwest USA at /var/www
Contact:

Re: Unable to paste files to my Apache server

Postby DataMan » Mon Nov 05, 2012 11:10 am

It's probably an ownership issue with /var/www

If you are using the webserver strictly as a development box, you can change the ownership stuffola as:

Code: Select all

sudo chown -R <your login id> /var/www

sudo chgrp -R <your login id> /var/www



In the above the "-R" means recursive (as in change all sub-directories and files to the same ownership as the /var/www root directory).

If you are going to make this a public site then you will need to research appropriate security protocols before changing the ownerships.

-DataMan
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015

kidgrave90240
Level 1
Level 1
Posts: 9
Joined: Mon Nov 05, 2012 12:32 am

Re: Unable to paste files to my Apache server

Postby kidgrave90240 » Mon Nov 05, 2012 2:41 pm

DataMan wrote:It's probably an ownership issue with /var/www

If you are using the webserver strictly as a development box, you can change the ownership stuffola as:

Code: Select all

sudo chown -R <your login id> /var/www

sudo chgrp -R <your login id> /var/www



In the above the "-R" means recursive (as in change all sub-directories and files to the same ownership as the /var/www root directory).

If you are going to make this a public site then you will need to research appropriate security protocols before changing the ownerships.

-DataMan


Yeah I want to make my site public. I just decided to put my website files elsewhere. But now I made a different thread because my images online cannot be read.

FidbecK
Level 1
Level 1
Posts: 5
Joined: Thu Nov 01, 2012 1:14 pm

Re: Unable to paste files to my Apache server

Postby FidbecK » Tue Nov 06, 2012 11:37 am

I had the same problem too. The only way I found out to change permissions was to open the folder var as adminstrator and once there I could change ownership to me (fidbeck) . but this way is easier. I'll have to try it another time


Return to “Software & Applications”

Who is online

Users browsing this forum: No registered users and 12 guests