Succesfully installed mods don't show up, "open_basedir restriction" error

Started by Vandaahl, June 03, 2008, 03:03:04 PM

Previous topic - Next topic

Vandaahl

It's weird, but on my 1.1.5 install I can upload and install mods, and after installation it says they are succesfully installed. But when I click on Installed Mods none are listed, and I know for a fact that nothing got installed, because the new files are nowhere to be seen with FTP. I ch-modded the Packages folder to 777. I just noticed in my error log that when I browse the files of a mod the following error gets generated for each file in that mod:

2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/spoiler.gif) is not within the allowed path(s): (/home/deb4756/:/tmp:/usr/local/lib/php/)
Bestand: /usr/home/deb4756/domains/cinema-extreme.com/public_html/forum/Sources/Subs-Package.php
Line: 327

Line 327 refers to this:

// Not a directory and doesn't exist already...
if (substr($current['filename'], -1, 1) != '/' && !file_exists($destination . '/' . $current['filename']))
$write_this = true;


What could be the problem?

greyknight17

Ask your host to disable the open_basedir restriction that's in place there. It's prohibiting you from installing the mod.

Vandaahl

I asked them but they won't turn it off because they say it's a necessary security setting (I'm on shared hosting btw). They think it's caused by an incorrect SMF configuration setting, but I'm not sure yet where to look.

greyknight17

Look at your phpinfo.php file and see if you have any values for the following entries:

open_basedir
upload_tmp_dir


What is a phpinfo() file?

Vandaahl

I have a 'local' value for open_basedir (called "/home/deb4756/:/tmp:/usr/local/lib/php/"), but no 'master' value. Upload_tmp_dir has both (called "/tmp").

greyknight17

Ask your host if they can add your SMF directory to the allowed paths for you.


greyknight17

I see that this topic is marked as solved now. Did adding the SMF directory to the allowed paths resolve the issue?

Juan Carlos

I have the same problem and I cant not resolve it with the host.

2: createList() [<a href='function.createList'>function.createList</a>]: open_basedir restriction in effect. File(/Subs-Membergroups.php) is not within the allowed path(s): (/var/www/vhosts/cuatrocuatro.com/httpdocs/foro:/)

Can you tell me exactly what they need to change?
Juan Carlos

Advertisement: