I recently needed a copy of OJS for testing but without using what is in production.
I duplicated the folder and the database and the system returns me error 500 !!! . Where am I going wrong?
Dear @Helder
Where would you like to duplicate the OJS, in remote server or in localhost.
What steps did you do? Can you describe in a bit detail?
Regards,
@anupent
Hi @Helder,
Check your PHP error log, and if your server has a separate one, your web server error log. It should contain details. The most likely cause is file permissions; see docs/README
in your OJS directory for a description of how these should work. There’s also a related FAQ entry in this forum.
Regards,
Alec Smecher
Public Knowledge Project Team
duplicate to another server , the same php 5.6
Atenciosamente,
Helder Guerreiro
Hi @Helder
When you duplicate the folder did you update in your duplicated directory the config.inc.php file directive “files_dir” to reflects your new folder?
Once I did the same, duplicate to upgrade safely but I forgot this little detail.
Best
Israel
[files]
; Complete path to directory to store uploaded files
; (This directory should not be directly web-accessible)
; Windows users should use forward slashes
files_dir = files (this path ok)
; Path to the directory to store public uploaded files
; (This directory should be web-accessible and the specified path
; should be relative to the base OJS directory)
; Windows users should use forward slashes
public_files_dir = public
Atenciosamente,
Helder Guerreiro
Confs seem ok, but the php error log doesn’t show any hint or error code whe you access the duplicated instance?
Hi @Helder,
Beware that it’s not safe to put your files_dir
within your web root without protecting it from direct access. See docs/README
for details.
Regards,
Alec Smecher
Public Knowledge Project Team
Ok, the problem was resolved.I upgade the php version.
tanks