LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 11-03-2003, 03:54 PM   #1
guardian653
Member
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 79

Rep: Reputation: 15
Exclamation httpd returns 403 for no apperent reason all of a sudden (any more clues?)


Hey all on this forum. I got a pretty bad problem to ask you about.

I run a web server for my own personal site. Its was running for about 57 days before it took a crap. I had just made a script that produces thumbnails and other stuff and I was showing it to a friend. All is going well.. then this happens.... He forgot to specify the targetto and ever since everything went down. First it shows my PHP page with a missing image (no brainer, didn't specify were to say it to so it just points to "") but also on the top I get an error saying it could not load my header (my header is another PHP page that gets included with every page on the site) and I was wondering to myself wtf?

Get home, login to my server, thinking the permissions were messed up go to change them and to my surprise.. they were intact. I still got 403 errors for no reason at all.

I seen this problem mention on serveral web pages on a lookup on google, but to no avial, no solutions....

The day before I enabled mod_auth_mysql to block my cgi-bin directory from non members on my site. Also I added my thumbnail maker and a couple of bug fixes..

The one thing I don't get is why for no apperatent reason it just dies! Producing an endless 403 page on no matter what, except my /manual (default directory for the apache manual) works. The permissions are almost identical.. (I have apache:apache on my directories)

Some facts:
PHP Based site
mod_auth_mysql enabled just recently (only /var/www/cgi-bin is set to protect)
Added/fixed pages using samba the night before
Server returns nothing but 403 errors for everthing except the /var/www/manual site
Permissions are setup correctly
AllowOverride was always set to All (setting to None doesn't help)
Rebooted twice, no results

Here is simplet from my error_log:
identify: Unable to open file (/var/www/html/https://66.188.56.27/pub/users/chris/TS/tgs_cg07.jpg) [No such file or directory].
identify: Missing an image file name [No such file or directory].
identify: Unable to open file (/var/www/html/https://66.188.56.27/pub/users/chris/TS/tgs_cg07.jpg) [No such file or directory].
identify: Missing an image file name [No such file or directory].
convert: Unable to resize image (image dimensions are zero).
convert: Unable to open file (/var/www/html/).
[Mon Nov 03 14:15:42 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 14:15:55 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 14:16:04 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 14:16:10 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 14:17:06 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 14:17:32 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 14:18:45 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 14:18:55 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:30:41 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:39 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:40 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:40 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:41 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:41 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:41 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:41 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:42 2003] [crit] [client 192.168.1.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:32:51 2003] [crit] [client 192.168.1.199] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Nov 03 15:33:05 2003] [crit] [client 127.0.0.1] (13)Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

http://66.188.56.27:8888/
https://66.188.56.27

if you want to try your luck accessing it


Any help is
greatly
appericated!

Thanks

If you need any more info, just ask

Last edited by guardian653; 06-26-2009 at 10:15 PM.
 
Old 11-03-2003, 03:58 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
Do you have a ".htaccess" file in html? Post the output of:
ls -la /var/www/html/
 
Old 11-03-2003, 04:10 PM   #3
guardian653
Member
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
There isn't one and there hasn't been a use for one. Adding one doesn't seem to help either.

(AllowOverrides All has always been that way)


Any more clues?

Thanks

Last edited by guardian653; 11-03-2003 at 04:11 PM.
 
Old 11-04-2003, 12:48 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,599
Blog Entries: 47

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
I had just made a script that produces thumbnails and other stuff and I was showing it to a friend. All is going well.. then this happens.... He forgot to specify the targetto and ever since everything went down.
...makes this question not a security issue, probably misconfiguration, which is supported by error messages like: identify: Unable to open file (/var/www/html/https://66.188.56.27/pub/users/chris/TS/tgs_cg07.jpg). Note it sez "var/www/html/https://" instead of "/pub/users/chris" or /var/www/html/pub/users/chris/".
Review your Apache config, and if unsure, post the contents.
I'll be moving this thread to Linux - General.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd ,error num:403 hrajabi Linux - Networking 1 10-17-2005 01:37 PM
Vqadmin.cgi, 403 Forbidden Erros, and httpd.conf woe opioid Linux - Software 3 05-11-2004 08:08 AM
Webalizer -c /etc/config1.conf Returns /etc/httpd/logs MadTurki Linux - General 1 03-31-2004 08:33 AM
403 forbidden access on httpd service roguecoolman Linux - Newbie 1 09-23-2003 05:08 PM
Apache 403 Forbidden Solution Need Reason blakehammon Linux - Software 11 07-25-2003 12:07 PM


All times are GMT -5. The time now is 09:53 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration