home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] Apache 403 Error

Check your Apache error logs.

My guess is that the user running your Apache server (I.e. www-data if
you're on Debian) is not a member of your webusers group.

-Vic

On Nov 18, 2016 3:19 PM, "Trevor James" <james [ at ] telfer [ dot ] uottawa [ dot ] ca> wrote:

> Good Day all
>
> OK background need to set up a LAMP server with sftp access to
> /var/www/html
>
> Using scripts from the net, I followed this path
>
> Create a user "webguy"
>
> mkdir /home/webguy/www_dev
> mount --bind /var/www/dev/ /home/webguy/www_dev
>
> edited /etc/fstab to make it permanent
>
> This redirect worked
>
> From there I am in a hit and miss area (and I know it will be a simple
> solution that I just don't see)
>
> Getting the rights/owners and httpd.conf has not worked
>
> I created a group called webusers, and made webguy a member of that group
> (we don't have to keep this, but it is how I got it to work for sftp access)
>
> Ls                                            chown
>           chmod
>
> /var/www                           root:webusers                  770
> /var/www/html               root:webusers                770
>
> Now webguy can upload, and change files but I go http://myserver/ I get
> 403 forbidden so this is a rights issue I have erred on.
>
> Any help would be appreciated.
>
> Thanks.
>
> T. James
>
> _______________________________________________
> Linux mailing list
> Linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca
> http://oclug.on.ca/mailman/listinfo/linux
>

references

message navigation