Results 1 to 7 of 7

Thread: Premature end of script headers during install

  1. #1
    seansan is offline Member
    Join Date
    Oct 2006
    Posts
    6

    Default Premature end of script headers during install

    Hi there,

    I am new to sugarcrm and really want it to work. I have an error when I try to run the install.php.

    "Premature end of script headers" etc ... no more detailed message can be found in the server log. What have I done so far?

    First time : notting, just ran unzip sugarcrm.zip
    After that:I chmodded all php files to 755 using chmod -Rv 755 *.php

    Does anybody know what to do. I find it very strange that rights are not copied along when unzipping. What can I check or do, because it is probably a small switch / trick somewhere that I am not thinking of of, or do not know of.

    Kind regards, Seansan

  2. #2
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Premature end of script headers during install

    do you have the sugar directories owned by apache or webserver user. That user needs write permissions to all files for upgrades and installs if you want to lock down between install and upgrade the only directories that need to be writable is the cache directory and all subdirectories. Also if you want to use the studio at all you will need to leave all module directory writable. It is a lot easier just to leave all directories in sugar writable by the webserver user.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  3. #3
    seansan is offline Member
    Join Date
    Oct 2006
    Posts
    6

    Default Re: Premature end of script headers during install

    First of all ty for your reply.

    Is there no check on ownership during install? or what command should I use to correctly update specific files. I am new to this.

    ps. files are owned by "info" the virtual server owner

  4. #4
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Premature end of script headers during install

    the question is what user does the webserver run. typcially apache for Linux/Unix I am not sure under windows. if the apache user can not write to that directory or files you will have problems. using a chmod -R 777 on the SugarCRM will grant all privileges to all users on the server including apache. It is a quick fix but not as secure. Another way is to chown -R apache all files and subdirectory in the SugarCRM directory. with 755 permissions apache will then be able to modify the files.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  5. #5
    seansan is offline Member
    Join Date
    Oct 2006
    Posts
    6

    Default Re: Premature end of script headers during install

    I executed cdmod -R 777 but am still having the same issue, maybe it is something else?

  6. #6
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Premature end of script headers during install

    do you have access to your apache logs?
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  7. #7
    seansan is offline Member
    Join Date
    Oct 2006
    Posts
    6

    Default Re: Premature end of script headers during install

    I think so. The error log? the httpd log?

    Where can I find it?

    I can access /var/log (already monitoring error log and access log)

    I also tried adding loglevel statement, but this is not allowed. Is there a command I can add to the PHP install script to see where it halts / errors?
    Last edited by seansan; 2006-10-21 at 08:56 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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