Page 1 of 1
can some1 give an example of the shared instal subdirectory
Posted: Wed Mar 30, 2005 11:55 am
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
Re: can some1 give an example of the shared instal subdirect
Posted: Thu Mar 31, 2005 2:08 pm
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
Posted: Wed Apr 06, 2005 9:23 pm
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?
Posted: Thu Apr 07, 2005 11:46 am
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
Posted: Sat Apr 16, 2005 5:01 pm
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