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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
