Fedora Servers :: Apache 403 Forbidden Error On Symlinks

Aug 12, 2011

the hard drive on my web server died so I replaced it and installed Fedora 15. I have been installing the OS on a small drive and then mounting other drive(s) for storage and did the same thing here. The problem is that I cannot get Apache to follow symlinks. Apache is partially working, it will serve my index.html page in the web page root directory and I made another directory called webtest and put some files in, and that worked fine. I made a symlink from the root directory to a folder on the mounted drive but when I try to access it, it gives me the old 403 Forbidden error. I also made a similar link in the webtest directory, I can view the other files in that directory but it does not show the link - also, trying to force it by typing the full path in the browser gives the same 403 error.

I have checked the permissions and SELinux types (using ls -Z) and they seem to be fine and I cannot find any .htaccess files. All the files on the mounted drive are owned by www:www but I also tried setting the user and group to www in httpd.conf and it still gave the same issue, so I changed them back to apache. I've been reading posts and sites on this for hours now and I'm still lost. I can post results of log files if they are of any use, I just wasn't sure what to post because it is somewhat working.

View 14 Replies


ADVERTISEMENT

Fedora :: Getting Forbidden Error In Apache - 11

Dec 20, 2009

I'm getting 403 Forbidden error when I hit [URL] I disabled SELinux after trying some options. I still get the forbidden error. I've tried [URL] and [URL] as well, with same results.

[Code]....

View 12 Replies View Related

Fedora Servers :: Apache Hosting User Public HTML - Forbidden 403

May 6, 2009

I have apache working,i have users set under admin group in /home/admin/username/html that is with an html publicfolder at the end, now permissions are set right, /html is set to mode 777, and the contents also inside them. But everytime i do a 10.0.11.25/~les i get a damn forbidden error code, its got me so pissed off and i dont' know whats the problem. This is the error i get: Forbidden 403 You don't have permission to access /~les on this server.

Code:

[Tue May 05 19:37:48 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.6 configured -- resuming normal operations
[Tue May 05 20:44:30 2009] [error] [client 10.3.0.254] (13)Permission denied: access to /~les denied

[code]....

View 10 Replies View Related

Ubuntu Servers :: Apache Forbidden 403 Easy Fix?

Jun 14, 2010

I am using the Desktop Version of Ubuntu Lucid Lynx, but I am posting here because I think all of you server guru's can help me. I am setting up my desktop as a mobile development server. I am hoping to eventually have it work with an intranet. Anyways I am trying to configure this and I hit a snag.

I have a 403 forbidden error. I've read around and I thought it might have something to do with SELinux

Here is my Virtualhost file

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName starace
DocumentRoot /home/chris/public_html

[Code]...

View 5 Replies View Related

Ubuntu Servers :: FTP And Apache - Page Forbidden

May 7, 2011

Since I upgraded to 11.04 on my Server edition I have been experiencing some problems with my FTP-server and Apache. Apache just says that the page is "forbidden" if I'm not logged in on the server, which means I need to go to the server and physically log in or I can do it trough ssh but then when I close my ssh client on my work computer the page is "forbidden" again. And I cant seem to reach the FTP-server from an external address so I need to be in the network to access it.

It says something like:
Code:
An error occurred opening that folder on the FTP Server. Make sure you have permission to access that folder.
200 Switching to ASCII mode.
227 Entering Passive Mode (192,168,0,194,233,166)

View 3 Replies View Related

CentOS 5 :: Apache Error 403 - "Forbidden You Don't Have Permission To Access /bb/ On This Server" - 5.2 With Apache 2.2.3

Jan 20, 2011

I am installing Big Brother on a CentOS 5.2 running the default Apache 2.2.3. When I try to access any web page I get the following error: Forbidden You don't have permission to access /bb/ on this server. Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80 So far I have:

1) Set the Directory options to FollowSymLinks
2) Verified all directory and file permissions are at 755
3) Set permissions temporarily to 777 and received same error so I am assuming the issue is in a config file somewhere
4) in hhtpd.conf verified <Files ~ "^.ht"> is correct
5) verified the "default" directory is correct (/var/www/html)

