OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



unabel to upload files

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

unabel to upload files

Postby helen57 » Tue Jan 26, 2010 8:22 pm

We are unable to upload files in the submission process. This is the error message

Warning: mkdir() [function.mkdir
]: SAFE MODE Restriction in effect. The script whose uid/gid is 800/800 is not allowed to access /var/www/ojssimplenetcomau/public_html/files/journals/1/articles owned by uid/gid 48/48 in /var/www/ojssimplenetcomau/public_html/classes/file/FileManager.inc.php on line 231

Warning: move_uploaded_file() [function.move-uploaded-file
]: SAFE MODE Restriction in effect. The script whose uid/gid is 800/800 is not allowed to access /var/www/ojssimplenetcomau/public_html/files/journals/1/articles owned by uid/gid 48/48 in /var/www/ojssimplenetcomau/public_html/classes/file/FileManager.inc.php on line 90

Warning: Cannot modify header information - headers already sent by (output started at /var/www/ojssimplenetcomau/public_html/classes/file/FileManager.inc.php:231) in /var/www/ojssimplenetcomau/public_html/classes/template/TemplateManager.inc.php on line 240

Warning: Cannot modify header information - headers already sent by (output started at /var/www/ojssimplenetcomau/public_html/classes/file/FileManager.inc.php:231) in /var/www/ojssimplenetcomau/public_html/classes/template/TemplateManager.inc.php on line 243



Any ideas?

thanks

Helen
helen57
 
Posts: 1
Joined: Tue Jan 26, 2010 8:18 pm

Re: unabel to upload files

Postby smcphill » Thu Jan 28, 2010 9:01 pm

Hi Helen,

As I mentioned in an email to you, OJS doens't like being PHP in safe mode so much, which is what the error is saying. You need to run OJS with PHP not being in safe mode.

A quick search of the forum for "safe mode" would have found this - I found specific mention on the wiki.

Also, this post possibly would have got a quicker response if posted in the OJS Technical Support subforum - which is linked to inside the big red box on the topic post screen.

Good luck!

Steven
smcphill
 
Posts: 7
Joined: Thu Sep 01, 2005 6:24 pm

Re: unabel to upload files

Postby jamief » Fri Jan 29, 2010 2:13 am

Hi Helen.

Check on your website (ftp) for something called cgi-bin (at root).

if you see various php-cgi (php5-cgi, php4.cgi) files, you might also have a php.ini file.
If you have that, download the php.ini file and open it in a text editor like Word pad (not Microsoft word)

Search for safe mode in the file, and change true to no, on to off, whatever it is. I haven't looked.
Upload the php.ini file and overwrite the existing copy.

If you do not have a php.ini file in your cgi-bin I recommend asking your hosting company to allow you individualised control over php by having one.
There are other really important php settings here that may be useful to you down the road, for example, upload file sizes, memory sizes, etc. that will prevent server side errors when your users start to interact with the forms in a ojs installation.
jamief
 
Posts: 140
Joined: Sun May 31, 2009 2:49 am


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests