Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: arcano on February 09, 2005, 09:43:34 AM
-
Some applications use the web user (www in e-smith case) to temporaly upload files on a subdirectory, in most distibutions with the default installation, the www user can have write access. on any ibay i try to set those writes to the www user, on the shell it's done, but back on the aplication it still's haven't write access, I don't find where the problem is, does any body knows what's happen?
thanks... really!
-
Did you check /var/log/httpd/error_log ? This file often reveals the cause of problems such as yours.
-
Any trace on /var/log/httpd/error_log. I really don't know, but i guess there is a file, it has to be, that deny the write access to subdirs via www user, i had tried with Atutor on its installation, with xoops using the uploader of the Cjay-Content module, and for what ever app that uses the www user to upload files, no matter if i change dir attributes to 777, i remain writeless... i have used 2 diferent machines with SME, and have the same result.
plus the instalation of SME 6.0.1
i had: - awstats & mrtg contrib
- clamav antivirus (Pagefault)
- durep contrib...
- DansGuardnan
I don´t think this has something to do with the issue...
does anybody has full working, for example Cjay, or anything else?
:-(
-
Also look in /var/log/messages?
Is it an httpd error, or a php error?
-
I guess is not an error, but i think is a kind of security issue an i haven't found where is the source.
Checking out the /var/log/messages i found that the import_lang.php coudn't wrote to the subdir... that is why...i wrote, no way to write through the www user!
Feb 8 16:43:30 neptune httpd: PHP Warning: OpenDir: No such file or directory (errno 2) in /home/e-smith/files/ibays/classroom/html/admin/import_lang.php on line 62
Feb 8 16:43:43 neptune httpd: PHP Warning: OpenDir: No such file or directory (errno 2) in /home/e-smith/files/ibays/classroom/html/admin/import_lang.php on line 62
Feb 8 16:46:19 neptune httpd: PHP Warning: Supplied argument is not a valid MySQL result resource in /home/e-smith/files/ibays/classroom/html/include/header.inc.php on line 194
Feb 8 16:46:19 neptune httpd: PHP Warning: Supplied argument is not a valid MySQL result resource in /home/e-smith/files/ibays/classroom/html/include/header.inc.php on line 216
For the header.ini.php there ar not such lines, then i guess a part of some of the includes, but which one?
... :idea:
-
$import_path = AT_CONTENT_DIR . 'import/';
$archive = new PclZip($_FILES['file']['tmp_name']);
if ($archive->extract( PCLZIP_OPT_PATH, $import_path) == 0) {
dir ("Error : ".$archive->errorInfo(true));
exit;
}
thats the content on line 62
when i install this, ihad to make the dirs by hand, with the necesary permits, but they are still unwritable through the web browser, ...
-
Does anybody has web applications runnig on the e-smith box? i still haven´t conf the write access on for the www user, i had change the umask for it, i checkout the php.ini for reviewing the upload issue, and change the subdir content rights, it remain the same, i checkout the message and httpd logs, no errors just the warning i posted before....
if any body has web applications running on the sme boxes, that needs to write to a content subdir, please can you split your wisdow bit little closer!
:-?