UBB.Dev
Posted By: Wendy Anderson php fails after local transfer - 08/05/2005 5:24 AM
Our isp moved UBB (6.7.2) to another machine without notice. The relative paths changed in the process.

I have gotten UBB going again but the php accelerator quit working. It, therefore, has to be disabled in order to use the UBB. Even the php execution test wouldn't work until I moved it out of it's previous directory. The test reports that all is OK.

The pntf folder is empty in the cache directory, btw. I have rebuilt forum meta data and everything else that can be rebuilt.

If I rename the non-cgi directory in an effort to use php again, all the search engines will lose the pages we have listed.

Any ideas to get the PHP accelerator going? Unfortunately, my server error logs are not presently available from our ISP. Much thanks in advance.
Posted By: AllenAyres Re: php fails after local transfer - 08/05/2005 7:28 PM
Sorry, going from memory, but isn't there another .php file in the non-cgi directory that holds the paths for ultimatebb.php? Something like blah.inc.php?

I could be confusing threads and classic tho tipsy If not, I'll check it out tonight when I get home smile
Posted By: Ron M Re: php fails after local transfer - 08/05/2005 8:35 PM
vars_config.inc.php is the file, Allen.
Posted By: AllenAyres Re: php fails after local transfer - 08/05/2005 9:25 PM
grazi, it's not a well-known file unless you move sites smile
Posted By: Ron M Re: php fails after local transfer - 08/05/2005 10:39 PM
IIRC, submitting the Configuration in your cp.cgi rebuilds that file...
Posted By: Wendy Anderson Re: php fails after local transfer - 08/05/2005 10:59 PM
The paths look OK but seem a little too generic. The old paths, prior to the move, had much more specific info.

$MembersPath = "/var/www/cgi-bin/Members";
$CGIPath = "/var/www/cgi-bin/ubbcgi_hc";
$VariablesPath = "/var/www/cgi-bin/ubbcgi_hc";
$NonCGIPath = "/var/www/html/ubb_hc";

I tinkered with the permissions to no avail. I even deleted this file and had it recreated.

Wonder why the test script must be moved before it works.

sigh...
Posted By: Wendy Anderson Re: php fails after local transfer - 08/06/2005 6:12 AM
From the error log:

[Fri Aug 05 20:45:51 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:46:06 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:47:31 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:48:10 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:48:50 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:50:12 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:50:16 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:50:19 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:50:21 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:50:52 2005] [error] [client 64.242.88.10] Premature end of script headers: php-script
[Fri Aug 05 20:51:37 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
Posted By: Burak Re: php fails after local transfer - 08/06/2005 2:44 PM
what's the content of this file that generates "Premature end of script headers: php-script"?
Posted By: Wendy Anderson Re: php fails after local transfer - 08/06/2005 3:42 PM
Wish I knew, the lines are from the server error log. I take it that there's something missing and that each line is independent of the others.

The third entry here below seems to be unrelated to UBB, yet has the same feed-back:

[Fri Aug 05 20:51:45 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:51:47 2005] [error] [client 207.46.98.72] Premature end of script headers: php-script
[Fri Aug 05 20:54:20 2005] [error] [client 211.202.147.16] File does not exist: /home/virtual/site142/fst/var/www/html/_vti_bin
[Fri Aug 05 20:54:20 2005] [error] [client 211.202.147.16] Premature end of script headers: php-script, referer: http://www.google.co.kr/search?hl=ko&q=kids+bible+drama&btnG=Google+%EA%B2%80%EC%83%89&lr=
Posted By: Wendy Anderson Re: php fails after local transfer - 08/06/2005 5:30 PM
UBB.classic Accelerator Test Results

(Works only after being moved from non-cgi directory).

Your PHP version is 4.3.11: OK
Your PHP version has zlib: Yes
Your PHP version has the md5() function: Yes
UBB.classic Accelerator should have no issues under this version of PHP. zlib compression is installed and will be used.

Other php stuff than UBB works fine.
Posted By: Wendy Anderson Re: php fails after local transfer - 08/07/2005 4:29 PM
Hi all,

My prob is a more suitable topic for the ubbcentral list, I suppose. I had searched the archives of both boards and found nothing to help though several had had similar issues.

If you want to follow it there go here:

http://www.ubbcentral.com/cgi-bin/ultimatebb.cgi/topic/10/3108.html?

Thanks to everyone who weighed in!
© UBB.Developers