Latest 100 public
snipts » mediatemple
showing 1-13 of 13 snipts for mediatemple
-
∞ Mediatemple (dv) virtualenv.py activation script for mod_python, virtualenv, & django
# Mediatemple (dv) virtualenv.py activation script for mod_python, virtualenv, & django # based on http://mydjangoblog.com/2009/03/30/django-mod_python-and-virtualenv/ # # /path/to/virtualenv/home # $WORKON_HOME (eg. /home/.virtualenvs/) # # <virtualenv_name> # name of virtual environment. # virtualenv.py activate_this = '/path/to/virtualenv/home/<virtualenv_name>/bin/activate_this.py' execfile(activate_this, dict(__file__=activate_this)) from django.core.handlers.modpython import handler
-
∞ Mediatemple (dv) vhost config using mod_python, virtualenv, & django
# Mediatemple (dv) vhost config using mod_python, virtualenv, & django # based on http://mydjangoblog.com/2009/03/30/django-mod_python-and-virtualenv/ # # /path/to/virtualenv/home # $WORKON_HOME (eg. /home/.virtualenvs/) # # <virtualenv_name> # name of virtual environment. # # <project_container> # parent directory of django project (created by django-admin.py startproject). # # <project_name> # name of django project (eg. myblog). <Location "/"> SetHandler python-program PythonPath "['/path/to/virtualenv/home/<virtualenv_name>/bin', '/path/to/virtualenv/home/<virtualenv>/<project_container>'] + sys.path" PythonHandler virtualenv SetEnv DJANGO_SETTINGS_MODULE <project_name>.settings SetEnv PYTHON_EGG_CACHE /var/tmp PythonDebug On PythonInterpreter <project_name> </Location> <Location "/media"> SetHandler None </Location> <LocationMatch ".(jpg|gif|png)$"> SetHandler None </LocationMatch>
-
∞ Mediatemple (dv) server - Plesk & Apache restart
/usr/local/psa/admin/sbin/websrvmng -a -v
-
∞ Install Yum on a (dv) 3.0 Server
# Install Yum on a (dv) 3.0 Server rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-2.6.16-12.i386.rpm rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-12.i386.rpm rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm # Edit the CentOS-Base.repo file and enable CentOSPlus and CentOSContrib repos. # Change enabled=0 to enabled=1 under [centosplus] and [contrib] vi /etc/yum.repos.d/CentOS-Base.repo # I also suggest you grab Atomic Turtle's Yum Repository wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
-
∞ (gs) Default php.ini
; This is a example php.ini created by Brandon ; Instructions ; To use this file you will need to rename it php.ini and uncomment (by removing the semicolon) or add directives you wish to use. ; Be sure not to uncomment the Descriptions ; For a complete list of valid directives, visit: http://us2.php.net/manual/en/ini.php ; For more information check out the following resources: ; (mt) Knowledge Base - http://kb.mediatemple.net ; (mt) Forums - http://kb.mediatemple.net/questions/824/ ; (mt) System Status - http://status.mediatemple.net ; HOWTO: edit php.ini for (gs) Grid-Service users - http://kb.mediatemple.net/questions/137/ ; HOWTO: edit php.ini for (dv) Dedicated-Virtual users - http://kb.mediatemple.net/questions/664/ ; ;----------------------------------------------------------------------------------------------------------- [PHP] ; We highly recommend that you leave this options enabled cgi.fix_pathinfo=1 ; Increase maximum post size ;post_max_size = 20M ; Increase execution time ;max_execution_time = 300 ; Increase php Upload Filesize ;upload_max_filesize = 20M ; Uncomment to turn on register_globals ;register_globals = true ; Turn on Safe Made (default is off for your domains) ;safe_mode = on ;include_path = (.:/usr/local/php-4.x.x-x/share/pear/:/path/to/new/includes) ; Why is allow_url_fopen disabled on the (gs) Grid-Service? - http://kb.mediatemple.net/questions/793/ ;allow_url_fopen = On ; Please be sure to also uncomment the following if you enable allow_url_fopen. ;memory_limit = 100M ;cgi.fix_pathinfo=1 ; ;----------------------------------------------------------------------------------------------------------- ; For performance reasons, (mt) does not load all of the modules that are available ; into PHP. You may uncomment any one of the following "extension" lines to enable ; the desired module ; Salblotron XSLT ;extension=xslt.so ; save in local tmp session.save_path=/home/3628/data/tmp
-
∞ (mt) Default Index Page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>(mt) Media Temple - Web Hosting Services</title> <style type="text/css"> body { margin:0; font-family:Arial, Helvetica, sans-serif !important; font-size:12px !important; color: #232323; text-align:center; background-image:none !important; } .csshead { background-position: left top; background-image: url(images/ww_bg.gif); background-repeat: repeat-x; height:87px; background-color:#000; } h1.logoholder { padding-top: 30px; padding-left: 40px; float:left; margin:0; padding-bottom:0; } div.loginholder { float: right; padding-top: 15px; padding-right: 40px; } .logocss { cursor: pointer;display:block; width: 230px; height: 25px; /* IE 5+/Win only filter */ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='images/mtlogo.png'); display:block; } .logocss[class] { background-image: url(images/mtlogo.png); } .logocss span { position:absolute; text-indent:-6000px; } .logincss { cursor: pointer; font-size: 11px; font-family: verdana; line-height: 200%; color: #808080; text-align: center; width: 280px; height: 30px; display:block; /* IE 5+/Win only filter */ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='images/login_bg.png'); } /* Other browsers. IE ignores [attributes] */ .logincss[class] { background-image: url(images/login_bg.png); } a.logincss .over, a.logincss:visited .over { color: #FFFFFF; text-decoration: none; } a.logincss:hover .over, a.logincss:active .over { color: #FFFFFF; text-decoration: underline; } h2.defaultdomain { font-size:36px; color: #004A80; } </style> </head> <body> <div class="csshead"> <h1 class="logoholder"> <a class="logocss" href="http://www.mediatemple.net" onclick="window.location='http://www.mediatemple.net/'" title="(mt) Media Temple - HOME"><span>(mt) MediaTemple</span></a> </h1> <div class="loginholder"> <a class="logincss" href="https://ac.mediatemple.net/" onclick="window.open('https://ac.mediatemple.net/'); return false;" style="text-decoration: none;" title="CUSTOMER LOGIN"><span class="primary_grey">(877) 578-4000 24/7 SUPPORT | </span><span class="over">LOGIN</span></a> </div> </div> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> You have reached the future home of: <h2 class="defaultdomain">Your Domain Goes Here</h2> another site successfully deployed by <br /> <a href="http://www.mediatemple.net">(mt) Media Temple Web Hosting</a> </body> </html>
-
∞ media temple directory structure for domain
/var/www/vhosts/domain.com
-
∞ restart a media temple dv 3.5 web server from command line
/usr/local/psa/admin/sbin/websrvmng -a -v
-
∞ Reconfigure mail settings on a mediatemple (dv) 3.5
/usr/local/psa/admin/sbin/mchk --with-spam
-
∞ Install yum on (mt) MediaTemple DV 3.5
# Install Python Iniparse rpm -Uvh http://mirror.centos.org/centos/5.2/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm # Install the Yum Metadata parser rpm -Uvh http://mirror.centos.org/centos/5.2/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm # Install Yum rpm -Uvh http://mirror.centos.org/centos/5.2/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm # You may also need to install the following: # Install Phython ElementTree rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm # Install Python Sqlite rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2-48.el5.i386.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-6.el5.2.i386.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm # Edit the CentOS-Base.repo file and enable CentOSPlus repos. # Change enabled=0 to enabled=1 under [centosplus] vi /etc/yum.repos.d/CentOS-Base.repo # I also suggest you grab Atomic Turtle's Yum Repository wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
-
∞ reconfigure vhost on mediatemple dv server
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mt-example.com -
∞ Install yum on MediaTemple DV 3.5
# Install Python Iniparse sudo rpm -Uvh http://mirror.centos.org/centos/5.2/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm # Install the Yum Metadata parser sudo rpm -Uvh http://mirror.centos.org/centos/5.2/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm # Install Yum sudo rpm -Uvh http://mirror.centos.org/centos/5.2/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm
-
∞ reload apache's configurations on a MediaTemple 3.0 DV
/usr/local/psa/admin/sbin/websrvmng -a -v


