UBBCentral
Posted By: BellaOnline Forum Hanging on New Server - 11/06/2014 7:33 AM
I have an odd problem which I'm guessing might be related to file permissions.

I own multiple UBB licenses. I recently had to move all my websites over to a brand new hosting facility with Windows Server 2012. I have two virtual servers. One server is working perfectly fine. UBB on there runs quick and easy.

The main BellaOnline forum is on a separate server here -

http://forums.bellaonline.com/

I have the MySQL slow query log turns on and nothing meaningful is showing up. But when I try to post it goes for the full 2 minutes I allow it and then times out. It can't be MySQL because it would show up in the slow query log. I have to guess it's file permissions. And indeed when I run the permission checker I get a variety of errors. But I checked and IUSR does have the rights it needs.

Is it not IUSR? That's what the documentation seems to say?

Lisa
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/06/2014 7:38 AM
Hmmm actually I did the permission check on the other server and it's showing failures in the same places. Could it be the permission check routine doesn't handle Windows Server 2012 well? Is it looking for a different username or something?
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/06/2014 8:08 AM
The failure is on this line -

function ubb_error_handler( $code, $error, $file, $line, $context = array() ) {

but I don't think that's actually the error of course.

The systems are writing the session files. But they aren't making any changes to the RSS files - I imagine that's where the error is.
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/06/2014 8:28 AM
While we're at it, everything in templates/compile is dated from 2012. And there are over 12,000 files in there. Could that be right? Or is that another permissions issue?
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/06/2014 9:30 AM
Just to expand, after two minutes I get this:

PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:\aWeb\bellaforums\libs\ubbthreads.inc.php on line 888

but there's nothing showing up in my UBB error log nor in a PHP error log. Which seems odd to me. And there's no entry in the MySQL slow query log for this. Other things do occasionally write to the slow query log so it's working.

The post does get made. The sidebar does get updated. But the RSS feed doesn't get updated. I'm trying to figure out how to step through the code to figure out where it's jamming. It's been a long while since I've had to be in the internals of the code like this.
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/06/2014 11:42 AM
ARRRRRRRRGGGGGGGGGHHHHHHHHHHHHH

The SMTP entry had somehow gotten set to max connections of zero. And for some reason that SMTP service being unavailable caused the forums to continually hang!!

That code needs to be fixed smile.
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/06/2014 11:48 AM
Note that while my forums are running again, I still need to know what to correctly set the file permissions to so my admin area shows everything is correct. Is it the IUSR account or something else?

I'm on Windows Server 2012.
Posted By: Ruben Re: Forum Hanging on New Server - 11/06/2014 11:53 PM
I wish we had another active user like you that uses a Windows server.
I went to Linux years ago. So I am no help.
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/07/2014 1:45 AM
I suppose if I go digging through the code on that test page it might tell me what it's using to test. Maybe it's coded with an old ISUR_XXXXXX format instead of the new IUSR format.

Lisa
Posted By: Ruben Re: Forum Hanging on New Server - 11/10/2014 8:27 PM
I got my message today that you migrated to a new server.
Still Windows?
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/11/2014 11:39 AM
Yes, this is now Windows 2012.
Posted By: BellaOnline Re: Forum Hanging on New Server - 11/26/2014 3:01 AM
An update - the username used in Windows Server 2012 is "IUSR". So I'm just going line by line in the permissions check PHP and making sure each directory mentioned has permissions for ISUR as listed in the PHP. It'd be nice if this was documented a bit better - instead of just saying OK or FAIL that it listed the permissions looked for.
Posted By: Gizmo Re: Forum Hanging on New Server - 11/26/2014 5:39 AM
Well, I think the check is just if the webserver responds it should be able to read/write to the appropriate directory.
© 2019 UBB.threads PHP Forum Software Community