Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca
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.
I am at the testing stage of OJS and did all the setup and configurations without a problem.
Afterwards I created a author account and started the submission process. When I wanted to upload a file to the OJS, this error came up at the top of the browser page:
Warning: chmod() has been disabled for security reasons in /home/fotonega/public_html/journal/classes/file/FileManager.inc.php on line 362
Warning: move_uploaded_file(/home/fotonega/public_html/journal/files/journals/1/articles/3/submission/original/3-8-1-SM.doc) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/fotonega/public_html/journal/classes/file/FileManager.inc.php on line 95
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php1s3Ber' to '/home/fotonega/public_html/journal/files/journals/1/articles/3/submission/original/3-8-1-SM.doc' in /home/fotonega/public_html/journal/classes/file/FileManager.inc.php on line 95
Warning: Cannot modify header information - headers already sent by (output started at /home/fotonega/public_html/journal/classes/file/FileManager.inc.php:362) in /home/fotonega/public_html/journal/classes/template/TemplateManager.inc.php on line 187
- Posts: 2
- Joined: Thu Nov 29, 2007 1:11 am
This is a server configuration problem.
Apparently PHP does not have permission to use the chmod comand to change file permissions.
Check first what user/group is running apache with ps -ef | grep apache.
Then, change the owner/group of OJS to that user.
Afterwards, settting permissions to 755 (775 at the most) should be enough.
If this doesn't solve the problem, you should contact the server administrator for support.
Some host providers remove basic functions out of lazyness...
- Posts: 945
- Joined: Wed Oct 15, 2003 6:15 am
- Location: Brasília/DF - Brasil
Return to OJS Technical Support
Who is online
Users browsing this forum: No registered users and 2 guests