SSL Certificate - /etc/apache2/ports.conf - denied

In order to install phpmyadmin, the guide suggests me to use a Self-Signed SSL Certificate with Apache.

I generated a Self-Signed Certificate, but when trying to configure Apache to use the Self-Signed Certificate, i got a permission denied to the command '/etc/apache2/ports.conf'. I need to add my NameVirtualHost ip there.

*** Note: I got permission denied now when trying to edit any file, like /etc/apache2/sites-available/my-site.com

*** I can reach the file using my sftp software, but i don´t know why i can´t edit using PuTTY anymore

What to do?

Thanks

5 Replies

@grevan:

In order to install phpmyadmin, the guide suggests me to use a Self-Signed SSL Certificate with Apache.

I generated a Self-Signed Certificate, but when trying to configure Apache to use the Self-Signed Certificate, i got a permission denied to the command '/etc/apache2/ports.conf'. I need to add my NameVirtualHost ip there.

*** Note: I got permission denied now when trying to edit any file, like /etc/apache2/sites-available/my-site.com

*** I can reach the file using my sftp software, but i don´t know why i can´t edit using PuTTY anymore

What to do?

Thanks

are you root or using sudo?

I´m using the PuTTY software.

Sorry, didn´t understand your question.

@grevan:

I´m using the PuTTY software.

Sorry, didn´t understand your question.

are you logged in as the root user or using sudo to act as root. a normal user will not be able to edit config files

I was able do edit the files i mentioned, i got permission denied after a created the ssl certificate. I gues i´m logged in as the root user.

  • What is sudo?

It was my mistake, if i type nano ….. i´m able to edit the files.

Thanks

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct