Page 1 of 2 12 LastLast
Results 1 to 25 of 30
  1. #1
    Join Date
    Aug 2002
    Posts
    76

    Unhappy IF you can help me with this, I will sign over my life! with this scricpt wwwboard

    ok if you know pleeeezzzzz help me! this is what I did so far... and I am substituting a different fan site than mine becuzzz my competition is just plain weird.

    Ok I got the script for wwwboard. I made a directory named 'rant' and I made a subdirectory named 'messages' then I

    1. uploaded wwwboard.pl
    2. edited the variables in the controll panel to show this:
    # Define Variables

    $basedir = "http://beatles.net";
    $baseurl = "http://beatles.net/rant/";
    $cgi_url = "http://beatles.net/rant/wwwboard.pl";

    $mesgdir = "messages";
    $datafile = "data.txt";
    $mesgfile = "rant.html";
    $faqfile = "faq.html";

    $ext = "html";

    $title = "WWWBoard Version 2.0 Test";

    # Done


    3.ok now I changed the wwwboard.html file to rant.html & within this file that I uploaded changed the post line to point to http://bettles.net/rant/wwwboard.pl

    4. so now when I type in my url http://beatles.net/rant/rant.html , my board shows but when I post there is an error!

    5. I tryed changing the file name extensions to .cgi for wwwboard.pl and when posted got this response which is different:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, admin@me and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    --------------------------------------------------------------------------------

    Apache/1.3.26 Server at opps Port 80


    who da' man who can help me out or point me ?? pleezzzz

  2. #2
    Join Date
    Apr 2002
    Location
    USA
    Posts
    5,783
    Lets start off with will your account allow you to run cgi Scripts outside of the cgi-bin dir?
    If so check your premissions on all files to make sure they are correct.
    Check your error log file what do they say.

  3. #3
    Join Date
    Aug 2002
    Posts
    76
    ok thanx

    1. yes they do let you run cgi outside the bin

    2. I set permissions like so:

    wwwboard.pl = 755

    messages directory = 777

    rant.html = 744

    now this is all I uploaded so far..... nothing else except for wwwadmin.pl and I set that for 777

  4. #4
    Join Date
    Aug 2002
    Posts
    76
    ok umm I don't see anything looking like an error log in my file manager.....

  5. #5
    Join Date
    Apr 2002
    Location
    USA
    Posts
    5,783
    $basedir = "/home/domainname/Public_html/messageboard";

    Your base path must be the absolute path not the URL path.

  6. #6
    Join Date
    Aug 2002
    Posts
    76
    ok in my file manager up top it says Location: /www/www

    is this home? like /www/beatles.net/public_html/rant

    sorry....... am I close yet lol

    NOTE USING BEATLES.NET AS AN EXAMPLE SITE, NOT MY SITE.
    in case somebody does a search I wrote that.

  7. #7
    Join Date
    Aug 2000
    Location
    Tacoma, Washington
    Posts
    9,576
    $basedir = "/home/username/public_html/messageboard";

    might work better. It looks like it's a CPanel server.
    (username and small P in public_html)

    Greg Moore
    Former Webhost... now, just a guy.

  8. #8
    Join Date
    Apr 2002
    Location
    USA
    Posts
    5,783
    IS this a cpanel server ensim, plesk or what?

    Your host should be able to tell you the correct path if you ask.

    Yep sorry if it is a cpanel server the path will be. /home/username/public_html/messageboard

    If it is one of the other control panels you will have to ask your host.

  9. #9
    Join Date
    Aug 2002
    Posts
    76
    I cant figure this out.....


    tryed I dont understand what to put for that baseline

    tryed

    /www/www/domain.net/rant
    /www/domain.net/rant
    /domain.net/rant

    and many more.......

    also for the first line to read perl ........ my hosting company said that the direct path to perl is ' /usr/bin/perl ' so I changed the first line from "#!/usr/local/bin/perl to #!/usr/bin/perl is this right??

  10. #10
    Join Date
    Aug 2002
    Posts
    76
    $basedir = "/home/username/public_html/messageboard";
    ok so I will try with my user name in there....... now what do I actually type public_html? and messageboard I sub in "rant" ??

    thanx in advance

  11. #11
    Join Date
    Aug 2002
    Posts
    76
    You can also run cgi scripts outside of your cgi-bin, but you would have to name them with the .cgi extension for security reasons.
    ok this is a quote from my hosting site! but they just told me you cant do this. but yes I did have to use a user name.

    now I will try again with the cgi-bin. thanx guys. I may be back to this thread

  12. #12
    Join Date
    Aug 2002
    Posts
    76
    ok still trying for hours on this! here is what I did....

    1. my variables look like this for wwwboard.pl :

    $basedir = "/home/username/www/www/rant";
    $baseurl = "http://domain.com/wwwboard";
    $cgi_url = "http://domain.com/cgi-bin/wwwboard.pl";

    $mesgdir = "messages";
    $datafile = "data.txt";
    $mesgfile = "rant.html";
    $faqfile = "faq.html";

    THIS FILE IS IS IN MY CGI-BIN SET AT 755

    2. rant.html is in a directory not in my cgi-bin in "rant" directory
    I added line "http://domain.com/cgi-bin/wwwboard.pl" in rant.html for the pointer. permission set 744

    3. made a subdirectory 'messages' in "rant" directory. permission 777

    4. Data.txt is in rant directory set at 777

    now I didnt set the "rant" directory since there was not a direction to. should I? Do you see anything wrong here?
    Does the rant directory have to be in cgi?

    PLEEEZZZZZZ HELP

  13. #13
    Join Date
    Dec 2000
    Location
    The Woodlands, Tx
    Posts
    5,974
    That sounds like an OLM setup.

    /www/home/ or /home/www/ will work because of the symlinks they setup.

  14. #14
    Join Date
    Aug 2002
    Posts
    76
    when I go to post, I keep getting an "internal server error" 500

  15. #15
    Join Date
    Dec 2000
    Location
    The Woodlands, Tx
    Posts
    5,974
    If it is OLM you are on, dont chmod "anything" to 777. At the most, 755.

  16. #16
    Join Date
    Aug 2002
    Location
    online - s'where between home & datacenter
    Posts
    163
    to know wat'r ur base directory, u can use phpinfo()
    RockSolidHosting.US | reliable & affordable webhosting + domains
    Affordable shared / reseller hosting on Linux & Windows 2000
    Quality Bandwidth | 99.9% up | friendly support
    [Chat] yahoo: rshosting | AIM: rshos801 | rocksolidhosting@msn | ICQ: 219698679

  17. #17
    Join Date
    Aug 2002
    Posts
    76
    thanx Webdude..... ok I put the permissions in the control panel to 755 for the 2 I had set for 777 and still I get the same error.....

    I dunno any other suggestions

  18. #18
    Join Date
    Aug 2002
    Posts
    76
    to know wat'r ur base directory, u can use phpinfo()"

    I got a hold of support earlier and I think I have the right info for base based on there response:

    Hello,

    You cannot run .cgi files outside the cgi-bin, they would be useless in any other folder of your domain.

    The server path to your main directory is:
    /home/username/www/www/
    Then the path to cgi-bin would be
    /home/username/www/www/cgi-bin

    #!/usr/bin/perl is the correct path to perl


    ok and I did set the perl path........... & for base I used "/home/username/www/www/rant"

  19. #19
    Join Date
    Dec 2000
    Location
    The Woodlands, Tx
    Posts
    5,974
    So it's working now? It's unusual to have /www/www/ . You should only have one www.

    /home/username/ being your root
    where
    /home/username/www/ would be your web accessible directory.

  20. #20
    Join Date
    Aug 2002
    Posts
    76
    no its not working now! but i can now try what you said.....

    but yeah even on top of my control panel it says location: www/www and then my main files. I have icdsoft as a host

  21. #21
    Join Date
    Dec 2000
    Location
    The Woodlands, Tx
    Posts
    5,974
    cd /home/username/www/
    ls -al

    what do you see? another www?

  22. #22
    Join Date
    Aug 2002
    Posts
    76
    no go ......

    ummm ok I think you are throwing telnet at me..... I was working out of the control panel the whole time.

  23. #23
    Join Date
    Aug 2002
    Location
    online - s'where between home & datacenter
    Posts
    163
    again i'd suggest to use phpinfo() to get hold of exact path .. and stamp out confusions
    RockSolidHosting.US | reliable & affordable webhosting + domains
    Affordable shared / reseller hosting on Linux & Windows 2000
    Quality Bandwidth | 99.9% up | friendly support
    [Chat] yahoo: rshosting | AIM: rshos801 | rocksolidhosting@msn | ICQ: 219698679

  24. #24
    Join Date
    Dec 2000
    Location
    The Woodlands, Tx
    Posts
    5,974
    Ok, yeah, you might want to use the phpinfo...If you dont have command line access, or dont understand it...that's your best bet..

  25. #25
    Join Date
    Aug 2002
    Posts
    76
    ok do ya want to help me try that I got windows 2000. cuzz don't know what phpinfo is

Page 1 of 2 12 LastLast

Posting Permissions

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