Our ISP disabled that safemode option temporarily and then enable shell_exec() , so i could upload that file. They told me its not a permanent option to disable that safemode option. After some time , when i try to upload a file some error occurs.
Warning: mkdir(/home/ejtropag/public_html/files/journals/4/articles/7): Permission denied in /home/ejtropag/public_html/classes/file/FileManager.inc.php on line 234
Warning: move_uploaded_file(/home/ejtropag/public_html/files/journals/4/articles/7/submission/original/7-14-1-SM.pdf): failed to open stream: No such file or directory in /home/ejtropag/public_html/classes/file/FileManager.inc.php on line 95
Warning: move_uploaded_file(): Unable to move '/tmp/phpC2moNa' to '/home/ejtropag/public_html/files/journals/4/articles/7/submission/original/7-14-1-SM.pdf' in /home/ejtropag/public_html/classes/file/FileManager.inc.php on line 95
Warning: Cannot modify header information - headers already sent by (output started at /home/ejtropag/public_html/classes/file/FileManager.inc.php:234) in /home/ejtropag/public_html/classes/template/TemplateManager.inc.php on line 187
Looking Forward your reply
Thanks and Regards
asmecher wrote:Hi Abhiram,
All OJS 2.x releases need to be able to create and manage directories; with Safe Mode's UID restriction, this isn't possible. OJS is able to create directories, but as they are created with the web server's UID, it is not then able to access them. PHP's "safe mode" feature in this situation is badly broken and you'll need to work with your ISP to work around it. If they can provide details on a method for creating directories with the correct UID, I'd be happy to suggest suitable changes for OJS to make use of it.
Open Journal Systems Team