• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Premature end of script headers

I

irvan

Guest
i install SB on CENTOS Enterprise 4.6 i686 on virtuozzo - WHM X v3.1.0.
my apache running on DSO Mod.

when i access my SB. got this error on domlogs

[Tue Jun 3 09:04:54 2008] [error] [client 64.22.115.50] Premature end of script headers: /opt/php52/cgi-bin/php5
[Tue Jun 3 09:04:54 2008] [error] [client 64.22.115.50] getpwuid: invalid userid -1
[Tue Jun 3 09:04:54 2008] [error] exec of /opt/php52/cgi-bin/php5 failed
[Tue Jun 3 09:04:54 2008] [error] [client 64.22.115.50] Premature end of script headers: /opt/php52/cgi-bin/php5

i try access check.php still got Internal Server Error. and fine when access blank.html.

what wrong on my configuration file?

thanks in advance.
 
Me too

Also on Centos 5 _64bit (not virtuozzo) - all hotfixes installed:

sitebuilder_error.log

[Tue Jun 03 16:36:54 2008] [error] [client 81.81.123.12] Premature end of script headers: php5, referer: http://sitebuilder.host.mydomain.com/sites/c6/c68a2435f6f4ff5bddd11f3c50871cbf/__preview/page0.php

Before the upgrade everything worked fine!

check.php:

OK : supported version of PHP found (5.1.X or newer - 5.2.1)
OK : extension sitebuilder3 in state on found
OK : extension pdo in state on found
OK : extension pdo_mysql in state on found
OK : extension sqlite in state on found
OK : extension dom in state on found
OK : extension libxml in state on found
OK : extension xml in state on found
OK : extension xsl in state on found
OK : extension spl in state on found
OK : extension pcre in state on found
OK : extension session in state on found
OK : extension simplexml in state on found
OK : extension ftp in state on found
OK : extension openssl in state on found
OK : extension mbstring in state on found
OK : extension soap in state on found
OK : extension gd in state on found
OK : extension ctype in state on found
OK : extension zlib in state on found
OK : extension iconv in state on found
OK : extension curl in state on found
OK : extension posix in state on found
OK : extension mysql in state on found
OK : supported SQLite version 2.x found
OK : SQLite UTF-8 encoding found
OK : GD library PNG support found
OK : GD library GIF support found
OK : GD library JPG support found
OK : GD library WBMP support found
OK : supported GD library version 2.0.1 (or newer) found
OK : setting magic_quotes_gpc in state off found
OK : setting magic_quotes_runtime in state off found
OK : setting open_basedir in state off found
OK : setting safe_mode in state off found
OK : setting zend.ze1_compatibility_mode in state off found
OK : setting mbstring.internal_encoding in state UTF-8 found
OK : config file was successfully parsed
OK : connection to MySQL database was established
OK : database and code versions are the same


Regards,

Bart
 
Solution found

Hi,


Solution (for me):
Just download fresh Ioncube loaders from their website.
Unpack / CD into ioncube directory
copy ioncube_loader_lin_5.2.so to /opt/php52/lib/php/modules
chown root:root /opt/php52/lib/php/modules/ioncube_loader_lin_5.2.so
chmod 755 /opt/php52/lib/php/modules/ioncube_loader_lin_5.2.so

In /opt/php52/etc/php.d/ioncube_loader_lin_5.2.ini CHANGE TO:
zend_extension=/opt/php52/lib/php/modules/ioncube_loader_lin_5.2.so

...or just place a symlink to the new with the old filename.
Restart Apache

Now it works for me, no more errors.
Tip: Like this, you could also update your ioncube loader for regular php instance (/usr/lib64/php/modules or /usr/lib/php/modules)

Regards,
Bart
 
still doesn't work. i have replace twice.
[Tue Jun 3 10:38:40 2008] [error] [client 64.22.115.50] Premature end of script headers: /opt/php52/cgi-bin/php5
[Tue Jun 3 10:38:40 2008] [error] [client 64.22.115.50] getpwuid: invalid userid -1
[Tue Jun 3 10:38:40 2008] [error] exec of /opt/php52/cgi-bin/php5 failed
 