I have read and tried several ideas in posts listed on the web but to no avail and am at a loss as to what to look for next..

View 3 Replies View Related

Ubuntu :: Apache & Group Permissions - 403 Forbidden Error

Nov 12, 2010

this costed me a whole day of trying and retrying. I set up a small home server with apache, php, and mysql.

System infos:
Linux 2.6.31-22-generic-pae
Ubuntu 9.10 Karmic Server edition
Apache/2.2.12 (Ubuntu)

Until now, it served happily a couple of sites, with no problems. But now, I wanted to set up my ftp server to point to the same directory as one of the sites, for me to be able to upload and manage files via ftp. As a server I normally use proftpd. With my usual config, proftpd runs with its own user and simulates the user ftpuser:ftpgroup when creating files. So I just changed all the files to be owned by this user and group. Permissions set to 770.

Everything works fine, and I'm able to access the data via ftp. BUT, when I try to browse my site the usual way (i.e. point firefox to its address) a 403 forbidden error is issued. Of course, you will say: you didn't allow access to apache. Well, I remembered that right away, and added the user www-data to the ftpgroup user. Now I espect apache to be able to read and serve the files.

Still same problem. 403. The apache error log is full with "permission denied" errors. After many attempts, I logged in as the user www-data, and tested access to the files. This way I'm able to cd into the directory, and read-write the files with nano. As a test, I tryed the other way around. Setting www-data:www-data as the owner of the files, and adding the ftpuser to the www-data group. This way apache works, but proftpd does not. Most probably it has something to do with a misunderstanding of groups permissions or the way this two deamons access the files.

View 9 Replies View Related

Red Hat / Fedora :: Cannot Access Symlinks In Apache Root Directory

Nov 17, 2008

I have configured apache on my Centos 5.2 and it is working well. I want to have a sym link of my docs directory in /root/ in the apache root directory. I used ln -s command to create this sym link. But when I tried to access this I get the following error:

You don't have permission to access /docs on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

How can I access this directory in apache. i use apache 2.0.63.

View 1 Replies View Related

Fedora :: Php Apache Superglobals 403 Forbidden?

Jan 3, 2010

I am trying to get an internal webserver running and I am having issues with php. When I make a file (index.php) it runs perfectly. I can use PHP superglobals for the most part but the minute I use 'name' (ex: 'index.php?name=someone') I get a 403 forbidden. I thought for a while that it was something with all superglobals but if i change the code to use another variable it works fine.

works: ('index.php?person=fedora')
Code:
<?php
echo 'Hello ' . $_GET['person'] . '!';
?>
403 forbidden: ('index.php?name=fedora')

[Code]...

I have no idea if this is a apache issue, a php issue or something else random. I disabled SElinix in attempts to fix this, changed the owner and group to me and root and nothing seemed to have any effect. I also checked the document permissions in the httpd.conf and they all look correct.

View 3 Replies View Related

Fedora :: F11 Apache 403 Forbidden Using Alias Directory?

Nov 20, 2009

I have searched the forum high and low for the solution with no success, so I will now post this problem, with all known facts. Linux (and Fedora) is brand new to me so I'm somewhat illiterate with the language and recommendations from reading other threads. Please bare with me. I'm reading the book Beginning PHP and MySQL from Novice to Professional by Cristian Darie.The book has you create an Alias directory for creating the tshirtshop web-based application.

The book uses the directory /home/username/tshirtshop. However, I did not want this in the /home directory, so I created a new directory from the root directory /workspace/tshirtshop. Below are the areas of interest in the file httpd.conf (I restarted the httpd service each time I edited this file):

Code:
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

[Code]....

View 1 Replies View Related

Ubuntu Servers :: 10.04 Not Liking Localhost - 402 Forbidden Error

Mar 3, 2011

