Results 1 to 25 of 30
-
09-17-2002, 06:26 PM #1Junior Guru Wannabe
- Join Date
- Aug 2002
- Posts
- 76
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
-
09-17-2002, 06:44 PM #2Web Hosting Master
- 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.
-
09-17-2002, 06:57 PM #3Junior Guru Wannabe
- 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
-
09-17-2002, 07:10 PM #4Junior Guru Wannabe
- Join Date
- Aug 2002
- Posts
- 76
ok umm I don't see anything looking like an error log in my file manager.....
-
09-17-2002, 07:16 PM #5Web Hosting Master
- 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.
-
09-17-2002, 07:30 PM #6Junior Guru Wannabe
- 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.
-
09-17-2002, 08:36 PM #7ex-Aussie
- 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 MooreFormer Webhost... now, just a guy.
-
09-17-2002, 08:39 PM #8Web Hosting Master
- 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.
-
09-17-2002, 08:40 PM #9Junior Guru Wannabe
- 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??
-
09-17-2002, 08:44 PM #10Junior Guru Wannabe
- Join Date
- Aug 2002
- Posts
- 76
$basedir = "/home/username/public_html/messageboard";
thanx in advance
-
09-17-2002, 09:18 PM #11Junior Guru Wannabe
- 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.
now I will try again with the cgi-bin. thanx guys. I may be back to this thread
-
09-18-2002, 12:23 AM #12Junior Guru Wannabe
- 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
-
09-18-2002, 12:26 AM #13Web Hosting Master
- 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.
-
09-18-2002, 12:55 AM #14Junior Guru Wannabe
- Join Date
- Aug 2002
- Posts
- 76
when I go to post, I keep getting an "internal server error" 500
-
09-18-2002, 12:57 AM #15Web Hosting Master
- 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.
-
09-18-2002, 01:02 AM #16WHT Addict
- 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
-
09-18-2002, 01:13 AM #17Junior Guru Wannabe
- 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
-
09-18-2002, 01:18 AM #18Junior Guru Wannabe
- 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"
-
09-18-2002, 01:25 AM #19Web Hosting Master
- 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.
-
09-18-2002, 01:28 AM #20Junior Guru Wannabe
- 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
-
09-18-2002, 01:33 AM #21Web Hosting Master
- Join Date
- Dec 2000
- Location
- The Woodlands, Tx
- Posts
- 5,974
cd /home/username/www/
ls -al
what do you see? another www?
-
09-18-2002, 01:37 AM #22Junior Guru Wannabe
- 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.
-
09-18-2002, 01:39 AM #23WHT Addict
- 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
-
09-18-2002, 01:41 AM #24Web Hosting Master
- 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..
-
09-18-2002, 01:44 AM #25Junior Guru Wannabe
- 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