Page 1 of 2 12 LastLast
Results 1 to 25 of 30

Thread: Enabling Shell Scripts - I know some of you know this!

  1. #1
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Enabling Shell Scripts - I know some of you know this!

    My boyfriend wants me to work on his site... he has the following code:

    <body text="#ffffff" bgcolor="#000000" rip-style-bordercolor-backup="" style="" rip-style-borderstyle-backup="" rip-style-borderwidth-backup="">

    <p align="center"> <!--#if expr="$HTTP_COOKIE != /grid/" --> <img usemap="#table5" src="img/table5.jpg" border="0" height="370" width="540"> <!--#else --> <img usemap="#table5" src="img/table5_unlocked.jpg" border="0" height="370" width="540"> <!--#endif --> <map name="table5"> <area shape="rect" coords="171,14,388,201" href="journal5/index.html" target="_parent" onmouseover="window.status='pick up the journal'; return true"> <area shape="rect" coords="0,0,539,369" href="/temple.html" onmouseover="window.status='leave the table'; return true"> </map> </p>


    </body>
    </html>

    The bolded scripts aren't currently enabled. Any idea how to enable them? >_>


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  2. #2
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Or... server side includes. >_> Damnit I wish he'd tell me what he wants.


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  3. #3
    Senior Member
    Joined
    Aug 2005
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    change file name to end with .shtml im guessing.
    and im guessing make sure or change web server options accordingly.

  4. #4
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Is the server's config in your control or a hosting applications?

    Above the body, is there a <form> tag or anything telling you what's calling the code? Something defining $HTTP_COOKIE specific if not the sever globally defined variable? What's the purpose of the file?

    Looks like an HTML cookie that defines the data in the pixel map in the table.

    If .shtml does not fix it, you need to invoke the calls that understand those variables (sorry I'm living on a little more than 48 hours with no sleep)
    People are not ruled by their memories.

  5. #5
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Quote Originally Posted by Mastridonicus
    Is the server's config in your control or a hosting applications?

    Above the body, is there a <form> tag or anything telling you what's calling the code? No Something defining $HTTP_COOKIE specific if not the sever globally defined variable?No What's the purpose of the file? I have no idea, my boyfriend wants me to fix it but I don't know what he's asking of me.

    Looks like an HTML cookie that defines the data in the pixel map in the table.

    If .shtml does not fix it, you need to invoke the calls that understand those variables (sorry I'm living on a little more than 48 hours with no sleep)

    Is this the code I need to add:

    #AddType text/x-server-parsed-html .shtml
    #AddType application/x-httpd-cgi .cgi

    The website is at: riumplus.com/rjr/journals-site and you can view souce table.


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  6. #6
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    The webserver options are already enabled for it, I guess it's the shtml I need to change. :/ Blah.


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  7. #7
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    yes.

    make sure that's the active httpd.conf

    and that you compiled apache with that support if it's an older version
    People are not ruled by their memories.

  8. #8
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    lilith, I'm seriously exhausted or I'd help more. But make sure that your identifying the file as either a cgi script or an .shtml html file. I can research this later if need be. Lemme look at the site real quick tho to see what I can see. Cross eyed.
    People are not ruled by their memories.

  9. #9
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    I see a directory index.

    If I read the indexrename.html I get a graphic, no on mouseovers tho, and no errors tho I did not view source. Is that the file you're having the problems in?
    People are not ruled by their memories.

  10. #10
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    That worked, thank you


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  11. #11
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    No you were right, it was the filename. It had to be shtml. Second I did that it worked. Now I just need to redirect the entire thing to shtml. HAHA


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  12. #12
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    HOORAYYYYY I'M USEFUL.

    for now.
    People are not ruled by their memories.

  13. #13
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    lilith: in your DirectoryIndex field in httpd.conf add index.shtml

    then no redirects are needed unless you hardcoded the files individually in reference to others. BAD CODER!
    People are not ruled by their memories.

  14. #14
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Alright, now my boyfriend is having a problem with the CGI scripts. He can't seem to get cookie.cgi to work as well as solved.cgi.... is the problem the same as the original problem where a namechange is needed or is it in the scripts?


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  15. #15
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    My boyfriend said, "Hey this code was originall done in 1997! There's Javascript designed to work around IE 2 and Netscape 3".

    He's recoding a site that was done many moons ago and wants it working as a surprise for the convention he's going to - so it's all bad old code that's being rewritten.


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  16. #16
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    well the .cgi functionality could be a lot of things. Did he enable apachecgi? It conflicts with some version of php5. Also you also need to make sure your cgi's are stored in the cgi-bin you define so they're executible. You can store them outside the folder but they must be executible by user www
    People are not ruled by their memories.

  17. #17
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Your boyfriend is a man wit das plan. Tell him this is easy enough to do. Worse case scenario he can send me source and I'll get it working on my server and shoot him a how-to.
    People are not ruled by their memories.

  18. #18
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    ok, Miss Morrigan. I am off to bed, I'm dying here.

    Sommmme velvet morning when I'm straight....
    I'm going to open up yourrrrrr gate


    And maybe tell you about Phaedra
    And how she gave me life
    And how she made it end......

    some velvet morning when I'm straight.
    People are not ruled by their memories.

  19. #19
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Would PHP 4 make the cgi work better that PHP 5, I can disable 5 and enable 4.


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  20. #20
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    DAMN, test it myself! night!


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  21. #21
    God/dess Mastridonicus's Avatar
    Joined
    Jun 2005
    Location
    Paradigm City
    Posts
    6,784
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Quote Originally Posted by lilithmorrigan
    Would PHP 4 make the cgi work better that PHP 5, I can disable 5 and enable 4.

    If it's old... build php3 into apache.... hell of a lot easier to impliment. you can run a <PHPINFO ?> command to see what the server supports as is.... Don't hate... you're in the land down under. I'm on the taint of america.
    People are not ruled by their memories.

  22. #22
    God/dess Bridgette's Avatar
    Joined
    Apr 2002
    Location
    Gettin the fuck outta Dodge!
    Posts
    14,241
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Quote Originally Posted by lilithmorrigan
    My boyfriend wants me to work on his site... he has the following code:

    <body text="#ffffff" bgcolor="#000000" rip-style-bordercolor-backup="" style="" rip-style-borderstyle-backup="" rip-style-borderwidth-backup="">

    <p align="center"> <!--#if expr="$HTTP_COOKIE != /grid/" --> <img usemap="#table5" src="img/table5.jpg" border="0" height="370" width="540"> <!--#else --> <img usemap="#table5" src="img/table5_unlocked.jpg" border="0" height="370" width="540"> <!--#endif --> <map name="table5"> <area shape="rect" coords="171,14,388,201" href="journal5/index.html" target="_parent" onmouseover="window.status='pick up the journal'; return true"> <area shape="rect" coords="0,0,539,369" href="/temple.html" onmouseover="window.status='leave the table'; return true"> </map> </p>


    </body>
    </html>

    The bolded scripts aren't currently enabled. Any idea how to enable them? >_>
    Take out the !-- and -- in the brackets.

    Quote Originally Posted by pheno View Post
    When you lead a nontraditional life don't try to measure it with traditional milestones.

  23. #23
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    The !-- is the issuing command in SSI format. It causes the server to recognize the comment as a command instead. It's needed. o.o


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

  24. #24
    God/dess Bridgette's Avatar
    Joined
    Apr 2002
    Location
    Gettin the fuck outta Dodge!
    Posts
    14,241
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Okie. Next time I'll pay more attention before I say something stoopid

    Quote Originally Posted by pheno View Post
    When you lead a nontraditional life don't try to measure it with traditional milestones.

  25. #25
    God/dess Lysondra's Avatar
    Joined
    Apr 2005
    Location
    Another Country
    Posts
    18,664
    Thanks
    0
    Thanked 148 Times in 100 Posts

    Default Re: Enabling Shell Scripts - I know some of you know this!

    Nah, it's okay. I see where I'd have done the same thing since it's normally a comment tag. But the --# is what removes it from being a comment and being a SSI command tag. Honestly, I didn't know what I was getting into much, either. >_>


    Look like a woman
    Think like a man
    Act like a lady
    Work like a dog

    - My Great Grandmother Bessie's Recipe for Success

Page 1 of 2 12 LastLast

Similar Threads

  1. Phone Sex Scripts
    By LAChloe in forum Camming Connection
    Replies: 3
    Last Post: 09-26-2011, 03:19 PM
  2. Computer Nerds...Help a Shell..
    By PookaShell in forum The Lounge
    Replies: 18
    Last Post: 09-15-2007, 08:07 AM
  3. Sweatttttyyyyyyyyy Shell....
    By PookaShell in forum Body Business
    Replies: 9
    Last Post: 02-07-2007, 01:48 AM
  4. Sick Shell
    By PookaShell in forum The Lounge
    Replies: 10
    Last Post: 10-13-2006, 02:20 PM
  5. Art and Pooka Shell....
    By PookaShell in forum Picture Post
    Replies: 22
    Last Post: 09-21-2006, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •