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 ]
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.
Hi @beauboswell,
The command states you are trying to type in a directory that doesn’t exist.
And paste over what you need inside.
Regards, KFSys
www
directory by executing the following commandcd /var/www
nwainternetmarketingservices.com
by executing the commandls -ld nwainternetmarketingservices.com
sudo chown -R $USER:USER nwainternetmarketingservices.com
If everything is fine, then the file should be able to be created