Jimmy Legs Posted February 1, 2003 Posted February 1, 2003 hey folks-- new kid on the block here. i'm in the process of moving my site over here. it's mostly a blog at this point, driven by a guestbook script that's been modified a little. it's working fine, but i added a 'comments' feature to each post, and i can't get it to work. i keep getting 'premature end of script headers' error and i'm trying to pin down the problem. what i wanna know, among other things, is where is sendmail located? i don't think it's the problem but i wanna rule it out first. is there a list somewhere that details the locations of things like that (perl, etc.)? i could figure this stuff out if i had shell access, but that's another story of course if it turns out to be something other than sendmail, does anybody have any tips? i gotta admit, i'm working on the edge of my ability as it is, so if there' s not a simple fix, i'll probably throw in the towel. i plan to rebuild the entire site in PHP soon, so this isn't really that big a deal. my site is here: Jimmy Legs Site (look for the 'comments []' link under each post. everything else has been smooth sailing! Quote
KevinW Posted February 1, 2003 Posted February 1, 2003 Recent posts by other users have indicated that the 'premature end of script' has to do with chmod settings. In particular, if your BLOG script tells you to set your BLOG directory to CHMOD 777, you might try 755 instead. -kw Quote
TCH-Rick Posted February 1, 2003 Posted February 1, 2003 I get a Page Not Found error when I click on the comments link. I looked at the source code but don't know enough about how it is set up to help. If you want blog software that is stable and includes comments built in I would recommend Movable Type. It's free for non-commercial use and works great. It should be pretty simple to adapt the template you are using to MT and I've seen other MT sites with the BlogAmp add-in. I use MT 2.51 for several blogs and w.blogger to post when I don't feel like going into the Movable Type entry system. I can go from thinking of an idea to having it posted in a couple of minutes. (Not always a good thing. ) Quote
rayners Posted February 2, 2003 Posted February 2, 2003 I will second the Movable Type recommendation. Though I imagine I'm probably a little biased. Quote
Jimmy Legs Posted February 2, 2003 Author Posted February 2, 2003 thanks for the replies. it's definitely not a permissions problem. i really just wanna know if there's a list of program locations somewhere. i know where perl is located from an earlier discussion. if i can be sure of sendmail's location, i can rule it out as the source of my problem. of course, once i do that i'm all out of ideas as for MT, if i ever break down i will def get MT, it's obviously got everything anyone could think of for blogging. but i'm still obsessed with doing all the stuff myself. maybe i should petition for shell access. Quote
TCH-Don Posted February 2, 2003 Posted February 2, 2003 On your Cpanel you should see Sendmail Path = /usr/sbin/sendmail at the bottom left Quote
Jimmy Legs Posted February 2, 2003 Author Posted February 2, 2003 doh! thanks. it was there all along! so at least i know that's not the problem. and while figuring this stuff out i discovered the problem: i left out -w. #!/usr/bin/perl -w adding that switch made it work! i don't totally understand why that made it run, but i guess i won't look a gift horse in the mouth at this point. anybody know why that helped? thanks again for the replies. so for the time being it looks like i can stick to my homemade blog Quote
KevinW Posted February 2, 2003 Posted February 2, 2003 I'm surprised to, as the -w option is used to tell Perl to issue compile-time and run-time warnings. Here are some reference links: http://www.codebits.com/p5be/ch17.cfm http://www.pic.ucla.edu/piclab/lang/perl/cmdlnops/ -kw Quote
Jimmy Legs Posted February 3, 2003 Author Posted February 3, 2003 i was looking through google's usenet archive and found a couple of people saying that the -w switch may help with compatibility issues. i know my code is ancient, so newer versions of Perl may have trouble with it. Quote
KevinW Posted February 3, 2003 Posted February 3, 2003 Interesting. Thanks for the followup. -kw Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.