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
can some1 give an example of the shared instal subdirectory
-
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
Use this:
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
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/
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
Code: Select all
$ chown -R garvin.www /home/www/www.mybloghoster.org/htdocs/subblog1/* i didnt know if the 'garvin.www' should be altered in any way?
just curious
verb