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
ADVERTISEMENT
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
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
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
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
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
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
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
View Related
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
Jan 5, 2011
Apache is set to start on runlevel 2, 3 and 5, just like MySQL. For some obscure reason this always fails. I tried resetting the runlevels, but this did not help and I always have to start apache manually after reboot.
How can I analyze this problem? In the Apache logs I don't find the cause. Is there an other log I can check?
View 9 Replies
View Related
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
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
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
Sep 4, 2010
runlevels 2 -5 are identical in Ubuntu. /etc/init/rc-sysinit.conf is used instead of /etc/inittab for changing the runlevel. But there's no point doing that since the runlevels are identical. The default runlevel is 2, so I tried to find some service I could disable in /etc/rc2.d. I didn't find anything I could work with.
View 4 Replies
View Related
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
Jul 15, 2009
I have apache installed and I have it all setup so that when I create a user, in their home directory i created a folder called public_html and then that user can upload web content. Users then can browse to their site by going to[URL],,.How can I get apache to show a different or default page if the user does not have a index.html file in their public_html folder. Cause if they dont, you get a 401 saying you dont have permissions to view, etc. So id like apache to default to something else if the user doesnt have a index.html.
View 1 Replies
View Related
Jan 31, 2011
How can I configure apache2 to show the error message in the browser? Just for the purposes of debugging, I do not want to have to open the server error log every time.
View 1 Replies
View Related
Apr 26, 2010
this might not be a Centos related issue, but since I'm using Centos I guess it doesn't hurt to ask; I've used Ubuntu before and haven't encountered this. So, I've just installed Centos and Webmin and now I'm trying to configure the server. Problem is that on the Apache configuration page I don't have the option (should be there) to configure the Apache modules. I've attached a file to show where the modules option should (as before) appeared.
View 6 Replies
View Related
Jul 17, 2011
I am trying to make my Apache server show symbolic links in a directory listing, but have so far been unsuccessful. In my latest attempt, I have placed the following code in .htaccess, in the directory with the symlinks that I want listing:
Code:
<Directory />
Options All
</Directory>
Im httpd-vhosts.conf, I have also placed the following code within the relative <VirtualHost></VirtualHost>:
View 5 Replies
View Related
Apr 4, 2011
I am running 10.10 on an older HP Pavilion. A couple of times I've noticed that this PC is switched off as if the machine was shut down. But I haven't done it.
With windows there is a known problem if automatic updates is turned on that machine will switch off after updates are applied. Does Ubuntu have such a problem too?
Also- is there some log file I might could look at to see what caused the shutdown?
View 5 Replies
View Related
Jun 11, 2011
So, I'm trying to switch from gnome 3 to KDE4, due to some serious stability issues, and I'm having some trouble with the system appearance settings:
What's the best way to get this stuff back to normal?
View 4 Replies
View Related
Apr 21, 2011
I'm having a strange behavior with the volume button on my laptop, everything works fine, is just that is "switched" when I activate the volume (press function key + volume key) the volume light on the button goes off and volume gets muted, if I pressed it again the light turns on mber) and the volume gets unmute, anyone has an idea where should I look to correct this?
View 5 Replies
View Related
Jul 25, 2010
When I am installing texlive software suddenly power is switched off in the middle. Then onwards I am unable to update the system. And I tried to remove texlive but The error coming as texlive is not installed.
View 1 Replies
View Related
Mar 8, 2010
This is just a data point because these observations are semi-irreproducible results:
* sound. Sometimes the sound cuts out and no sound producing applications are able to use sound. I do not see any evidence for what happened in /var/log/messages. If there is something else I should look at, it would be nice to know. Nothing in the alsa stuff jumps out as a way to trace the activity, so I don't know how to provide any diagnostic info. After several reboots, it eventually restores itself and works correctly.
* video. Sometimes when I boot up, the secondary monitor has residual trash on the boot up/login screen. Other times, it is switched off entirely and I only get one monitor functioning when the desk top is finally up. Rebooting a few times clears this up, too.
The clear-up reboot requires a full shut down, not just a KDE restart. That is always ineffective when these problems present themselves, so these are likely driver level issues. I do not know where developers get their suggestions, but here's one: for each subsystem, have some well-named "I need diagnostics for this" thing available under the yast administrator stuff. That would turn on diagnostics for the subsystem. Then, I could turn it on for X and get something a bit better than the .xsession-errors (which showed nothing obvious for this problem) and for sound (aka "alsa" for those in the know).
View 9 Replies
View Related
Jul 20, 2010
I just installed the XFCE4 desktop environment after installing 'menu'. I then logged out and logged back in after changing session to XFCE. My question is weather or not my installation and configuration of TOR and Polipo are going to work the same within this environment? Am I going to have to reconfigure? Or is this just a change in how the desktop environment is handled within Ubuntu?
View 2 Replies
View Related
Sep 24, 2010
I installed the latest KDE desktop on my Ubuntu 10.04 system. When I switched to KDE the screen ends up black with no access to anything. I reboot but don't have access to the session manager on the ubuntu login screen so I can't get back into my Ubuntu desktop. What can I do?Embarrasingly, I had to log on via Windows 7 (its a dual boot setup) to gain access to the Ubuntu Forums
View 5 Replies
View Related
Nov 11, 2010
a few weeks back I got an Indian Reliance 3g dongle. I installed usb-modeswitch, plugged in and it seemed to work brilliantly in Ubuntu 10.04.The problem was it was dropping the connection every ten minutes. The logs had the error message "Terminating on signal 15".I had to unplug the dongle and then it would connect again.x the problem, I tried installing first Sakis3G and then Betawine, both of which were reported by some users to haved. Sakis said "the device did not report GSM capabilities"d no good.Installing Betawine was apparently a bad idea, as after that the dongle ceased to work with Network Manager and Betawine itself was useless. Uninstalling Betawine and re-installing usb-modeswitch did no good.Now, when I plug in the dongle, the logs say:Quote:
Nov 9 17:52:31 lauri-laptop kernel: [28563.368241] usb 5-2: new full speed USB device using uhci_hcd and address 3
Nov 9 17:52:31 lauri-laptop kernel: [28563.530547] usb 5-2: configuration #1 chosen from 1
[code]...
View 3 Replies
View Related
Apr 28, 2011
i just installed ubuntu 11.04 (not beta) and switched to classic mode since it is really slow for some reason.i tried to go in update manager to see if it might fix it,but there arent any new updates.i also checked additional drivers which showed up nothing.when i had 10.10 it was quick and responsive,but 11.04 just makes me want to go back to the old version.can this be a video driver problem that its going slow?
View 2 Replies
View Related
Aug 13, 2011
i recently had to switch routers because my old one didnt work anymore. i have a dual boot machine with win7 for games and natty narwhal (64-bit) for everything else. i'm quite new to ubuntu, i know how to navigate the menu, change settings, install things, just the basic stuff. i dont know how to use the terminal yet except some basic commands for installing and updating software.
after my router swap, my connection for windows was back, although i had to pull out the network cable and plug it back in for this to happen. unfortunately my connection in ubuntu is still gone. i see the connection in network manager, but i cant access the internet through it. i tried setting up a new one with the same settings, to no avail. i connect to the internet directly through my router. i tried finding some documentation for it but havent had luck with that. is there some way to reset the connection? or let ubuntu set up a new one like when i'm doing a fresh install? i think that ubnuntu still thinks i'm using the old router and that this is the cause for the connection fail.
View 4 Replies
View Related
Jul 28, 2010
My PC is connected to an ISP with IP 192.168.1.21 on eth0Internet works perfectlyI havenstalled an additional LAN card and configured it as eth1 with IP of 192.168.0.1When I connect this LAN card to a LAN switch which in turn is connected to 6 other PCs, the internet stops working.As soon as I switch OFF the LAN switch, I am able to access internet.The IP addresses of the other PCs are configured as 192.168.0.2 etc. with gateway as 192.168.0.1 and DNS as the ISP DNS.I can ping 192.168.0.1 from the LAN but neither LAN nor the main PC can access net.I was planning to Masquerade and NAT the other computers without using squidMy main PC runs on Ubuntu 9.04 and out of the 6PCs on LAN, 2 are on Windows XP, 1 on Ubuntu 10.4, 1 on
View 5 Replies
View Related