Safe mode gid - upload problem [RESOLVED]

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 18
Joined: Thu Jan 17, 2008 7:45 am

Safe mode gid - upload problem [RESOLVED]

Postby vidar » Thu Jan 31, 2008 7:41 am

First - I have searched both this forum and that of my ISP and read lots of threads, but I'm still not sure how to solve this.

The problem is trivial enough - authors can not upload files, but are presented with this error:

Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid/gid is 183568/183568 is not allowed to access /pathto_upload/conferences owned by uid/gid 398/398 in /pathto_ocs/classes/file/ on line 234

Warning: move_uploaded_file(): Unable to access /pathto_upload/conferences/1/schedConfs/1/papers/4/submission/original/4-15-1-SM.txt in /pathto_ocs/classes/file/ on line 95

My ISP has safe_mode_gid: on, but the folders created when uploading a file is owned by httpd:httpd, and thereby not possible to chmod with my username.

Any ideas to what I could do?

Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm

Re: Safe mode gid - upload problem

Postby smiri » Fri Feb 01, 2008 5:15 pm

Hi vidar,

From the error message you're getting it's pretty obvious that it's a permissions problem. The way we have it setup on our server is the "files" folder is in the user's home and the "files" directory looks like this:

Code: Select all

drwxr-xr-x  3  abcd  abcd  4096 Oct 31 09:52 conferences
drwxr-xr-x  2  abcd  abcd  4096 Oct 29 09:50 site
drwxr-xr-x  2  abcd  abcd  4096 Dec 11 04:25 temp

We also have the apache running as "abcd" user. So the folders created in the /home/abcd/files/ are all created by the "abcd" user. Since it sounds like you don't have root access to the server, you would have to ask your ISP to make sure the files in your OCS directory are running as your user and not httpd.


Posts: 18
Joined: Thu Jan 17, 2008 7:45 am

Re: Safe mode gid - upload problem

Postby vidar » Wed Feb 06, 2008 2:18 am

Thank you for your reply. I am trying to make my ISP change ownership of the fils and folders.

Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest