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
ADVERTISEMENT
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
Mar 10, 2010
In backing up my server, I back up my databases with mysqldump. I save that file in /tmp, tar it (w/ gzip), and move it to the backup storage.
However, while phpmyadmin handles .tar.gz, it doesn't like my file, since the .sql file isn't in the root directory of the archive.
That is... when I run tar, it saves the entire directory structure leading up to the file... which is what it's supposed to do.
If I want to import my database back, I need to untar it first, which I don't mind, but I was wondering if there was a way around having to do so...
View 3 Replies
View Related
Aug 25, 2010
i installed arch-core-64bit or i thought i did and when i restarted it i got the error error: file not found grub rescue> i have gotten this error before and got around it buy just reinstalling the OS but now when i try to set the booting device to CD i get the same error and when i try to set it to usb i get a error saying disk error. could this be because my usb not formatted to arch's liking? well any way that's not my big problem my big problem is the fact that i do not know how to reinstall the OS i have searched for a couple days and still have no idea how to get this accomplished.
View 2 Replies
View Related
Mar 26, 2010
I set up a servber on my local machine, & also PHp - Both working fine.I'm trying to load up MYSQL i have installed it, & *can* start/stop the server. however if I do anything else with it, I get this error :-
Quote:
root@gordon-desktop:~# sudo mysqladmin -u root -h localhost password MYPASSWORD
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Query :-
1) How do I know MYSQL is actually active ? (apart from the message it says that its statrted (or stopped).
2) Is there a way to
a) Find out the usernames that are recorded on the MYSQL server ?
b) set / RESET the 'root' username (I know MYSQL root user is different to PC root user)
c) anything else I can do on the PHP / website code to see if MYSQL is working
(as yet, no tables / databases etc have been set up - as I can't get past this error message - I get the same error when setting up a database.)
Ps I did allow my usermname (when logged in to ubuntu) to edit / create files in the /usr/www/ directory (but it is still OWNED by 'root' - that directory)
View 4 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
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
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 13, 2010
Long story Short, I had to reinstall 9.10 (after a failed 10.04 upgrade) and therefore fresh install of everything.
I installed Apache2 as per [URL] and all works fine.
Changing the root in /etc/apache2/sites-available/default to a folder in my home directory /home/user/subfldr1/www results in a forbidden 403 error.
I've tried changing group owner, given 777 permissions, read and tried all sorts of solutions, but nothing seems to be working.
View 3 Replies
View Related
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
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
Nov 14, 2010
I have installed Redmine according to the instructions on [url] according to the mod_cgi instructions which seem to be the easiest to follow.
The script installed in the installation directory was called 'dispatch.fcgi', and not parsing when I visited the page through the browser, just displaying the contents of the script. OK, so I installed the apache mod libapache2-mod-fastcgi using apt-get. Then 'a2enmod fcgid' followed by an apache restart.
Now when I visit the Redmine folder through the web browser I get 'Forbidden You don't have permission to access /redmine/dispatch.fcgi on this server.'
I checked to ensure www-data owns all files and has correct permissions to the folder. But this doesn't seem to work.
View 3 Replies
View Related
Jun 16, 2011
Using httpd - everything usually works but I have written a cgi script and placed in cgi-bin but i cannot access this dir and keep getting forbidden messages. I have tried adding my root and usual user to the /etc/group file against the user stipulated in the httpd.conf file but i still can't access the cgi script i wrote (in browser - localhost/cgibin/myscrippt.cgi) when i place it in the cgi-bin under htdocs. i have also chmod 755 directory and files.
View 1 Replies
View Related
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
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
Apr 1, 2011
I am trying to download all the Heroes graphic novels off the nbc site. Originally I was downloading them via the provided links but with ~170 pdfs to download it was going to take a while I used wget to start downloading them a bit faster, I tried the command
$wget -N -r -l inf -p -np -k -A '.pdf' url
in an attempt to download all the pdfs at once, I got an error message
--2011-04-01 13:17:14-- url
Resolving url... 92.122.49.98, 92.122.49.235
Connecting to url|92.122.49.98|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2011-04-01 13:17:15 ERROR 403: Forbidden.
Is this something I've done wring or something nbc have done to stop the use of wget?
View 3 Replies
View Related
May 10, 2011
running Ubuntu 10.10 and mozilla and seamonkey... Tried to access a website: [URL] and got the error: The page cannot be displayed You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. Please try the following: Contact the Web site administrator if you believe this directory should allow execute access. HTTP Error 403.1 - Forbidden: Execute access is denied. Internet Information Services (IIS)
View 1 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 20, 2010
I have the following message with apache:
Quote:
Forbidden
You don't have permission to access /site/home.html on this server.Apache/2.2.12 (Ubuntu) Server at localhost Port 80
home.html isn't in /var/www but in my /home/myname/site/ How can visualize my site in my local directory?
View 1 Replies
View Related
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
Feb 10, 2011
installation moodle on Ubuntu 10.04.1 LTS.at localhost show message It works!at localhost/moodle show message Forbidden You don't have permission to access /moodle on this server.
View 1 Replies
View Related
Jun 25, 2010
I am trying to use yum command to install mysql and php but I get the following error
yum install php Loading "installonlyn" plugin Setting up Install Process Setting up repositories Could not retrieve mirrorlist [URL]...[Errno 14] HTTP Error 403: Forbidden Error: Cannot find a valid baseurl for repo: base
[code]...
View 4 Replies
View Related
Jul 22, 2011
I am trying to browse in /var/www/directory and it giving me a following error. Forbidden You don't have permission to access /directory/ on this server. Apache/2.2.14 (Ubuntu)Server at localhost Port 80 I have just copied that directory to /var/www. What might be wrong.
View 14 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
Feb 9, 2010
I get "403 Forbidden You don't have permission to access" after attempting an installation of phpmyadmin.
CentOS 5.4
Permissions for directory set to 755 recursively (chomd -R 755 <directory name>)
Directory is in /var/www/html/
I have other test pages in the /var/www/html/ directory that I can access ... I know this seems like a permission issue and in fact the error log states this is a permission issue, but I cannot figure what is the problem here.
View 16 Replies
View Related
Jun 21, 2011
I have a web application that runs on PHP and MySQL on opensuse 11.4 (web server) and opensuse 11.1 (database server).The web application uses a .htaccess file that causes my site to error with error "403 forbidden". If I add "+FollowSymLinks" at the top, it loads the application just fine.But problem is that I have an issue with the application, and they believe that my .htaccess file is at fault since it's custom. I hightly doubt it but wanted to eliminate that as a concern.
View 1 Replies
View Related
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
Aug 14, 2010
I am trying to set up postfix on my ubuntu server.When I try to login to the pop accounts through telnet
Code:
user@ubuntu1:/$ telnet localhost 110
Trying ::1...
[code]....
View 3 Replies
View Related
Jun 3, 2011
For some rather odd reason, my IRC bot wont connect to the local irc server, but it will connect to IRC.FREENODE.NET, I have no idea why...
PHP Code:
<?php/** PHPIRC Class Simple IRC Bot * * @author Ferdinand E. Silva
[code]...
View 1 Replies
View Related
Feb 27, 2010
since i dualbooted with wi7, i'm not really sure how to rid myself of this damn thing. i want to just format the whole drive, but windows isn't having much of that.
View 5 Replies
View Related