public_html : permission denied

Hello

I have a simple web server setup for some websites, with a layout something like:

site1: /var/www/site1/public_html/

site2: /var/www/site2/public_html/

I have previously used the root user to create directory.

Now i can't send file to my public_html i got permission denied.

How to put my files.

Thanks

3 Replies

You need to use the "chown" command (and maybe, if I'm allowed to say it, a short course on Unix, as that's a really elementary question).

Hi All!

I know this question has popped up a couple times, but I can't seem to find a definitive answer to my issue, so please bear with me. I have Ubuntu Server 12.04 setup in VirtualBox for PHP development and testing (Drupal plus other PHP sites using Yii framework). Thank you, keep in touch with me… :)

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