Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: thomasch on September 18, 2007, 05:59:24 AM

Title: Wordpress in /opt/wordpress + Gallery2 in /opt/gallery2 + WPG2 ?
Post by: thomasch on September 18, 2007, 05:59:24 AM
Hi
Anyone success installing Wordpress in /opt/wordpress + Gallery2 in /opt/gallery2 + WPG2 plugin?

I have Gallery2 Installed in /opt/gallery2 and Wordpress installed in /opt/wordpress
however when I install WPG2 (http://wpg2.galleryembedded.com/index.php?title=Main_Page (http://wpg2.galleryembedded.com/index.php?title=Main_Page))
I can activate the plugin but I can't validate the plugin.

Gallery2 URL http://192.168.1.249/gallery2/main.php

Gallery2 API located in G2 Path? Failed
Gallery2 init? Skipped Due to Previous Error
Gallery2 Version Compatible? Skipped Due to Previous Error
Wordpress Version Compatible? Skipped Due to Previous Error
Gallery2 Module: ImageBlock Active? Skipped Due to Previous Error
Gallery2 Module: ImageFrame Active? Skipped Due to Previous Error
Gallery2 Module: Rewrite Active? Skipped Due to Previous Error
Gallery2 URL Rewrite Rules Updated? Skipped Due to Previous Error
Using Simple Header? Success
Using Simple Footer? Success

Title: Re: Wordpress in /opt/wordpress + Gallery2 in /opt/gallery2 + WPG2 ?
Post by: cactus on September 18, 2007, 03:47:33 PM
Hi
Anyone success installing Wordpress in /opt/wordpress + Gallery2 in /opt/gallery2 + WPG2 plugin?

I have Gallery2 Installed in /opt/gallery2 and Wordpress installed in /opt/wordpress
however when I install WPG2 (http://wpg2.galleryembedded.com/index.php?title=Main_Page (http://wpg2.galleryembedded.com/index.php?title=Main_Page))
I can activate the plugin but I can't validate the plugin.

Gallery2 URL http://192.168.1.249/gallery2/main.php

Gallery2 API located in G2 Path? Failed
Gallery2 init? Skipped Due to Previous Error
Gallery2 Version Compatible? Skipped Due to Previous Error
Wordpress Version Compatible? Skipped Due to Previous Error
Gallery2 Module: ImageBlock Active? Skipped Due to Previous Error
Gallery2 Module: ImageFrame Active? Skipped Due to Previous Error
Gallery2 Module: Rewrite Active? Skipped Due to Previous Error
Gallery2 URL Rewrite Rules Updated? Skipped Due to Previous Error
Using Simple Header? Success
Using Simple Footer? Success
You are running in to a PHPBaseDir restriction see the wiki for instructions for more details. The posted solution there will not work in your case as the locations and the PHPBaseDir are not in the configuration database but in the templates. How to work is in the SME Server Developer's Guide also available per wiki.

You have to configure the PHPBaseDir setting that the gallery location allows execution from the wordpress location as the wordpress plugin tries to execute code in the /opt/gallery which is not allowed to, it should read something like this I guess:

/opt/gallery/:/opt/wordpress/

To get a clue please have a look at the httpd_error_log and httpd_access_log files in /var/log/httpd/, these files should hold error messages from the time you tried to verify your WPG2 plugin.
Title: Re: Wordpress in /opt/wordpress + Gallery2 in /opt/gallery2 + WPG2 ?
Post by: thomasch on September 20, 2007, 06:28:06 AM
Here what i did :

cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/92wordpress

scroll down and modify line below from :

$OUT .= "    php_admin_value open_basedir /opt/wordpress\n";

to :

$OUT .= "    php_admin_value open_basedir /opt/wordpress:/opt/gallery2\n";

expand-template etc/httpd/conf/httpd.conf

/etc/rc7.d/S86httpd-e-smith restart

now WPG2 validated successfully