When I try to configure the general settings of Gallery un Drupal I found this problem, how can i solve it?

Step 2: Gallery2 location settings - Manual Configuration
Enter the 'Gallery2 URL or URI' and 'Gallery2 filesystem path' and then click 'Test location settings'. This will check and configure the settings needed for embedding Gallery2 into Drupal.

Errors in your current Gallery2 location settings:

* Location of Gallery2: file ../gallery2/embed.php is restricted by PHP open_basedir [Error]

Comments

profix898’s picture

Try to google for open_basedir. In short it means that the specified folder in not accessible for php, because it is outside (or above) the php basedir. You can set the basedir for security purposes to prevent php from accessing "external" folders. But its possible that you simply referenced the wrong folder here. Can you please provide some details about your folder layout. Where is Drupal installed and where G2, etc ...

aphra’s picture

Hi,

I know it's a few months down the line from the original post but I'm having the same problem.

The path to my Drupal installation is /mysite.com/drupal and to gallery2, /mysite.com/drupal/gallery2.

I was initially getting the 'file does not exist' error but when I sorted that out the 'Location of Gallery2: file /gallery2/embed.php is restricted by PHP open_basedir' appeared, which suggests to me that it was found by the module but it wasn't able to get at it.

I can open the G2 embed.php file in my browser (that is, I get a blank page and not a 404 error); CHMODed it to 777 (just in case); and it's deep enough inside my file structure not to fall foul of open_basedir.

I've also checked, using PHPINFO, the safe_mode setting and it's 'off'. So I'm completely flummoxed.

Any further suggestions would be greatly appreciated.

bchinchilla’s picture

Status: Active » Closed (fixed)