TheTwister
Posts: 18
Joined: Fri Dec 29, 2017 6:39 pm

installing Lighttpd

Sat Apr 14, 2018 10:30 pm

Hi there,

I am trying to install lighttpd on to a Pi 3 after i have run the command, i can't find the path /var/www/html/.

Any ideas?

User avatar
DougieLawson
Posts: 40775
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: installing Lighttpd

Sat Apr 14, 2018 11:00 pm

sudo mkdir -p /var/www/html
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

TheTwister
Posts: 18
Joined: Fri Dec 29, 2017 6:39 pm

Re: installing Lighttpd

Sun Apr 15, 2018 12:20 pm

I'm trying to move some files to there but i am getting
'/var/www/html/*' is not a directory.

sudo mv /home/pi/transfer/* /var/www/html/*

Does that look correct?

User avatar
rpdom
Posts: 18123
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: installing Lighttpd

Sun Apr 15, 2018 12:37 pm

TheTwister wrote:
Sun Apr 15, 2018 12:20 pm
I'm trying to move some files to there but i am getting
'/var/www/html/*' is not a directory.

sudo mv /home/pi/transfer/* /var/www/html/*

Does that look correct?
Leave off the last *

Code: Select all

sudo mv /home/pi/transfer/* /var/www/html/
if that doesn't work, it suggests you haven't created the /var/www/html directory correctly.

Return to “General programming discussion”