Author Topic: apache again  (Read 1761 times)

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« on: 7 September 2002, 22:52 »
well... i re-installed redhat 7.3 and i cont get apache to work now. I think my httpd.conf is close to what i had it before. I couldnt find the link void main gave (it was probly in a pm that i deleted).

How do i make it so that I can use .cgi files in any directory?

Is there anything wrong with this virtualhost?:
Code: [Select]
(this assuming my external IP is 205.92.81.80... which is really a governement IP in case anyone wants to scan it)
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
apache again
« Reply #1 on: 7 September 2002, 23:37 »
You need to add this between your virtual host tags:

Code: [Select]

Obviously the "ExecCGI" is the important part of that, but I also like to use "All" and "Multiviews". You'll also need to uncomment another line higher in your conf file:

Code: [Select]

I believe that is all that I ever do...
Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #2 on: 8 September 2002, 00:08 »
there is one other thing i forgot, and that is how do i stop directory listings?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
apache again
« Reply #3 on: 8 September 2002, 00:56 »
Code: [Select]

just remove "Indexes" and it will give you a 403 when you try to browse a directory.

Edit: 300th post   :D

[ September 07, 2002: Message edited by: TheQuirk ]


Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #4 on: 8 September 2002, 01:04 »
i did that and that and i set the 'Port 8000' and www.bobhub.tk still doesnt work. I dont have anythin g blocking port 8000.
Is there anything else that i would need to do?

[ September 07, 2002: Message edited by: Master of Reality / Bob ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #5 on: 8 September 2002, 01:11 »
it will work on my internal interface (when i type 192.168.0.1:8000 but not 205.92.81.80:8000)
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
apache again
« Reply #6 on: 8 September 2002, 01:27 »
Code: [Select]

and

Code: [Select]

Try that.

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #7 on: 8 September 2002, 01:34 »
if i did servername 192.168.0.1:8000 then that would be my internal interface. I want 205.92.81.80:8000 which is my external interface.
and it didnt work when i did 205.92.81.80:8000 or chatroom.fuckmicrosoft.com:8000.

and i tried Listen 8000 first but it didnt work, so i used the Port command: 'Port 8000' and it still didnt work

[ September 07, 2002: Message edited by: Master of Reality / Bob ]

[ September 07, 2002: Message edited by: Master of Reality / Bob ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
apache again
« Reply #8 on: 8 September 2002, 21:08 »
m0r, search www.apache.org for "vitual host". That's where I pointed you last time to get you going.
Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #9 on: 10 September 2002, 00:35 »
can someone try this link to the bob hub It works on my comp... but it might be that the external stuff aint workin'.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

KernelPanic

  • VIP
  • Member
  • ***
  • Posts: 1,878
  • Kudos: 222
apache again
« Reply #10 on: 10 September 2002, 01:43 »
quote:
Originally posted by Master of Reality / Bob:
can someone try this link to the bob hub It works on my comp... but it might be that the external stuff aint workin'.


It works, the backgorund of the left hand frame doent show though.

[ September 09, 2002: Message edited by: Tux ]

Contains scenes of mild peril.

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #11 on: 10 September 2002, 02:47 »
thats because i lost all my pics. I can get them all back within a few seconds though  

oh yeah, i got news from the GizzBob, fortunecity servers are down and that is why the Bob Home is down.... I might host a mirror for the site though.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #12 on: 10 September 2002, 03:02 »
The Bob Hub and MES Chat should both be working now.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
apache again
« Reply #13 on: 10 September 2002, 08:22 »
i uncommented AddHandler cgi-script .cgi
and added Options ExecCGI but my cgi scripts still wont work. It is chmodded properly but the browser says that it is forbiddden when trying to run it (http://www.meschat.tk). Anything i gotta do.

 Bob sleep now.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
apache again
« Reply #14 on: 10 September 2002, 08:38 »
First of all, can you view regular HTML files or do you also get "Forbidden" with them? There are two possibilities:

1) You not only have to consider the permissions on your CGI files (should be 'r-xr-xr-x') but you have to make sure you have at least 'dr-xr-xr-x' on every directory leading up to the file.  At least the "apache" ID must have access to the files which includes permissions to enter and list contents of the directory ("root root dr-xr-xr-x" or minimally "apache apache "dr-x------").

2) You need to add a <Directory "/var/www/chatroom"> </Directory> section in your httpd.conf.  That looks something like this:

Code: [Select]

Change the "/var/www/chatroom" to whatever your document root is. You should already have a "Directory" directive for "/var/www/html", if your DocumentRoot for your virtual server is not under that directory then add the section I have listed for you above right under the "/var/www/html" section.

P.S. I just did a little digging from "outside" of your server and it appears that you do have the directory permissions set sufficiently. It really looks like you have the permissions set wrong on $DOCROOT/everychat/everycht.cgi. Is it r-xr-xr-x on that script?

[ September 09, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...