c23f Owncloud 3 port and Apache22 server - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old April 23rd, 2012, 00:17
badhat101 badhat101 is offline
Junior Member
 
Join Date: Aug 2010
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Default Owncloud 3 port and Apache22 server

I want to try out Owncloud from ports and I thought I had set everything up correctly (I am quite new to webservers). When I browse to my local ip and port I get "It works!" from apache (I assume). When I browse to 192.168.1.200:444/owncloud I am told
Code:
403 Forbidden: You don't have permission to access /owncloud/ on this server.
My first thought was a permissions issue so I went ahead and # chmod -R 777 /usr/local/www/owncloud

My /usr/local/etc/apache22/httpd.conf has a relevant section that looks like
Code:
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

Alias /owncloud /usr/local/www/owncloud
        AcceptPathInfo On
        <Directory /usr/local/www/owncloud>
            AllowOverride All
            Order Allow,Deny
            Allow from all
        </Directory>
Is there something I am missing? My apache root document directory is owned by root. Should I have a user on the system that is apache or www or something?

Last edited by DutchDaemon; April 23rd, 2012 at 00:24.
Reply With Quote
  #2  
Old April 23rd, 2012, 10:19
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Set the correct DirectoryIndex. You get this error because DirectoryIndex is not set properly and Apache is set to deny a directory listing.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old April 24th, 2012, 02:02
badhat101 badhat101 is offline
Junior Member
 
Join Date: Aug 2010
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ok, I have added
Code:
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>
I can now access a page, though it is only the contents of the file index.php inside of /usr/local/www/owncloud/. Like I said, I am new to webservers. Do I have to tell Apache something about my DocumentRoot because OwnCloud does not reside in the same directory?
Reply With Quote
  #4  
Old April 24th, 2012, 07:07
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

If you're looking at the contents of index.php PHP isn't configured correctly.

You need to add these line to your httpd.conf:
Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
badhat101 (April 26th, 2012)
Reply

Tags
apache, forbidden, owncloud, permission

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Cannot load /usr/local/libexec/apache22/libphp5.so into server ccc Installation and Maintenance of FreeBSD Ports or Packages 3 March 28th, 2012 10:26
Need recipe for owncloud-2 and nginx semi-ambivalent Web & Network Services 0 October 20th, 2011 13:47
[Solved] Apache22 Port Upgrade Error churchi Installation and Maintenance of FreeBSD Ports or Packages 1 September 24th, 2010 06:59
mod_authnz_ldap not installed w/ port reinstall of apache22 spomerg Installation and Maintenance of FreeBSD Ports or Packages 0 August 11th, 2010 17:19
Unable to port update Apache22 after 2.2.9 Phonetic Installation and Maintenance of FreeBSD Ports or Packages 8 October 16th, 2009 08:23


All times are GMT +1. The time now is 16:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0