c23f
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. # chmod -R 777 /usr/local/www/owncloudMy /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>
Last edited by DutchDaemon; April 23rd, 2012 at 00:24. |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Ok, I have added
Code:
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
|
|
#4
|
||||
|
||||
|
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. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
badhat101 (April 26th, 2012) | ||
![]() |
| Tags |
| apache, forbidden, owncloud, permission |
| Thread Tools | |
| Display Modes | |
|
|
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 |