I am still a newbie at Linux, but have managed to get about 6 different Kubuntu systems up and all running a localhost test web server. I always start out with a server .iso and after installing I add a kubuntu desktop GUI. I have an old laptop that was running 8.04 server w/xubuntu desktop gui and it was running my test web pages through localhost. I got a wild hair and thought it was about time to upgrade to 10.04 server. I always do a complete install and this time I tried lubuntu desktop GUI. I really like lubuntu but for some reason can not get localhost to run. I get a 402 forbidden error. same error with 127.0.0.1 Here is what I get when I run this command

[Code]...

View 4 Replies View Related

Ubuntu Servers :: Webdav + Nautilus = Forbidden - DON'T Have "Options Indexes" In Apache Config File When Try To Access Via Firefox

Feb 20, 2010

I've installed webdav on my server and I can access it fine through cadaver. However, when I try to access it via nautilus, I get Forbidden. It is NOT secured (SSL). When I try to access it via firefox, I get an error since I DO NOT have "Options Indexes" in my apache config file. If I add this option in, then I can browse the root direction and webdav folder via firefox, but still not from nautilus. what other information you need. I've googled and searched the forums for awhile, but not "solutions" I found have worked for me. I want the webdav folder to just be a single folder within the direction, so this is how I have my config file setup:

[Code]....

As a side-note...when I included "Option Indexes", it allowed me to view the passwd.dav file from firefox!That doesn't seem very good...

View 4 Replies View Related

Fedora Servers :: 14 Apache Error 403?

Dec 24, 2010

I moved from F12 to F14, I've installed using yum Apache, MySql, php, phpMyAdmin. That all works fine, I've made index.php with phpinfo() function and if it is in /var/www/html/ it opens in web browser. I extracted daloradius-0.9-8 in /var/www/hmtl/daloradius folder changed ownership to apache:apache set alias to myradius. When I point web browser to localhost/myradius I get error 403, forbidden. I moved index.php with phpinfo() to daloradius (overwriting old index.php) and same stuff happens. Error 403. What am I doing wrong?

View 4 Replies View Related

Fedora Servers :: Forbidden Don't Have Permission To Access

Apr 9, 2011

before i using fedora 14, i was used fedora 8.... no problem in setting web server, all client (windows XP) can access my resources in var/www/html/index.html but after upgrade to fedora 14.... this is a problem

"forbidden you don't have permission to access.... apache/2.2.16 (Fedora) server at 192.168.1.1 port 80" i had disable firewall also set SELinux to permissive

View 14 Replies View Related

Fedora Servers :: File Permissions - Get A 403 Forbidden ?

Jul 28, 2011

I have a web server set up, and for a while I just let it show the default "test" page, but now I am wanting to actually show something of my own.

I downloaded a couple templates from the internet (free ones), and copied the first one to the /var/www/html folder (including subfolders for ./images and such), and it used an index.php file, but when viewing in my browser, it showed the actual text of the file, not the graphics and images and stuff.

So I deleted those files and "installed" the second template, which uses an index.html file instead.

I am once again getting the default "Apache is running but not configured" page again, even though I have verified multiple times that the index.html file is located in /var/www/html

if I include the index.html file in the path to my website, I get a 403 Forbidden, so I'm thinking it has to do with file ownership or permissions.

I placed the files there as "root", and have tried several combinations of possible permissions (root:root is the owner:group) without any luck.

View 5 Replies View Related

Fedora Servers :: Apache Updated - Reporting 2.2.0 On Any Error Page

Sep 1, 2009

But after it updated and I restarted the service, it's reporting 2.2.0 on any error page. Yet through yum it's reporting 2.2.13-1. Is that normal? I've only ever used 2.2.x, starting with 2.2.6ish.

View 3 Replies View Related

Fedora Servers :: Changing Docroot Apache - Syntax Error

Apr 13, 2010

When I want to change my docroot in /home/Vincent/www or /home/Vincent/www/ it gaves me an.
:Syntax error on line 278 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

I googled it already and they sad that you have to type in:
chcon -R -h -t httpd_sys_content_t /home/Vincent/www << doesn't work so I tried also chcon -R -h -t httpd_sys_content_t /home/Vincent/www/ But nothing seems to work?

View 1 Replies View Related

