Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 14881  / 2 Years ago, fri, february 11, 2022, 4:53:07

I am new to ubuntu.I install LAMP pakage acording to this page.
I want to create new website such as say in this article.
but when I create my site in "sites-avalible" and whant to chanege it and save,show a message ...



Error opening file '/etc/apache2/sites-available/mysite': Permission denied

The file on disk may now be truncated!


what I should to do?


More From » permissions

 Answers
1

You need to run your editor with sudo, because site configuration files cannot be modified by users.



For example:



$ ls -l /etc/apache2/sites-available/default
-rw-r--r-- 1 root root 950 2011-06-07 14:56 default


You should try to follow the official Ubuntu Server Guide. It is a very concise and clearly written article on what you'd like to achive.


[#40186] Sunday, February 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
edseager

Total Points: 185
Total Questions: 105
Total Answers: 102

Location: Angola
Member since Wed, Apr 13, 2022
2 Years ago
;