|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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?
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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?
Last edited by BellaOnline; 11/06/2014 5:41 AM.
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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 .
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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.
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
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.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
I got my message today that you migrated to a new server. Still Windows?
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
Yes, this is now Windows 2012.
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
Well, I think the check is just if the webserver responds it should be able to read/write to the appropriate directory.
|
|
|
0 members (),
744
guests, and
147
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|