Open Journal System

https://westminstersciencesociety.com

I installed OJS from Softaculous. Everything is working fine except I’m getting this message at the bottom of the website and I don’t know how to remove it.

There are no readable files in this directory tree. Are safe mode or open_basedir active?

It looks like it may be a case of the software (OJS) trying and failing to access files outside of your site’s document root (htdocs), and the server won’t let it access files above that directory. Please take a look at this thread about OJS from someone who had the same error. (“public_html” is equivalent to “htdocs”).

4 Likes

image
Please guide me which directories to move from where to where step by step in order to fix this. What I got from the thread you mentioned is that moving either the westminster or ojsdata to htdocs would fix this.

The “ojsdata” is the folder that’s not accessible for your website.

You’ll need to migrate that to your website’s directory. That’s probably westminstersciencesociety.com/htdocs/, but you should check the Domains page in the client area to know for sure.

3 Likes

I migrated the “ojsdata” directory to westminstersciencesociety.com/htdocs/ but the issue is still present at the website. Also the location you mentioned is in fact
the website’s directory.

https://westminstersciencesociety.com/phpinfo.php

Just to be clear: migrating the data is not just moving the folder, but also updating the configuration of your website to use the new location. Could you please confirm you also updated the configuration?

2 Likes

No I didn’t and I don’t know how to do that I just cut it and pasted it. Can you please guide me how to do it.

1 Like

I’m not sure, because I’m not an OJS expert.

A quick check on your website shows a file config.inc.php. In that file is a line that currently says this:

files_dir = /home/vol8_2/infinityfree.com/if0_37314345/ojsdata

This should be changed to the location of your ojsdata directory, which is probably this:

files_dir = /home/vol8_2/infinityfree.com/if0_37314345/westminstersciencesociety.com/htdocs/ojsdata

Also I recommend to do what was shared in the topic that @EdwardHamHam linked to, which is to protect the folder from direct access using .htaccess rules.

To do that, you can create a file with the name .htaccess, and the contents simply being Require all denied.

3 Likes

Thanks, the issue has been resolved but on the recommendation that you gave: there is already such a file .htaccess with the following contents

php_value display_errors Off

php_value date.timezone Asia/Karachi

Which I suppose are the settings that I set from from the PHP configurations setting from the account dashboard.

When I add the line Require all denied to it, the website stops working.

Yes, because that’s excatly what you did just now.

What we are telling you is that you create an .htaccess file in your ojsdata folder and put that line. Not just grab whatever .htaccess you come across and add that line.

3 Likes

I see I forgot an important part: you should create this .htaccess file in the ojsdata folder.

If you add this line to the .htaccess file that’s directly in the htdocs folder, you’ll block access to your entire website, not just the data folder.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.