Fedora Servers :: Mediawiki Upgrade - Get 403 Forbidden Message

May 7, 2011

I just upgraded to mediawiki-1.16.4-58.fc13.x86_64 on my fedora box and did:

Code:

Now I get 403 Forbidden message when I access.

I find several config files related to mediawiki, and modified them, but I still see 403.

View 4 Replies View Related

Fedora Servers :: Directory Index Forbidden By Options Directive?

Jan 7, 2009

I am running a few virtual domains on Apache/Fedora 9. I have some domains working fine but when I tried to put up another one today I get "Directory index forbidden by Options directiveL : /home/jek/www/AAA/" Now here's the weird part. That message appeas in the error log for domain AAA, whereas the new domain is BBB and has it's own log files defined in httpd.conf. On the browser the Fedora test page is displayed. SELinux is turned off.

View 4 Replies View Related

Server :: Fighting Apache To Make It Work With Symlinks?

Jun 23, 2010

I'm having a real problem getting Apache to allow a symlink on a particular folder. The symlink is at /var/www/html/images and it points to /home/foo/images.Here is the relevant section to my httpd.confQuote:

<Directory />
Options +FollowSymLinks
AllowOverride None

[code]....

View 6 Replies View Related

Ubuntu :: Lost With Apache Www-data Virtual Host 403 Forbidden?

Mar 31, 2011

I'm lost I can't get past the 403 forbidden errorI have a directory /home/russ/public_html with a single index.html file

HTML Code:
<html>
<body>

[code]...

View 3 Replies View Related

Fedora :: Getting "There Was An Error During The CUPS Operation: 'client-error-forbidden' / When Press "Remove Printer"?

Oct 19, 2009

When I installed Fedora GNOME I could use my printer fine (But I had to change the recommended driver) Now, I switched to KDE and I plug-in my printer, It automaticly adds it, Now I have to delete it and re-add to fix the small bug... Except when I press "Remove Printer" I get "There was an error during the CUPS operation: 'client-error-forbidden'."

View 1 Replies View Related

Software :: Apache - Make Aliases To Folders Outside Of Main Document Root - Access Forbidden

Jun 9, 2009

I am on mac os x and whenever I make aliases in my apache config file to point to folders outside of main web document root folder, I get access forbidden. I have chmod -R 777 the whole destination directory (to test it) and still no go. Access forbidden. I have also tried pointing directly to [URL].

View 1 Replies View Related

Ubuntu Servers :: Sambe - Ntfs-3g Mount - Symlinks And Headaches?

Jul 8, 2010

Once more I'm trying to do something that is necessary, yet contrary to design. I used to have a proper server, but that gave up the ghost. So right now I make do with a laptop, into which I have plugged a USB harddisk. That used to be my backup of /home, but because I run XP on my workstation (which, sadly, I cannot avoid if I want to get paid at the end of the month, but mainly use to access my Linux server) that USB disk has an NTFS file system. Which is useful, given the fact that sometimes I have to take it with me and plug it into a Windoze box.

When my server passed on to that great server room in the sky, everything went with it, including the data volume. So what I did, this being an emergency, was to plug the USB disk into a spare laptop, install Karmic Server onto it, and edit /etc/fstab to mount the USB disk on /home, using the appropriate uid/gid to mount it under the ownership of my own user account.

Fine - so far so good. This gives me /home/share which is shared as a public samba mount, and /home/frankvw which is shared as a password-protected directory. It also gives me /home/www which is not shared, this being the Apache docroot. I have proper access to everything, and the people rejoice.

