Tag Archives: mediatemple

Time to bite the bullet

21 Oct

I currently have 3 vpses. One on Mediatemple and two at linode. Thing is I need at least 3 servers at linode to properly setup the environment for my scaling experiment / future gs setup….

So as of tonight I’m biting the bullet and now own 4 linodes. If all goes well I’ll toss 2-3 more linodes into the mix for geo targeted content delivery. And yes I’ll try and document everything. Also worth noting I’m trying out ubuntu again, this time ubuntu hardy – server only. We’ll see how this works out.

in case anyone is wondering here’s a brief overview of the setup (simple version)

server 1+2:
apache +php (you can config apache to run almost as fast as lighttpd, so why not)
varnish
memcache
nginx

server 3: db – private network access only

server 4: everything thats on mt for now

lates, sid

Linode Rocks!

15 Oct

I haven’t had much time to post, or do anything fun in the past few months, but I’m currently working on a nginx, php, apache, varnish, memcachedb, mysql setup distributed between two servers. Why does this matter? Because I decided to upgrade my linode so I could slice up my resources into a nice little mini scalable network. Only problem is thats not how linodes work…

Linodes support team (Jim) had me upgraded 10 minutes after my upgrade request, then had me downgraded even quicker.

Yeah thats pretty good support. Better still is their control panel. I have yet to use their forums, and I’ve spoken to support once once before today.

If your looking for a good vps with intel processors, private network support, an awesome dns manager, and top support use these guys.

I still have my mediatemple [ http://mediatemple.net ] server, but for less than I’m paying I now have two servers with better stats and no bloat with linode [ http://linode.com ].

Check em out : http://linode.com

Slicehost

10 Jun

I’m been an MediaTemple fan boy for awhile, but I’ve been looking for a new host for the past few months. Today I may have found them: slicehost.

Their vps servers are called slices, and that what you get. Each slice is a base install of your os of choice – nothing else. You setup the services / apps you need, nothing more, nothing less. Honestly what got me was their community. Not only are staff always somewhere to reach them, but the users are seriously active and helpful. Oh yeah and their tuts rock!

So yeah whenever I get the chance all my unused domains, friends domains, etc will be moving to my the new slice…. Mt is still good, but i’d rather have a bit more control, and pay less than half the price for it

peer guardian blocks mediatemple, and other servers

23 Sep

appearent media temple has a few anti p2p clients using their servers. my machine suddenly was unable to access any of my servers via ftp or ssh. only this time it wasn’t a vista dns issue.

Why? http://peerguardian.sourceforge.net/lists/p2p.php

mediatemple is listed as antip2p. to get around this make an allow list with your servers ip. this also applys with other servers. theres an indian server i use sometimes thats also in a blocked range. crystal has some blocked ranges as well.

if you want to create your list manually here’s an example

label:ipstart-ipend

label is a name you’ll remember for the iprange. ipstart is the starting ip of your range. ipend is the end of the range. if you only have 1 ip use it for both ipstart and ipend. save the file and open it as an allow list in peer guardian.

yailmtp – yet another i love media temple post

9 Sep

last night i wasn’t able to access my server via ssh on plesk, but i could access all of my / clients other dv servers. I just put in a ticket like 20 minutes ago, and they’ve already responded, on top of which they told me about something they noticed on the server. Nothing big, just a little hey this might help the server run a lil bit smoother for you type thing. Thanx to Sean O’Brien.

In the end it was a vista issue, and I closed the ticket with the fix in case any other users encounter it. Tell me thats not good support, about two weeks ago i had to contact support 3days in a row because there was a server that kept crashing. they we’re always there, helped pin point the issue, and we we’re fine since. other than a plesk maintence process that kept forgetting to terminate, which they actually fixed before I mentioned it!

Anyways as always nothing but love for (mt)

wtf? the zombie upgrader

31 Jul

sometime last it would appear that i sleep admin’d. weird. either that or mediatemple got their upgrade requests missed up? the sites been down all day (and so damn close to hitting the numbers) because either me (in my sleep) or media temple upgraded it to php5. weird – theres n sign of anything astray or malicious so i’m guessing it was one of us (i’ve been a zombie the past few days).

tying a custom sytem into plesk

29 Jul

ok well after stayng up for most of this weekend i’m still gonna end up having to use what i already had yesterday. but maybe my time wasted can help someone out there.

1. plesk’s cmd line subdomain creator does not tie into dns. so after slaving to have everything work perfectly with plesk – this is just another hill to conquer.

2. with the default mysql / plesk setup you have to use grant to add a user

3. there are there tables in the psa database that contain the info needed to display a subdomain in a users subdomain panel.

heres the code that finally worked for me

function processOnServer($clientName){
global $baseDir;
//make our password using the user name and adding some md5 salt to the tail
//each password must be unique, as it's how we'll find the ids later
$pass=md5($clientName);
$passLen=13-strlen($clientName);
$passEnd=substr($pass,0,$passLen);
$password=$clientName.$passEnd;
//setup the client dir location
$clientDir=$baseDir.$clientName;

$dbConn = mysql_connect('db_server', 'user', 'pass');
if (!$dbConn) {
    die('Could not connect: ' . mysql_error());
}

$dbName=$clientName."_trac";
//create db
$sql = "CREATE DATABASE $dbName";
mysql_query($sql, $dbConn);

//select mysql db
mysql_select_db("mysql",$dbConn);
//add client user
$sql="GRANT ALL ON $dbName.* TO '$clientName' IDENTIFIED BY '$password'";
mysql_query($sql, $dbConn);
//select plesk db
/*plesk configuration - i'm leaving this till another day
mysql_select_db("psa",$dbConn);
//add account
$sql="INSERT INTO `accounts` (`id`, `type`, `password`) VALUES (NULL, 'plain', '$password')";
mysql_query($sql, $dbConn);
///find the new users id
$sql="SELECT id,password FROM accounts WHERE password = '$password' ORDER BY id DESC";
$findAccountId=mysql_query($sql, $dbConn);
list($newId) = mysql_fetch_row($findAccountId);

//add user to plesk for subdomain
$sql="INSERT INTO `sys_users` (`id`, `login`, `account_id`, `home`, `shell`, `quota`) VALUES (NULL, '$clientName', $newId, '$clientDir', '/bin/false', 0)";
mysql_query($sql, $dbConn);
//find the new new id
$sql="SELECT id,account_id FROM sys_users WHERE account_id=$newId ORDER BY id DESC";
$findAccountId2=mysql_query($sql, $dbConn);
list($newerId) = mysql_fetch_row($findAccountId2);

//add subdomain to plesk
$sql="INSERT INTO `subdomains` (`id`, `dom_id`, `name`, `displayName`, `sys_user_type`, `sys_user_id`, `ssi`, `php`, `cgi`, `perl`, `python`, `fastcgi`, `miva`, `coldfusion`, `asp`, `asp_dot_net`, `ssl`, `same_ssl`) VALUES (NULL, 1, '$clientName', '$clientName', 'native', $newerId, 'false', 'true', 'false', 'false', 'false', 'false', 'false', 'false', 'false', 'false', 'true', 'false')";
mysql_query($sql, $dbConn) or die('Could not connect: ' . mysql_error());
*/
//make config file
$fileName = md5($clientName);
makeApacheFiles($clientName,$fileName.".conf");
makeTracFiles($clientName,$fileName.".ini",$password);
makeAuthFiles($clientName,$fileName.".authz");

//finish the svn and trac setup
passthru("shell_script $clientName $password $fileName");

}

the codes choppy (i’ve been up for over 30 hours – so i’m sure it looks worse to use :) )

