Problems with a shared install (without vhosts)

Having trouble installing serendipity?
Post Reply
Boris

Problems with a shared install (without vhosts)

Post by Boris »

Inspired by the Shared Installation Guide I tried to setup a shared installation without access to the apache.conf for vhost-configuration.

My testblog is currently located in ~/public_html/blog and the folder for the new blog should be ~/public_html/blog2.
First I copied deployment/* to the new directory and run sed on them to convert 's9y/' to '../blog/'.

Code: Select all

sed -i -e "s/'s9y\//'..\/blog\//" *
Then I created a serendipity_config_local.inc.php with the settings of fresh&new DB2.

The problem is now, that both directories show the some content from DB1.
How do I handle this issue?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problems with a shared install (without vhosts)

Post by garvinhicking »

You need to have three directories:

1. ~/public_html/blog
2. ~/public_html/blog1
3. ~/public_html/blog2

The 1. directory contains all the s9y files and NO serendipity_config_local.inc.php.

The directories 2+3 ONLY contain the deployment files plus each their own serendipity_config_local.inc.php files.

Then this should work :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Boris

Re: Problems with a shared install (without vhosts)

Post by Boris »

garvinhicking wrote:The 1. directory contains all the s9y files and NO serendipity_config_local.inc.php.

The directories 2+3 ONLY contain the deployment files plus each their own serendipity_config_local.inc.php files.

Then this should work :)
Thanks Garvin. I'll try this. :)
Tribal-Dolphin

Post by Tribal-Dolphin »

I'm very interestiong by this feature so i'll try to this but i've an error :(

/blogs/core/ => serendipity files
/blogs/tribal-dolphin/ => My blog.

When I access to /blogs/tribal-dolphin/ the installation page show me incorrect path : /blogs/core/ And when i proceed whith installation, all the files are created in /blogs/core/.

Have you an idea ?
Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What did you do? Which files did you copy to /blogs/tribal-dolphin/?

You only need to copy the files of the deployment/* directory, none other. And you need to properly set your PHP include_path setting.

So please describe detailed what you do, then I tell you which error you made. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Tribal-Dolphin

Post by Tribal-Dolphin »

in /blogs/core => the serendipity files from .tar.gz file
in /blogs/tribal-dolphin => the files in deployement/*

in /blogs/tribal-dolphin i've run the command sed -i -e "s/'s9y\//'..\/blog\//" *

in /blogs/tribal-dolphin i've make symlink like shared installation guide :
$ ln -s -d ~/blogs/core/templates ~/blogs/tribal-dolphin/templates
$ ln -s -d ~/blogs/core/htmlarea ~/blogs/tribal-dolphin/htmlarea

I've not modified my include_path value.

That's all.
Thanks for your help.
Tribal-Dolphin

Post by Tribal-Dolphin »

I've tried with this but don't work :
php_value include_path ".:/usr/share/pear:/var/www/web12/web/blogs/core/:/var/www/web12/web/blogs/core/bundled-libs/"

Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
in /blogs/tribal-dolphin i've run the command sed -i -e "s/'s9y\//'..\/blog\//" *
Why did you do that? This is not the way to go. You need not to do that.

Rename /blogs/core to /blogs/s9y. Undo your sed-change. Then put /blogs into your include_path.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Tribal-Dolphin
Posts: 3
Joined: Tue Dec 27, 2005 8:50 am

Post by Tribal-Dolphin »

Hello,
I've the same error with your modifications.
My infos :

/var/www/web12/web/ => My website
/var/www/web12/web/blogs/s9y/ => The serendipity files
/var/www/web12/web/blogs/tribal-dolphin/ => The deployement/* files

My httpd.conf for my website :

Code: Select all

<VirtualHost xx.xxx.xxx.x:80>
RewriteCond %{HTTP_HOST} ^([^.]+).td-blogs.be$ [NC]
RewriteCond %{HTTP_HOST} !^www.td-blogs.be$ [NC]
RewriteCond %{HTTP_HOST} !^s9y.td-blogs.be$ [NC]
RewriteRule ^(.*)$       /var/www/web12/web/blogs/%1$1 [L]
php_value include_path '.:/usr/share/pear:/var/www/web12/web/blogs/'
SuexecUserGroup web12_admin web12
ServerName www.td-blogs.be:80
ServerAdmin webmaster@td-blogs.be
DocumentRoot /var/www/web12/web
ServerAlias *.td-blogs.be www.td-blog.be td-blog.be td-blogs.be
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias  /cgi-bin/ /var/www/web12/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web12/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web12/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web12/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web12/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST}   ^www\.td-blog\.be [NC]
RewriteRule ^/(.*)         http://www.td-blogs.be/$1 [L,R]
RewriteCond %{HTTP_HOST}   ^td-blog\.be [NC]
RewriteRule ^/(.*)         http://www.td-blogs.be/$1 [L,R]
RewriteCond %{HTTP_HOST}   ^td-blogs\.be [NC]
RewriteRule ^/(.*)         http://www.td-blogs.be/$1 [L,R]
</VirtualHost>
You can see the result here : http://tribal-dolphin.td-blogs.be/ (this URL is for view the content of /var/www/web12/web/blogs/tribal-dolphin/ directory)

Thanks for your help.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

It seems that your PHP is creating some errors...

Look at http://tribal-dolphin.td-blogs.be/seren ... _admin.css -- this should show the CSS, not a blank page.

Turn on your PHP display_errors and see what errors are caused there...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Tribal-Dolphin
Posts: 3
Joined: Tue Dec 27, 2005 8:50 am

Post by Tribal-Dolphin »

It's allready activated.
You can see the phpinfo here : http://tribal-dolphin.td-blogs.be/phpinfo.php

Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, can you reverse-engineer your serendipity.css.php file to see why it's generating an empty file? It might be that your installation is missing a proper link to the templates/ directories and thus the style.css cannot be read?!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Tribal-Dolphin
Posts: 3
Joined: Tue Dec 27, 2005 8:50 am

Post by Tribal-Dolphin »

It's OK now.
the symlink was chowned by root. I've modified to my web-user and now it's OK.
But it's always the incorrect path :cry:
Post Reply