Hi,

Have you already tried force installing of Sitebuilder ?

cd /root/swsoft/SiteBuilder/SiteBuilder_4.2.0/dist-rpm-CentOS-5-x86_64/sitebuilder (or similiar)

rpm -Uvh *.rpm --force

You could also do that for the modules

cd /root/swsoft/SiteBuilder/SiteBuilder_4.2.0/dist-rpm-CentOS-5-x86_64/modules

rpm -Uvh *.rpm --force

Also in /usr/local/sitebuilder/config I changed to this:

[database]
;; adapter = pdoMysql
adapter = pdo_Mysql

because I saw somewhere in an error log that the name pdoMysql is the old name, new name must be pdo_Mysql.

Just give it a try, but first do a backup of all files (tar the complete SB dir and copy the tarball to elsewhere)
 
Ok. some problem gone after 41 hours watching the computer.

i had add
User nobody
Group nobody
on zz011_sitebuilder.conf.

error: Premature end of script headers, is gone.

but shown this :

File: /usr/local/sitebuilder/include/Zend/Zend/Db/Adapter/Abstract.php; Line: 156
Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sitebuilder3.config_param' doesn't exist; Code: 42S0

i try to re install, but always not success installing the database.
even i change with .my.cnf.

how to instaling Sql dump manually?
 
i re run

root@vps [/usr/local/src/sitebuilder/ins]# rpm -Uhv updates/*.rpm --force
Preparing... ########################################### [100%]
1:libxslt-shared ########################################### [ 33%]
2:php5sb ########################################### [ 67%]
3:php5-ioncube-php52 ########################################### [100%]
root@vps [/usr/local/src/sitebuilder/ins]# rpm -Uhv sitebuilder/*.rpm --force
Preparing... ########################################### [100%]
1:sitebuilder-selinux ########################################### [ 33%]
Installing SELinux policy
Logs are in /usr/local/sitebuilder/tmp/selinux.log.080605.0606
2:sitebuilder-core ########################################### [ 67%]
3:sitebuilder ########################################### [100%]

Sitebuilder has been installed successfully!
Use sb_config command to configure Sitebuilder.
'sb_config --help' displays help information.
Cannot connect to mysql server. SiteBuilder configuration will exit now.
Make sure mysql server is installed and running.
If root password is not empty put it in /root/.my.cnf
After finishing the installation run sb_config manually.

still cannot connect to mysql server
 
Ok. thanks everyone. now my sitebuilder working. the only one problem is i don't know what i'v done, because i don't remember my step, just try and error.

lastime i instal using YUM, rename hostname, rename sitebuilder_db password, edit some default.pm restart apache couple of time. then sundenly his runing perfect.
afterlogin installing Hotfix-20080512 (patch) .

i'm gonna buy this sitebuilder...
how much time left i trial this system before i must buy?

thanks in advance.
 
now regnow.com refund my payment by paypal. where should i contact paralles CS? last time i sent mail to sales, not recieve replay untilnow.

thanks in advance.
 
got error on publishing the site:

php=ok unique=d5e838c2e01579706962e8922a467cd9 ioncube=ok os= phpVersion=4.4.7 mbstring=ok zlib=ok session=ok dom=ok domxml_xslt=ok sqlite=fail gd_png=ok gd_gif=ok gd_jpg=ok gd_wbmp=ok gd=2.0.28 safe_mode=ok mail=ok curl=ok serverApi=Apache Handler folder_permissions_data=fail

The site cannot be published to the specified location.
An error has occurred during publishing via FTP. Please contact the server administrator.
 
ok. work great.
The site has been successfully published.
PHP SQLite extension does not support UTF-8 encoding on the publishing server. Text information on the site may be displayed incorrectly.

it's ok. my published page run fine.

btw. i publish on sitebuilder installed. how about when my client publish his site to another server?
 
Back
Top