LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-12-2016, 01:27 PM   #1
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 514

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


Hi,

I'm trying to configure owncloud on my server, but I encounter two errors:
Quote:
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: https://macroscian.com/owncloud/

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:
Quote:
DocumentRoot "/var/www/html"
<VirtualHost *:80>
Redirect / https://macroscian.com/
</VirtualHost>

<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
</Directory>
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 01:34 PM.
 
Old 06-12-2016, 02:08 PM   #2
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 514

Original Poster
Rep: Reputation: 48
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:

/etc/owncloud/config.php:
Quote:
'trusted_domains' =>
array (
0 => 'macroscian.com',
),
 
  


Reply

Tags
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 08: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 04:07 AM
Apache: You don't have permission to access /wordpress/ on this server. IKT Linux - Server 18 08-20-2009 08:41 AM
Apache Vhost( You don't have permission to access / on this server.) trekgraham Linux - Software 3 07-08-2004 11:01 AM
You don't have permission to access.. apache ?'s jester_69 Linux - General 3 09-06-2002 08:43 AM


All times are GMT -5. The time now is 04:31 AM.

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