Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-12-2016, 12:27 PM   #1
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 689

Rep: Reputation: 69
No permission to access owncloud with apache


I'm trying to configure owncloud on my server, but I encounter two errors:
You don't have permission to access /owncloud/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
In ssl_error_log:
client denied by server configuration: /usr/share/owncloud/core/templates/403.php, referer:

I also tried changing the permissions of /usr/share/owncloud to apache:apache, but to no avail.

There's also the default owncloud.conf under /etc/httpd/conf.d which points to the respective file (index.php).

Any ideas what I should be searching for?

This is part of my httpd.conf file:
DocumentRoot "/var/www/html"
<VirtualHost *:80>
Redirect /

<Directory "/var/www/html/share">
Options +FollowSymLinks +Multiviews +Indexes
IndexOptions NameWidth=80
AllowOverride Indexes
AuthType basic
AuthName "private"
AuthUserFile "/etc/httpd/conf/.htpasswd"
Require valid-user
The rest is the default config. I don't think my directory directive has anything to do with it.

Do you think that the fact that the documentroot points to a completely different folder than where the /owncloud is is actually the problem? And if so, how can I solve the problem as smoothly as possible?

Last edited by vincix; 06-12-2016 at 12:34 PM.
Old 06-12-2016, 01:08 PM   #2
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 689

Original Poster
Rep: Reputation: 69
Well, it does work if I move /usr/share/owncloud to /var/www/html/owncloud and the point it in owncloud.conf, but that's hardly ideal, obviously.

The problem was that owncloud doesn't normally allow for the initial wizard to be configured remotely, but only from the localhost. So what I did was force it, by configuring it to accept requests from outside, like you do after you configure it:

'trusted_domains' =>
array (
0 => '',


apache, owncloud

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache can't access directory with permission www-data AlexRsk Linux - Newbie 1 10-30-2014 07:18 AM
[SOLVED] Forbidden You don't have permission to access /moodle on this server. Apache/2.2.16 abdul kadir Linux - Newbie 3 08-27-2010 03:07 AM
Apache: You don't have permission to access /wordpress/ on this server. IKT Linux - Server 18 08-20-2009 07:41 AM
Apache Vhost( You don't have permission to access / on this server.) trekgraham Linux - Software 3 07-08-2004 10:01 AM
You don't have permission to access.. apache ?'s jester_69 Linux - General 3 09-06-2002 07:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration