Tags:
create new tag
view all tags

Question

I'm running a development environment to test our twiki. Having many problems with install, but the most pertinent is I can't even get the Testenv script running! Each time I get a "Premature end of script headers" message.

I've tried various combinations of chmod, chown and chgrp but nothing seems to be working.

Thanks.

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 8
Web server: xampp installed apache 2.0
Perl version: solaris 5.005_03
Client OS: Windows 2000
Web Browser: IE and Firefox

-- JamesPollard - 21 Sep 2004

Answer

Could be caused by several things.

  • File permission: The file not being executable, e.g. chmod +x the file. I had even a case where the cgi scripts had to be 755, and got the "Premature end of script headers" error with a 775 permission
  • The #!/usr/bin/perl shibang line pointing to an incorrect location for the perl executable
  • The Perl include path containing an entry pointing to Nirvana. Check the setlib.cfg settings

Related topics: AttachFailurePrematureEndofScriptHeader, AttachNotworking, BrokenPipeAfterDakarInstallation, BulkRegisterFails, CONFIGURE, CannotRegisterMyself, CannotRunConfigure, CannotRunTheConfigure, CantDeleteTopicLookingInAllWebs, CantLocateSetLibCfg, CantRestartTWiki, CantRunConfigureScriptAnymore, CantRunScriptsAfterInstall, CgiSessionNotFound, CommentPluginError, ConfigureAborts, ConfigureCompletedOKButGet500onView, ConfigurePrematureEndOfScriptHeaders, ConfigureScriptIsForbidden, ConfiguredButCanNotView, DBCacheCreatingErrors, EnvironmentProblemUsingApache, ErrorAtDotHtaccessAtLib, ErrorDocumentDoesNotFindOopsTemplate, ErrorInstallingTwiki, FileAttachFailureInsecureDependency, FormQueryPluginsAutoCreateScriptBroken, GIFfilesNotDisplaying, GenPDFAddOnConfiguration, GetNOTSETInURLs, GettingServerError500RegisteringOrPW, HeadlinesPluginFailure, HowToConfigureForSiePerl, HowToDisplayImageAndDownLoadAttached, HtaccessHoldup, INCArrayPerlProblems, InstallationProblemTony, InternalServerError2, InternalServerError3, InternalServerErrorAtConfigurePage, LockedMeOutOfTWiki, MaketextUndefinedAtAccess, MakingAPortableCopyOfContent, ManageWebFailsPrematureEnd, NeedHelpWithTWikiConfiguration, PerlLibsMissingUnderCygwinApache, PerlScriptErrorAfterInstalling, PrematureEndOfScript, PrematureEndOfScriptHeaderCGISession, PrematureEndOfScriptHeaders, PrematureEndOfScriptHeadersAfterFirstInstall, PrematureEndOfScriptHeadersError, PrematureEndOfScriptHeadersOnNt, PrematureEndOfScriptPreview, PublishAddOnFailsNoArchiveZip, RCSUnderWindowsWontCheckIn, ResetPasswordServerError, RunBinViewGetInternelServerError, RunawayViewProcesses, SID-00062, SID-00151, SID-00332, SID-00341, SID-00394, SID-00492, SID-00538, SID-00672, SID-00831, SID-00838, SID-00870, SID-01033, SID-01122, SID-01279, SID-01326, SID-01629, SID-01636, SID-01685, SectionEditing, SectionalEditPluginProblem, ServerError500onWindowsXP, ServerErrorWhenViewing, SymLinkedViewAuthError, TWikiCannotLoadViewPM, TWikiRegistrationHtpasswdGeneratePasswdError500, TWikiUpdate401SkragsWorkingInstallation, TestEnvQuitsAfterUseTwikiPm, TwikiApacheConguration, TwikiInstallation, UnmatchedBracketInRegex, UnmatchedLeftBracketInSgeDotPm, UpLoadProblem, UpgradeOldVersion, UsingCommentCommandPreventsTopicSave, WorkWithUTF-8SomeProblem, WysiwygEditorHangsOnSave

-- PeterThoeny - 22 Sep 2004

Cheers, it turned out to be the shebang line. I've changed it in the testenv script to point to the xampp install of perl.

A follow up question is, do I have to do this for all the perl scripts? Or is there a config parameter I can set that will point them all to the right place? I already have a perl install on /usr/bin/perl so a symbolic link doesn't seem like a good idea.

-- JamesPollard - 21 Sep 2004

You need to do that for all Perls scripts. Alternatively, as you pointed out, create a sym link.

-- PeterThoeny - 23 Sep 2004

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2004-09-23 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.