David E. Meier wrote:
I have the File Manager Plugin v2.0 installed on my server (SM 1.4.3a, PHP4.3.4, Apache 2.48, RedHat 9).
First, try the attached version, as it has a lot of changes.
I upgraded to the version you attached with the same result. But this version has a much better look and feel. Congrats.
Uploading files to the base directory works. Creating directories does work as well, however, they are not displayed. The directory tree for the user base directory (/www/domain.com/data/user) looks as follows:
drwxrwxrwx 3 webusr wwwclient 4096 Jan 18 18:15 . drwxrwxrwx 3 webusr wwwclient 4096 Jan 18 16:55 .. -rw-r--r-- 1 wwwrun wwwrun 1541 Jan 18 18:03 img_mid9.jpg drwxr-xr-x 2 wwwrun wwwrun 4096 Jan 18 18:15 test
Directories are only displayed when setting the ownership to webusr:wwwclient. If I change the ownership on the parent directory to wwwrun:wwwrun I receive the safe mode error. So I thought I'd append the directory /www/domain.com/data/user to the variable safe_mode_include_dir reading now:
safe_mode_include_dir = "/usr/local/lib/php:/www/domain.com/data/user"
Still no luck after restarting Apache. What's wrong with my setup? Dave.
please clarify the differences between "webusr", "wwwclient" and "wwwrun"??? why so many apahce-related user/groups?
The reason for all those users and groups is related to our virtual hosting setup:
-) Apache runs under its own user/group wwwrun.
ok
-) The individual web users all run under their own group wwwclient
run what?
it might be a gotcha related to safe mode that cannot be overcome. please try deactivating safe mode temporarily just to see if that is even related to the problem or not.
When I deactivate safe mode the directories become visible and editable. What I think is strange that the safe_mode_include_dir variable has no effect at all. Reading the description for it in php.ini would seem to me the solution to my problem.
actually, given your clarification above, i would have guessed that the problem is that wwwrun needs +rw access to the base dir and everything inside of it. that is, your base dir might need to be owned by webuser:wwwclient, but for file manager to work right, Apache needs write access to the base..... oh, wait. egads, you've opened the basedir up to the world! you sure you want to do that? maybe an option would be to add apache to the wwwclient group instead.
i would also think safe_mode_include_dir might work; keep looking. might be related to ownership/permissions of the included dirs, who knows....
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: squirrelmail-users@lists.sourceforge.net List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users