problem installing FUDForum under eGroupWare [message #21104] |
Sat, 13 November 2004 20:20 |
vkhamenya
Messages: 4 Registered: October 2004 Location: Hanover, Germany
Karma: 0
|
Junior Member |
|
|
Hi all, hi Ilia,
I've installed eGroupWare 1.0.0.006 from all-in-one .tar.gz distribution.
Some application installed OK after initial eGW setup, but some not.
FUDForum was unlucky "not working application"
Well, when I click FUDForum icon I get:
------------------
The 'files/' (/outside/webserver/docroot) directory exists, however webserver has no write permissions to that directory.
------------------
which is quite strange, because there is no /outside/webserver/docroot in my Linux box.
The PHP code snippet causing this message seems to be as following:
<?php
/***************************************************************************
* copyright : (C) 2001-2003 Advanced Internet Designs Inc.
* email : forum(at)prohost(dot)org
* $Id: index.php,v 1.14 2004/07/08 14:32:32 iliaa Exp $
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
***************************************************************************/
/* $Id: index.php,v 1.14 2004/07/08 14:32:32 iliaa Exp $ */
ignore_user_abort(true);
set_magic_quotes_runtime(0);
/* security check to prevent execution */
if (basename(dirname(__FILE__)) == 'setup') {
exit;
}
$GLOBALS['phpgw_info']['flags'] = array(
'currentapp' => 'fudforum',
'noheader' => true,
'nonavbar' => true,
'noappheader' => true,
'noappfooter' => true,
'nofooter' => true
);
require_once('./../../header.inc.php');
/* sanity checks, if any of these are true, notify the user & abort the process */
if (empty($GLOBALS['phpgw_info']['server']['files_dir'])) {
exit("Please make sure that that 'files/' directory exists & is writeable.");
} else if (!is_writeable($GLOBALS['phpgw_info']['server']['files_dir'])) {
exit("The 'files/' ({$GLOBALS['phpgw_info']['server']['files_dir']}) directory exists,
however webserver has no write permissions to that directory.");
}
Any hints how to get through?
Thanks
|
|
|
|
|
|
|
|
Re: problem installing FUDForum under eGroupWare [message #21873 is a reply to message #21869] |
Wed, 22 December 2004 14:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You don't just create a files/ folder somewhere, you need to make sure that eGW knows exactly where that folder can be found. This is done by specifying the path to this directory in egroupware settings.
FUDforum Core Developer
|
|
|
|
|
|
|
Re: problem installing FUDForum under eGroupWare [message #23638 is a reply to message #23630] |
Thu, 24 March 2005 19:04 |
wolf
Messages: 3 Registered: March 2005
Karma: 0
|
Junior Member |
|
|
Hi/Re again.
paula, take a look below:
this is /inside/the/webserver/docroot:
sample1: /var/www/html/whatever - this is the webserver docroot
sample2: /home/xxxx/public_html/whatever - this is the webserver docroot
(depends on what server are u using: Windows, Linux etc.);
now the /outside/webserver/docroot/:
sample1: /var/www/
sample2: /home/xxxx/
As u can see, the last 2 directories are 'missing' on the second group of samples.
Take a look on this short explanation:
cp -a /var/www/html/egroupware/fudforum/crc32 (this is the 'files' created when u made your eGW installation) /path/to/files
or cp -a /home/xxxx/public_html/egroupware/fudforum/crc32
cd /path/to/files
chown -R nobody .
-OR-
chmod -R 777 .
http://yourhost.com/setup/ > Setup/Config > Edit Current Configuration
"Enter the full path for users and group files" => /path/to/crc32
FULL EXPLANATION
----------------
[REQUIRED] Copy egroupware/fudforum/crc32 to where you want to store the files.
THIS SHOULD BE SOMEWHERE NOT INSIDE THE WEBROOT AND NOT ACCESSIBLE TO THE WEB.
Having the files within the webroot is a huge security risk as well as a privacy concern.
The exception to this would be if you WANT the users' and groups' files to be accessible
from the web, such as when setting up public or semi-public web page/document hosting. In
this case, the files directory can be left where it is.
(Make sure you copy the directory, don't just make a new one. The necessary directories
are crc32/ and crc32/home/)
[REQUIRED] In http://yourhost.com/setup, login to Setup/Config, then Edit Current Configuration. Enter the FULL path for the files directory you created earlier in the second box from the top.
[REQUIRED] Change permissions for files directory and all it's subdirectories to be writable by Apache
This is the files directory you created earlier and specified in setup (Edit Current Configuration). Note that 'nobody' below could also be 'apache' on your system. Check the 'User' setting in your httpd.conf.
cd /path/to/crc32
chown -R nobody .
-OR-
chmod -R 777 .
If you can open an FTP session over SSH, you'll see the just copyied /./../crc32 outside your webserver docroot and will be something like this:
/var/www/crc32
or
/home/xxxx/crc32
Hope this helps somehow.
Regards,
wolf
|
|
|
Re: problem installing FUDForum under eGroupWare [message #23685 is a reply to message #23638] |
Sat, 26 March 2005 04:04 |
paula
Messages: 2 Registered: March 2005
Karma: 0
|
Junior Member |
|
|
Hello wolf,
thank you very, very much for your detailed answer. It showed me my first idea was the right one: FUDForum needs the files-directory ABOVE the Document Root (respectively in my case in the webserver root) - but I was unsure about it.
The formulation in the read me file ("NOT INSIDE THE WEBROOT") is not very precise. My interpretation of "Webroot" was "Webserver-Root" and this was exactly the opposite of what the read me file want to say.
Some hours later I switched my own brain on again and tried to install the FUDforum with a folder ABOVE the Document Root and now it works fine.
Thank you for your help.
Regards
paula
|
|
|