Community Support for OpenDocMan (Deprecated)
Permission denied errors - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html)
+--- Thread: Permission denied errors (/thread-176.html)



Permission denied errors - eschram - 02-12-2010

I added this under a different discussion and it may have been the wrong place.

Whenever I try to add a department I get Permission Denied 403 errors from apache. It happens in other places as well. I am pretty sure that this is not an OpenDocMan error but rather an error in my php settings somewhere. Any help would be appreciated. I would really like to start using this program.

Ed Schram
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->


Re: Permission denied errors - Stephen - 02-12-2010

I would suggest you check our your web server error log and see what is the exact cause of that error. Let me know.


Re: Permission denied errors - eschram - 02-12-2010

Here is what I get if I try to access search

192.168.0.100 - - [12/Feb/2010:19:30:36 -0500] "GET /opendocman/search.php?keyword=&where=all&submit=Search&submit=Search HTTP/1.1" 403 276 "http://quagmire/opendocman/search.php" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"

and when adding a document, it adds correctly but I get this

192.168.0.100 - - [12/Feb/2010:19:30:05 -0500] "GET /opendocman/out.php?last_message=Document+successfully+added HTTP/1.1" 403 273 "http://quagmire/opendocman/add.php" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"

If I change the Document+suddessfully+added to Document it works fine.

It seems to be the passing of variables via the command line for department add I get:

192.168.0.100 - - [12/Feb/2010:19:38:15 -0500] "GET /opendocman/admin.php HTTP/1.1" 200 5679 "http://quagmire/opendocman/out.php" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"
192.168.0.100 - - [12/Feb/2010:19:38:15 -0500] "GET /opendocman/linkcontrol.css HTTP/1.1" 304 - "http://quagmire/opendocman/admin.php" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"
192.168.0.100 - - [12/Feb/2010:19:38:17 -0500] "GET /opendocman/department.php?aku=c3VibWl0PWFkZCZzdGF0ZT0y HTTP/1.1" 200 4541 "http://quagmire/opendocman/admin.php" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"
192.168.0.100 - - [12/Feb/2010:19:38:21 -0500] "POST /opendocman/commitchange.php HTTP/1.1" 403 282 "http://quagmire/opendocman/department.php?aku=c3VibWl0PWFkZCZzdGF0ZT0y" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"

I changed the php.ini file to register_long_arrays = On to see if that was the problem and restarted apache. No difference.
Ed


Re: Permission denied errors - eschram - 02-12-2010

Thi sis all I got from the php logfile

[12-Feb-2010 23:45:44] PHP Notice: Use of undefined constant last_message - assumed 'last_message' in /var/www/html/opendocman/out.php on line 45
[12-Feb-2010 23:45:54] PHP Notice: Use of undefined constant last_message - assumed 'last_message' in /var/www/html/opendocman/out.php on line 45
[12-Feb-2010 23:45:59] PHP Notice: Use of undefined constant last_message - assumed 'last_message' in /var/www/html/opendocman/out.php on line 45
[12-Feb-2010 23:46:05] PHP Notice: Use of undefined constant last_message - assumed 'last_message' in /var/www/html/opendocman/out.php on line 45
[12-Feb-2010 23:46:20] PHP Notice: Use of undefined constant last_message - assumed 'last_message' in /var/www/html/opendocman/out.php on line 45
[12-Feb-2010 23:47:00] PHP Notice: Use of undefined constant last_message - assumed 'last_message' in /var/www/html/opendocman/out.php on line 45

Ed


Re: Permission denied errors - Stephen - 02-13-2010

Well, the undefined constant message appears to be coming from some change you made to your version of out.php.

As for the other entries, those look like they are entries from your access_log, typical.


Re: Permission denied errors - eschram - 02-13-2010

I am using the latest version checked out from svn with no changes other than the config file. The last entry in the access log shows the 403 permission denied error on the submit.

Ed


Re: Permission denied errors - eschram - 02-14-2010

It appears that for some reason the system is blocking access in certain instances. I am not sure what is happening here. I have selinux disabled, changed ownership of all the files to apache, changed all file mods to 777 and the problem still exists. The 403 error is because for some reason apache cannot read the file, but there is nothing in the error log to say why. Here is the configuration for the directory, do I have something wrong/missing here?

<Directory /var/www/html/opendocman>
Options All Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

I am using firefox 3.5.7 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

I have Java and Java script enabled in firefox.

Ed


Re: Permission denied errors - eschram - 02-14-2010

I just installed a lamp virtual appliance and opendocman is working fine on that system. The problem is in some configuration problem in apache or php. If anyone has any ideas I would appreciate it, for now using the virtual appliance works.

Can't wait to actually start using this.

Ed