OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [users@httpd] Re: Website Down - Help Really Needed


Your best bet is to try to ls -al the file to show the permissions.

The way you're writing up your command makes no sense.

sudo -i /etc/apache2/sites-available/000-default.conf-bash: /etc/apache2/sites-available/000-default.conf: Permission denied


It would appear you're trying to execute the 000-default.conf file, this file doesn't have permissions to be executable by you or in this case, root(sudo -i su's to root).
I don't think it should either. You should be editing the file, not trying to execute it.

I would suggest running sudo -i ls -al /etc/apache2/sites-available/000-default-conf  or sudo -i vi /etc/apache2/sites-available/000-default-conf  to edit it. I used vi, but you can switch that out with your favorite editor.
Thank you,
Greg Borbonus
*Nix Server administrator
832-699-0461
Skype: greg.borbonus 
http://www.linkedin.com/in/gregborbonus/
On 6/18/2018 2:58 PM, Macksymil Marketplace wrote:
When I try to use it without the sudo I get the same permission error.

/etc/apache2/sites-available/000-default.conf

-bash: /etc/apache2/sites-available/000-default.conf: Permission denied


also I can't access the config file to get to make any changes at all. Also I have very limited knowledge of using linux.
Please assist.
Thank you.

On Mon, Jun 18, 2018 at 2:53 PM @lbutlr <kremels@xxxxxxxxx> wrote:
On 18 Jun 2018, at 13:21, Macksymil Marketplace <macksymil@xxxxxxxxx> wrote:
> sudo -i /etc/apache2/sites-available/000-default.conf-bash: /etc/apache2/sites-available/000-default.conf: Permission denied

Not sure why you’re using sudo?


The error in the screenshot specifically points to line 31 in the conf file above, so…

Also, what version of apache?

--
Humans are always slightly lost. It's a basic characteristic. It
explains a lot about them.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


begin:vcard
fn:Greg Borbonus
n:Borbonus;Greg
org:Able Admins;IT
adr:;;3610 parkbank ct,;Houston;Tx;77068;US
email;internet:gregborbonus@xxxxxxxxx
title:Sr. System Administrator
tel;work:(832) 699- 0461
tel;cell:(832) 699- 0461
x-mozilla-html:TRUE
url:http://www.linkedin.com/in/gregborbonus/
version:2.1
end:vcard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx