3

I installed a local MediaWiki and gave it access to the following directories in php.ini:

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/mediawiki

Why do I still get the following message? It doesn't make sense to me:

<b>Warning</b>:  is_file(): open_basedir restriction in effect. File(/usr/share/webapps/mediawiki/images/lock_yBgMBwiR) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/mediawiki) in <b>/usr/share/webapps/mediawiki/includes/GlobalFunctions.php</b> on line <b>1196</b><br />

How can /usr/share/webapps/mediawiki/images/lock_yBgMBwiR not be within /usr/share/webapps/mediawiki?

I don't have further restrictions in httpd.conf (I've read in the official php documentation that file open_basedir statements can be too).

Konrad Höffner
  • 195
  • 1
  • 9

1 Answers1

4

Maybe /usr/share/webapps/mediawiki/images/lock_yBgMBwiR is symlink folder, check with ls -l.