Don
Faire un don pour aider au developpement de WiPhA

Recherche




Préférences

 Nombre de membres 29 membres


Utilisateurs en ligne

( personne )
Visites

 147703 visiteurs

 11 visiteurs en ligne

forum.gifForum - Web iPhoto Access - Sujet n°122


Sujet n°122 More os x server
    par Preston - visiteur
le 07/08/2006 @ 23:41
Anonyme
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
Ecrire à Preston Poster une réponse




Réponse n°1 par Globs - rank ( 237 messages )
le 09/08/2006 @ 01:10
Globs

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 ?

Site web Globs Ecrire à Globs Poster une réponse

Haut

Réponse n°2 par Preston - visiteur
le 09/08/2006 @ 01:30
Anonyme
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

Ecrire à Preston Poster une réponse

Haut

Réponse n°3 par Globs - rank ( 238 messages )
le 09/08/2006 @ 22:59
Globs
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 ?
Site web Globs Ecrire à Globs Poster une réponse

Haut

Réponse n°4 par Preston - visiteur
le 09/08/2006 @ 23:21
Anonyme
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

Ecrire à Preston Poster une réponse

Haut

^ Haut ^

Site non déclaré à la CNIL dans le cadre de la dispense n°6
Vous disposez d'un droit d'accès, de modification, de rectification et de suppression des données qui vous concernent via votre profil.
GuppY - http://www.freeguppy.org/    Site créé avec GuppY v4.5.14 © 2004-2005 - Licence Libre CeCILL   GuppY - http://www.freeguppy.org/

Document généré en 0.22 seconde