By beauboswell
when I create my nano file and hit ^X then Yes to save file with html samples it says error
nano /var/www/nwainternetmarketingservices.com/index.html
<html> <head> <title>Welcome to nwainternetmarketingservices.com!</title> </head> <body> <h1>Success! The nwainternetmarketingservices.com virtual host is working!</h1> </body> </html>
then I hit Ctrl X the Yes to save it as: /var/www/nwainternetmarketingservices.com/index.html [ Error writing /var/www/nwainternetmarketingservices.com/index.html: No such file or directory ]
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
www directory by executing the following command cd /var/wwwnwainternetmarketingservices.com by executing the command ls -ld nwainternetmarketingservices.comsudo chown -R $USER:USER nwainternetmarketingservices.comcd /var/www/nwainternetmarketingservices.com
nano index.html
If everything is fine, then the file should be able to be created
Hi @beauboswell,
The command states you are trying to type in a directory that doesn’t exist.
ls -lah /var/www/
mkdir /var/www/nwainternetmarketingservices.com
nano /var/www/nwainternetmarketingservices.com/index.html
And paste over what you need inside.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.