External Editor
Yamb
Web iPhoto Access
 29 members
Users online
( nobody )
147705 visitors
8 visitors online
|
Topic #122 |
More os x server
by Preston - visitor
07/08/2006 @ 23:41 |
 |
OK, I too want to install on OS X Server.
I read through the included script in the install. Basically, my server was already setup for PHP, and .htaccess files.
These were set in:
/etc/httpd/httpd.conf
and
/etc/httpd/site/000_any_80_yourdomain.com.conf
files respectfully
So I went through changed all the permissions (see note about changeperm below)
But there is some problem with PHP and redirects
When you first connect (either as admin or guest) it does not bring you to the view screen, but leaves you at the login screen. (there is one entry of main.php?guest)
Clicking reload you get the "library loading" status, but when it reaches %100 it just flickers and acts like its reloading the page (though the server only shows one entry of main.php in the log. If you click refresh AGAIN, another entry of main.php shows in the log, and the "display" page now shows normally and WIPHA works just fine.
The same browser/client works just fine with WIPHA served from OSX-client, but breaks with OSX-server (so its not just in the client). The problem exists with Firefox and Safari.
So its something with PHP/Apache and redirects on OSX-server, because on my OSX-client install, when the "Guest" link is clicked, I see three entries in the log:
main.php?guest
main.php
main.php
So the browser is reloading the page properly.
You would sure think this is a client issue in the browser, not the server.
Also, for OSX-server installations, it would be nice to disable the changeperm utility and rely on Tiger's ACL's to ensure that the user 'www' has permission on the iPhoto libraries. (no umask headache).
Any idea of settings to change in the server? My phpinfo is:
http://www.sanroque.net/temp.php
-Preston
|
 |
Answer #1 |
by Globs - ( 237 messages )
09/08/2006 @ 01:10 |
 |
Dixit...
When you first connect (either as admin or guest) it does not bring you to the view screen, but leaves you at the login screen. (there is one entry of main.php?guest)
Clicking reload you get the "library loading" status, but when it reaches %100 it just flickers and acts like its reloading the page (though the server only shows one entry of main.php in the log. If you click refresh AGAIN, another entry of main.php shows in the log, and the "display" page now shows normally and WIPHA works just fine.
This refresh problem is related to http cache informations (and proxy?) and should be fixed in 2.2. I don't know which difference there could be between client and server osx, but anyway, the problem had been reported from an osx server behind a proxy, which works fine now with the fix.
Dixit...
Also, for OSX-server installations, it would be nice to disable the changeperm utility and rely on Tiger's ACL's to ensure that the user 'www' has permission on the iPhoto libraries. (no umask headache).
Well, this could be an idea, but I didn't feel like forcing activating ACL if the user didn't want to.
By the way:
- Isn't ACL also available on osx client ?
- Is ACL able to allow www to access files which will be created in the future by iPhoto with rw------ permissions ?
|
 |

Answer #2 |
by Preston - visitor
09/08/2006 @ 01:30 |
 |
I'm not using a proxy - I'd be glad to test 2.2 for you on OS X Server
Yes ACL is on client - but since it requires root to enable and has no GUI, I don't think most users of WIPHA on the client want to mess with ACLs. But perhaps WIPHA could check a setting in the .conf file like your DEMO flag, and if set, skip the warning for changeperm.
ACLs can be set to a folder so that any new file copied or created (in any nested folder) inherits the ACLs for that folder.
Also I'm wondering if there is a best way to batch add a access a bunch of libraries for a user without going into each library on the admin page.
If I have time, I might look at how to hook in LDAP PHP code from phpbb into your app.
Thanks for the great work.
-Preston
|
 |

Answer #3 |
by Globs - ( 238 messages )
09/08/2006 @ 22:59 |
 |
That sounds interesting. I'll try to have a look on it when I can get some free time.
After all, I guess that enabling ACL won't hurt the computer if the user has never heard about it. I'll just have to notice him. He just won't use it anywhere else.
(I hope that the standard rights management keeps working where no ACL rights has been set).
I don't understand what you mean about the phpbb LDAP code. Could you explpain a little bit ?
|
 |

Answer #4 |
by Preston - visitor
09/08/2006 @ 23:21 |
 |
If ACLs and UNIX permissions both exist, the ACLs take priority
phpBB is a PHP app for bulletin boards that has a add on to allow the forum to contact a directory server (LDAP) to check username and passwords. If you are a place that has a directory already set up, this means that you don't have to create all these users in the forum again.
-Preston
|
 |

|
|