Page 1 of 1
Multiple blogs, but not on my own server?
Posted: Sat May 22, 2004 12:55 am
by lilham
From the wiki doc, I can see that serendipity supports a shared installation. However it seems to me that you need access to the apache configuration. (Or am I wrong?)
I don't have subdomains, and I have only ftp access to my webserver. Basically, I just want two weblogs for two different users. We trust each other so it's ok if there is no access control between the two blogs. Is this possible without having two copies of serendipity? I can use MT, but I hate the rebuild "feature".
Re: Multiple blogs, but not on my own server?
Posted: Sat May 22, 2004 12:03 pm
by garvinhicking
lilham wrote:From the wiki doc, I can see that serendipity supports a shared installation. However it seems to me that you need access to the apache configuration. (Or am I wrong?)
I don't have subdomains, and I have only ftp access to my webserver. Basically, I just want two weblogs for two different users. We trust each other so it's ok if there is no access control between the two blogs. Is this possible without having two copies of serendipity? I can use MT, but I hate the rebuild "feature".
You can try to do so if you can manage to set the include_dir directive of PHP to point to the shared installdir. Maybe it works per .htaccess in your installation:
php_value include_dir ".:other_dirs:/home/serendipity/shared".
Set that for both subdomains which should access the shared installation.
The apache virtualhost documentation is just used to easily promote those variables and to make use of security issues (open_basedir et al). But it should work without. Though I haven't tried it.
Regards,
Garvin.
Re: Multiple blogs, but not on my own server?
Posted: Sat May 22, 2004 12:09 pm
by garvinhicking
lilham wrote:From the wiki doc, I can see that serendipity supports a shared installation. However it seems to me that you need access to the apache configuration. (Or am I wrong?)
I don't have subdomains, and I have only ftp access to my webserver. Basically, I just want two weblogs for two different users. We trust each other so it's ok if there is no access control between the two blogs. Is this possible without having two copies of serendipity? I can use MT, but I hate the rebuild "feature".
You can try to do so if you can manage to set the include_dir directive of PHP to point to the shared installdir. Maybe it works per .htaccess in your installation:
php_value include_dir ".:other_dirs:/home/serendipity/shared".
Set that for both subdomains which should access the shared installation.
The apache virtualhost documentation is just used to easily promote those variables and to make use of security issues (open_basedir et al). But it should work without. Though I haven't tried it.
Regards,
Garvin.
Posted: Sat May 29, 2004 4:04 am
by lilham
I've looked into this a little further. The .htaccess doesn't work, and my guess is that the apache installation doesn't have AllowOverride All.
However, it seems that I can set the include path on a per file bases using PHP's set_include_path()
Code: Select all
<?
set_include_path(get_include_path() . ":" . $s9y_shared_dir);
?>
Is there a simple way to insert this on
every page?
Posted: Sat May 29, 2004 12:44 pm
by garvinhicking
Lilham, if you can't set it in .htaccess the only idea I have is to set a 'global_prepend_file' with this instructions.
You may try to insert the line in serendipity_config.inc.php and see if that works - there's already a similar line inserted.
Regards,
Garvin.