Jump to content

My website still won't show up


Flamzeron

Recommended Posts

I still can't get my CGI message board to show up. Whenever I go to the link, I get a 500 Internal Server Error.

 

http://mizuhobbs.heliohost.org/cgi-bin/talkbbs.cgi

 

Also, here is my code.

 

[Moved to https://gist.github.com/1061627]

 

Thanks in advanced.

Link to comment
Share on other sites

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

Guest Geoff
Bareword found where operator expected at ./talkbbs.cgi line 84, near "/home/mizuho"
        (Missing operator before zuho?)
String found where operator expected at ./talkbbs.cgi line 85, near "$logfile  = /home/mizuho/p
ublic_html/cgi-bin/talkbbs.log""
  (Might be a runaway multi-line "" string starting on line 84)
        (Missing semicolon on previous line?)
syntax error at ./talkbbs.cgi line 84, near "/home/mizuho"
Execution of ./talkbbs.cgi aborted due to compilation errors.

Link to comment
Share on other sites

Bareword found where operator expected at ./talkbbs.cgi line 84, near "/home/mizuho"
        (Missing operator before zuho?)
String found where operator expected at ./talkbbs.cgi line 85, near "$logfile  = /home/mizuho/p
ublic_html/cgi-bin/talkbbs.log""
  (Might be a runaway multi-line "" string starting on line 84)
        (Missing semicolon on previous line?)
syntax error at ./talkbbs.cgi line 84, near "/home/mizuho"
Execution of ./talkbbs.cgi aborted due to compilation errors.

 

I don't understand. What exactly do I need to edit?

Link to comment
Share on other sites

I didn't actually make the script. The script is of an old website I used to go to, which closed down abruptly. I'm trying to rehost it. I'm new to CGI hosting, so I don't know what to do.

Link to comment
Share on other sites

I didn't actually make the script. The script is of an old website I used to go to, which closed down abruptly. I'm trying to rehost it. I'm new to CGI hosting, so I don't know what to do.

The first thing I would do if I were you would be to get an editor that displays line numbers. I could give you a few recommendations, but I don't know what operating system you're using.

 

Then once you have line numbers enabled take a look at the errors and go to those line numbers and see if you can figure out what is wrong. Remember sometimes the error can actually be above the line number that the error is displayed on; the error line is just where the compiler/executor/whatever realized that there was something critically wrong with what it was trying to run.

 

Keep a backup original copy so you can go back and revert any changes you make and just dive in and start trying to fix things. If you make it worse revert to a working backup copy and start from there again. A lot of times if I don't know what I'm doing I will make backup copies of code all over the place like 7-2-11_before-I-changed-line288.rar, 7-2-11_right-after-changing-line288.rar, etc etc. Worst case scenario you make a lot of mistakes and learn how to code.

Link to comment
Share on other sites

I was able to figure out the problem, and my site showed up, but without the images going with it. I moved my images folder to the same folder where the cgi and perl files were, and edited the code to recognize that, but I'm getting a 500 error again. Here's my code again, updated and such.

 

http://www.mediafire.com/?ybg4s98s9n7j5kr

 

I figured uploading it to Mediafire would be easier.

Link to comment
Share on other sites

Guest Geoff

BTW, in the future, you can upload your code to pastebin.

 

Okay, I've fixed your script. Next time, don't edit your files via M1croshoft Winders, it causes problems. Cpanel has a handy file manager that you can use to edit your files without appending CRLF line endings.

Link to comment
Share on other sites

Thanks. It's showing up again. The logo and background color aren't showing up, though.

 

Also, I get an error every time I click on one of the links (the "How to/Rules" and whatnot). How do I fix that?

Link to comment
Share on other sites

Thanks. It's showing up again. The logo and background color aren't showing up, though.

 

Also, I get an error every time I click on one of the links (the "How to/Rules" and whatnot). How do I fix that?

 

You can't use this kind of path inside of html:

 

/home/mizuho/public_html/cgi-bin/images/imgtitle.gif

 

/home/mizuho/public_html/cgi-bin/talkbbs.cgi?mode=admin

 

Your image urls and page links should start with http:// like below:

 

http://mizuhobbs.heliohost.org/cgi-bin/tal....cgi?mode=admin

 

http://mizuhobbs.heliohost.org/cgi-bin/images/imgtitle.gif

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...