Unable to paste files to my Apache server

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kidgrave90240

Unable to paste files to my Apache server

Post by kidgrave90240 »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
DataMan

Re: Unable to paste files to my Apache server

Post by DataMan »

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
kidgrave90240

Re: Unable to paste files to my Apache server

Post by kidgrave90240 »

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

Re: Unable to paste files to my Apache server

Post by FidbecK »

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
Locked

Return to “Software & Applications”