Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  26] [ 0]  / answers: 1 / hits: 107878  / 3 Years ago, fri, november 26, 2021, 3:38:29

I installed the LAMP stack on my Ubuntu 11.04 (Natty Narwhal) with



sudo apt-get install lamp-server^


Now I navigate to /var/www and use



wget http://ftp.drupal.org/files/projects/drupal-7.x-dev.tar.gz


I get the following error.



 --2011-08-03 13:59:00-- 
http://ftp.drupal.org/files/projects/drupal-7.x-dev.tar.gz Resolving
ftp.drupal.org... 64.50.233.100, 64.50.236.52 Connecting to
ftp.drupal.org|64.50.233.100|:80... connected. HTTP request sent,
awaiting response... 200 OK Length: 2757101 (2.6M)
[application/x-gzip] drupal-7.x-dev.tar.gz: Permission denied

Cannot write to `drupal-7.x-dev.tar.gz' (Permission denied).


How do I resolve this error?



I tried to download the same file in the downloads folder, and it went on without an issue. So it seems to be some permission error, but I'm not sure about that or how to solve it.


More From » wget

 Answers
0

I believe you need root permissions to write to /var/www. So you should use sudo in front of your command i.e



sudo wget http://ftp.drupal.org/files/projects/drupal-7.x-dev.tar.gz

[#44013] Sunday, November 28, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tatoethin

Total Points: 377
Total Questions: 110
Total Answers: 98

Location: Saudi Arabia
Member since Sat, Aug 20, 2022
2 Years ago
;