Company News, Opinion, Industry Resources & More
After spending way too much time getting the ExpressionEngine Multiple Site Manager working correctly on Media Temple’s (dv) 4.0 dedicated virtual hosting several months back, I had to revisit it once again in order to add another domain.
It had been so long since setting it up originally, that I had forgotten what I did to get it working in the first place. With a little trial and error and looking back through some old notes I found, I was able to successfully add the new domain.
So I figured there may be others out there that could use some tips in getting things up and running. Hopefully these tips save you some time and energy.
1. Follow the directions for setting up the MSM on the ExpressionEngine website.
2. Once that is done, you will need to shut off open_basedir and php safe_mode.
3. Log in via SSH to your server as the root user. With Media Temple, there is a setting in your hosting control panel that you must set in order to have root access.
4. Once you have root access, you need to switch to the conf directory of your primary domain:
cd /var/www/vhosts/yourprimarydomain.com/conf/
5. Next, create & edit the vhost.conf file in that directory:
vi vhost.conf
6. In the editor, press i on your keyboard & type in the following:
php_admin_value open_basedir none
php_admin_value safe_mode off
7. When you’re done, press esc and then at the prompt (:) enter wq and then press return.
8. You will now need to configure the server to read the new vhost.conf file:
/usr/local/psa/admin/sbin/httpdmng—reconfigure-domain yourprimarydomain.com
9. Then restart the server:
/etc/init.d/httpd restart
Your primary domain should now be working & accessible.
Now you need to repeat these steps for all of your other domains, but the path to their vhost.conf files are going to be slightly different.
For each subdomain, use the following:
Switch to the subdomain’s conf directory:
cd /var/www/vhosts/subdomain.com/conf/
Create & edit the vhost.conf file in that directory:
vi vhost.conf
Add the following in vhost.conf:
php_admin_value open_basedir none
php_admin_value safe_mode off
The configure and restart the server per steps 8 & 9 above.
That should do the trick! Happy MSM-ing!
There are no comments for this entry. Be adventurous and post something!
© Copyright 2000 The Design Core. All rights reserved. A division of Core Collective, Inc. | A Proud Member of the ExpressionEngine Pro Network.