Welcome Guest | Login

anyone have tried using mephisto for multiple blogs?

hi, i am new to server stuff but are these directions here pretty much a stright forward process?
http://mephisto.stikipad.com/help/show/HostingMultipleSites

thanks.

2007-03-24 10:11 PM

Hi there,

You can follow the the directions given in the link. But you will not have the privilege to edit the apache config file, instead you can add a parked domain from your cPanel control panel.

2007-03-24 11:49 PM

hi..if i am making a sub domain to my main domain, i guess i just create the sub domain via my control panel?

2007-03-27 05:53 PM

btw...do i skip out on the apache and lighttpd section and just cut and paste the htaccess code into my public htaccess of my main public directory of my blog?

2007-03-27 05:58 PM

Hi - I believe that is correct.  To make a subdomain you create it via cPanel and it will place the DocumentRoot at ~/public_html/some_subdomain_folder -- you then give it an .htaccess like any other rails app.

2007-03-27 11:29 PM

hi all, thanks for the help, unfortunately im still sort of running into small troubles...i created a subdomain so now i have a folder titled 'kitchen' in my main public_html folder. i went into my mephisto folder that is titled mephistok (dont ask) and started the console and created the second site by typing s = Site.create(:host => "kitchen.mydomain.com", :title => "My Blog"). next i went into /kitchen and created the .htaccess file with the following

RewriteEngine On
# Don't redirect /admin*. Send it directly to rails.
RewriteCond %{REQUEST_URI} ^/admin.*
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

# Basic content redirection
RewriteRule ^$ /cache/%{HTTP_HOST}/index.html [QSA,L]
RewriteCond %{REQUEST_URI} !.*/mephistok/.*
RewriteRule ^([^.]+)$ /cache/%{HTTP_HOST}/$1.html [QSA,L]

# asset redirection
RewriteCond %{REQUEST_FILENAME} /assets/.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(assets)(.*)$ /assets/%{HTTP_HOST}/$2 [QSA,L]

# other redirection (imgs, js, css, ...)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !.*/mephistok/.*
RewriteCond %{REQUEST_URI} !.*html
RewriteCond %{REQUEST_URI} !^/cache
RewriteRule ^(.*)$ /cache/%{HTTP_HOST}/$1 [QSA,L]

# Everything else goes to rails...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]



good news is that im getting the
"Application error Rails application failed to start properly"


there is no need for a symlink someplace? or how does mephisto know that kitchen.myblog.com belongs to my mephistok directory and not a regular subdomain>

thanks for any help!

2007-03-28 07:54 PM

Hi there - the way to run multiple sites with mephisto is not to add subdomains but to park subdomains/domains over the domain that is running mephisto so it will read correctly in the browser.   You can park domains in cPanel as well.   Let me know if you need further help with this.

2007-03-29 02:26 AM

hi william, thanks for the offer...when i tried setting up the parked domain, i get this:

Parked Domain Additions

Error from park wrapper: Invalid domain kitchen.

when i put kitchen.mydomain.com in the textbox. i tried parking the subdomain before and after  creating a subdomain just to try.

thanks

2007-03-29 06:09 PM

Ok - if cPanel isn't helping you out then support can manually park those domains in your vhost for you. Feel free to you contact then and refer to this post.

2007-03-30 01:36 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!