My shared WordPress setup is:
I have placed the full version of wordpress in:
/var/www/sharedWordPress/2.8/, this folder contains a complete wordpress install. The wp-config.php has been modified and now only contains the following:
<?php include($_SERVER['DOCUMENT_ROOT'] . '/config.php'); ?>
To setup a WP site i do the following:
-Create a dir and create symlinks to the shared WP with this cmd:
ln -s /var/www/sharedWordPress/2.8/* .
-Then I removed the symlink and upload a wp-content folder (I know I could script this but havent come around to do it yet.)
-Finaly i add the following to the config.php:
define( 'WP_CONTENT_URL', '/wp-content' ); define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' );
This worked like a charm until i desided to try and install a plugin and the first was Nextgen Gallery.
Nextgen Gallery tries to find the gallery folder in /var/www/sharedWordPress/2.8/wp-content/gallery/ whereas it should be looking in /var/www/randomsite/wp-content/gallery/.
This results in the following error when i try to create a gallery:
Directory wp-content/gallery/ didn’t exist. Please create first the main gallery folder !
So wise men and women can you help me out here?
- The topic ‘Nextgen Gallery A shared install, gives problems’ is closed to new replies.