Now for the dirty business. To make life easier, I have a symlink 'www' in my home directory:~/www -> /home/wwwwhich works fine from the Linux command prompt (an "ls ~/www") lists the docroot, and "cd ~/www" gets me there) but of course Samba refuses to play ball here. From a Windows client I can see 'www' in my home dir but cannot access it. From a Linux workstation (Intrepid Workstation) in Nautilus I cannot even see 'www' in my homedir - apparently Nautilus is aware of the dirty deeds going on here and prudently hides it. What can I do (short of rearranging the file/directory structure on my USB disk which I'd rather not do) to work around this (otherwise very sensible) restriction?

View 3 Replies View Related

Ubuntu Servers :: Changing Apache Port Gives Error

Jan 5, 2011

My ISP Blocks port 80 so I changed the port to 8081 after I do this and restart Apache and use my IP with :8081 after I get a page saying Not Found The requested URL /index.html was not found on this server. I get this same message if I use my real IP or the IP from my router. What can be causing this?

View 2 Replies View Related

Ubuntu Servers :: Apache 403 Error With Changed Www Root?

Feb 9, 2011

I don't know if this the right place to ask this question. If not excuse me.I installed apache server on my ubuntu and I've changed the www folder in etc/apache/.../default from /var/www to home/user/www but now i haveForbiddenYou don't have permission to access / on this server.

View 3 Replies View Related

Software :: Use Symlinks In Annon Ftp Dir And Proftp - Error 550

Jan 9, 2010

I wanted to use symlinks, in my annon ftp dir. I was running vsftp, but everyone says it can't be done. So I have changed to proftpd. I link to the annon ftp server on my website. I get the dir listing, with symlinks, but try to follow them I get error 550, it don't exist. I have read [URL], but after following the advice here. I get the same error. I have not tried the mount bind option, as I want symlinks or hard links either will do.

View 3 Replies View Related

Software :: Apache Show "Forbidden" After Switched Runlevel 5 To ON?

Jan 17, 2010

i wanted to auto-start apache and mysql each time the server is turn-on so i read some document on the net that explaining how to do that - and it's good - the services are loading when the OS start.(as i said in the subject - i switched the runlevel 5 of httpd service to ON mode instead of the default - OFF)

BUT! the problem is that after i did it - for all of my apache's virtual-hosts i'm getting 403 - Forbidden notice.

when i doing it manually, mean, the server is load and then I'm logging-in with root user and do: 'httpd -k start', it's running perfectly.

i have hard filling that this 'runlevel 5' setting run the apache under user without permissions to those virtual-host folders (they're under 755 mode).

the mysqld service running ok with the runlevel 5 configuration! (2) - i'm using Fedora 12

View 1 Replies View Related

Ubuntu Servers :: Ssh Logout Cause 403 Forbidden Errors

Feb 11, 2011

i have strange problem on my wordpress-powered blog.while i'm connecting to server by ssh or physical console, everything works fine.however, when i tries to logout almost immediately 403 forbidden error pops up on every pages of my website.if there are two or more connections (like physical console and ssh terminal), terminate one of them does not cause 403 forbidden. but it shows 403 forbidden error page right after i terminated all connections.i can find two types of error in apache error.log while it shows 403 forbidden page.

Code:

(13)Permission denied: access to / denied

Code:

(13)Permission denied: /home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable(one strange part is my DocumentRoot is /home/user/www not /home/user)i gave 755 permission to all files and directories in DocumentRoot(which is /home/user/www), but still apache show me the forbidden error page right after logout.i use ubuntu 10.04 lts and i use apt-get command to install all package that i'm using now (apache,mysql,php,mrtg,snmpd,vsftpd,ssh,etc).these are my virtual host config file and apache2.conf. (httpd.conf is empty)

Code:

<VirtualHost *:80>
DocumentRoot /home/user/www/
<Directory /home/user/www/>

[code].....

View 2 Replies View Related

Ubuntu Servers :: Apache Error Log Format Percentage Not Recognized 10.04

Jun 4, 2010

I wanted to log some messages on Apache. So I added in VirtualHost definition

Code:
CustomLog /var/log/apache2/site-resp_log resp
LogFormat "%{X-Forwarded-For} %D %t %T %v %O %b %A %B" resp
and restarted apache2.
I got following error

Code:
* Restarting web server apache2
Syntax error on line 33 of /etc/apache2/sites-enabled/site.com:
Unrecognized LogFormat directive % [fail]
root@server:/var/log/apache2# vi /etc/apache2/sites-available/sites.com

Here is a page I referred to. I am not able to understand the syntax error.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved