My journal had recently a malware attack and I found out that the files folder is in the public_html directory. Is there a way I can move it?
Create a Backup: Before making any changes, it’s crucial to create a backup of your entire website
Move the “files” Directory: Use FTP or your hosting control panel’s file manager to move the entire “files” directory from public_html to the new directory
Update Configuration: You will likely need to update the configuration of your OJS to point to the new location of the “files” directory.
Open the config file: config.inc.php
Find “files_dir” line
files_dir = new directory must here
Test: After making these changes, thoroughly test your journal to ensure that everything is functioning as expected.
Hi all,
Just a note: the files_dir
should never point to something inside the web root (e.g. public_html
), unless you’ve protected it from direct access somehow! That’s the most common misconfiguration that leads to attacks.
Regards,
Alec Smecher
Public Knowledge Project Team
This topic was automatically closed after 10 days. New replies are no longer allowed.