the system i’ve built uses a custom frontend app to create, manage subdomains, and do automated installs of svn repos / trac, etc.

if you look over that code you’ll see there’s three psa tables that need fixing to allow your client to also view your subdomains in plesk.

also the ftp fix mentioned on there site won’t work on mediatemple. when i find one i’ll post it.

in addtional to all this. the psa database is only a place holder for the frontend, and in no way reflects the actually server (unless you do everything from plesk)

if you add a db or a dns record you’ll have to also update the psa db.

don’t know if i’m still making sense, off to bed – sid

tip: mediatemple path to plesk command line

28 Jul

if your like me and keep having to run a find for the path to the plesk command line apps. Heres the path : /usr/local/psa/admin/sbin/

tip : mediatemple ffmpeg-php install

24 Jul

here’s a quick tip for anyone on mediatemple (dv) trying to setup ffmpeg-php.

your php.ini file is at /etc/php.ini.

also do not enter the whole extension path, just the extension file

hopefully i just saved someone 10-20 minutes

mediatemple: deploy production quality Rails on dv

22 Jun

found a good tutorial on deploying production quality Rails on dv

If you’re looking to deploy Rails in a production-quality way on a server, there are a ton of tutorials on how to do that. None did exactly what I wanted though, so I’m adding another to the mix. We’re using MediaTemple’s (dv) 3.0 server. Design goals:

* I wanted to use Mongrel instead of FastCGI.
* Because this server comes with Apache pre-installed, and it’s not 2.2 (which supports mod_proxy_balancer), I decided to use the Pen load balancer. (Coda Hale sold me on this)
* I needed to support RMagick
* I wanted everything to be as simple as possible.

If you’re a MediaTemple user, you’ll notice they have instructions for this on the 2.0 edition of their dedicated virtual server, but not 3.0. Consider this an upgrade/enhancement to those instructions.

Check it out : http://blog.wishlisting.com/?p=20