can some1 give an example of the shared instal subdirectory

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

can some1 give an example of the shared instal subdirectory

Post by verbatim »

code and how it should be written.

i know something in the code would change when one uses subdirectories instead of vhosts, but what exactly?

any help given would be greatly appreciated

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

Re: can some1 give an example of the shared instal subdirect

Post by garvinhicking »

Use this:

Code: Select all

$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/deployment/* /home/www/www.mybloghoster.org/htdocs/subblog1/

/* Either COPY: */
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/templates /home/www/www.mybloghoster.org/htdocs/subblog1/
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/htmlarea /home/www/www.mybloghoster.org/htdocs/subblog1/

/* Or LINK: */
$ ln -s -d /home/www/www.mybloghoster.org/htdocs/s9y_origin/templates /home/www/www.mybloghoster.org/htdocs/subblog1/templates
$ ln -s -d /home/www/www.mybloghoster.org/htdocs/s9y_origin/htmlarea /home/www/www.mybloghoster.org/htdocs/subblog1/htmlarea

/* Adjust permissions */
$ chown -R garvin.www /home/www/www.mybloghoster.org/htdocs/subblog1/*
$ chmod ug+rwx /home/www/www.mybloghoster.org/htdocs/subblog1/
$ chmod ug+rwx /home/www/www.mybloghoster.org/htdocs/subblog1/uploads/

/* See above if you only want to link the subdirectories */
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/deployment/* /home/www/www.mybloghoster.org/htdocs/subblog2/
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/templates /home/www/www.mybloghoster.org/htdocs/subblog2/
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/htmlarea /home/www/www.mybloghoster.org/htdocs/subblog2/
$ chown -R j.www /home/www/www.mybloghoster.org/htdocs/subblog2/*
$ chmod ug+rwx /home/www/www.mybloghoster.org/htdocs/subblog2/
$ chmod ug+rwx /home/www/www.mybloghoster.org/htdocs/subblog2/uploads/

/* See above if you only want to link the subdirectories */
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/deployment/* /home/www/www.mybloghoster.org/htdocs/subblog3/
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/templates /home/www/www.mybloghoster.org/htdocs/subblog3/
$ cp -r /home/www/www.mybloghoster.org/htdocs/s9y_origin/htmlarea /home/www/www.mybloghoster.org/htdocs/subblog3/
$ chown -R tom.www /home/www/www.mybloghoster.org/htdocs/subblog3/*
$ chmod ug+rwx /home/www/www.mybloghoster.org/htdocs/subblog3/
$ chmod ug+rwx /home/www/www.mybloghoster.org/htdocs/subblog3/uploads/
I've changed the virtualhosts to point to subdirectories /subblog1, 2 and 3. The core directory for the central s9y installation is /s9y_origin.

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/
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

Post by verbatim »

using this technique, would one have to put the document root, php_value include_path
& php_admin value in the http.conf file?

If so how would that look since their are no virtual hosts?

And can i put that in a .htaccess file since httpd.conf access is restricted by my isp?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You need to put it in a .htaccess file since you don'T have virtual hosts now. That's the only way.

If your provider does not allow to put those directives into .htaccess, then you're screwed. But I mentioned that before and you said you had access to the values. :-)

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/
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

Post by verbatim »

Code: Select all

$ chown -R garvin.www /home/www/www.mybloghoster.org/htdocs/subblog1/* 
taking into account the fact that it is now a subdirectory and not a vhost, should the above line be written any differently?

i didnt know if the 'garvin.www' should be altered in any way?

just curious

verb
Post Reply