Support / KnowledgeBase

 
Search the KnowledgeBase Search
feedCurrently Browsing: PHP and Coding
Launch

How do I enable FastCGI? Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: Account Center access Applies to: DV 4.0 Difficulty: Easy Time Needed: 10 Tools Required: Plesk administrator access Applies to: DV Difficulty: Easy Time Needed: 10 Tools Required: Plesk administrator access Overview ... Applies To: (dv) 4.0, Grid

Launch

Generate API key Applies to: API, All Service Types Difficulty: Easy Time: 5 Tools needed: Account Center access An API key is required when you wish to develop applications to help manage and monitor your (mt) Media Temple hosting services. Generate your API key Sign into your Account Center and scro ... Applies To: API

Launch

How do I enable CloudFlare? Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: Account Center access Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: Account Center access Applies to: (ve) Difficulty: Easy Time Needed: 10 Tools Required: Account Center access Overview CloudFla ... Applies To: (dv) 4.0, (ve), Grid

Launch

Using Cron Applies to: DV Difficulty: Easy Time Needed: 10 Tools Required: Plesk administrator access Applies to: DV 4.0 Difficulty: Easy Time Needed: 10 Tools Required: Plesk administrator access Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: Account Center access Overview Cr ... Applies To: (dv) 4.0, DV, Grid

Launch

How do I increase the PHP upload limits? Applies to: All DV Difficulty: Medium Time Needed: 10 Tools Required: SSH or FTP access, vi knowledge Applies to: All Grid Difficulty: Medium Time Needed: 10 Tools Required: SSH or FTP access, vi knowledge Applies to: WordPress Hosting Difficulty: Medium Time Needed: 10 Tools Required: SS ... Applies To: All DV, Grid

Launch

How can I edit the php.ini file? Applies to: Grid Difficulty: Medium Time Needed: 20 Tools Required: AccountCenter access, SSH enabled, FTP client, plain text editor Applies to: DV Difficulty: Easy Time Needed: 10 Tools Required: Plesk or SSH access Overview The php.ini file is the default configuration file for runn ... Applies To: All DV, Grid

Launch

Password protecting directories Applies to: Grid Difficulty: Easy Time Needed: 20 Tools Required: AccountCenter access or SSH, FTP client Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: Plesk administrator access or SSH, FTP client Overview You can restrict access to a web folder on your (mt) ser ... Applies To: (dv) 4.0, DV, Grid

Launch

Working with a hacked or compromised server Applies to: Grid Difficulty: Medium Time Needed: 20 Tools Required: SFTP Applies to: All DV Difficulty: Medium Time Needed: 20 Tools Required: SFTP NOTE: Remember that it is your responsibility to maintain the security of any scripts or applications you choose to install and use on you ... Applies To: All DV, Grid

Launch

How do I set the path for open_basedir? Applies to: Grid Difficulty: Medium Time Needed: 10 Tools Required: Plain text editor, FTP client or AccountCenter access Applies to: DV Difficulty: Medium Time Needed: 10 Tools Required: Plesk Applies to: DV 4.0 Difficulty: Medium Time Needed: 10 Tools Required: SSH, root access, vi know ... Applies To: (dv) 4.0, DV, Grid

Launch

How do I enable the server-status page on my server? Applies to: All DV Difficulty: Medium Time Needed: 10 Tools Required: SSH, root access, vi knowledge Overview The status module allows a server administrator to find out how well their server is performing. An HTML page is presented that gives the current server statistics in an easily ... Applies To: All DV

Launch

Using .htaccess rewrite rules Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: Plain text editor, FTP Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: Plain text editor, FTP Applies to: (ve) Difficulty: Easy Time Needed: 10 Tools Required: Plain text editor, FTP Overview The A ... Applies To: (ve), All DV, Grid

Launch

Making directories browsable, solving 403 errors Applies to: Grid Difficulty: Medium Time: 10 Tools needed: FTP, plain text editor or SSH, vi knowledge Applies to: All DV Difficulty: Medium Time: 10 Tools needed: FTP, plain text editor or SSH, vi knowledge Overview Make a directory web-browsable. For example, if you have several file ... Applies To: All DV, Grid

Launch

Installing PECL extensions Applies to: Grid Difficulty: Medium Time Needed: 20 Tools Required: SSH, vi knowledge Applies to: DV Difficulty: Medium Time Needed: 20 Tools Required: SSH, vi knowledge Overview PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting faciliti ... Applies To: All DV, Grid

Launch

Prevent search engines from indexing your websites Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: FTP client, plain text editor Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: FTP client, plain text editor Overview Web Robots, also known as Web Wanderers, Crawlers, or Spiders, are programs that t ... Applies To: All DV, Grid

Launch

Edit PHP Safe Mode on a DV Server Applies to: DV Difficulty: Easy Time: 10 Tools needed: SSH Applies to: DV 4.0 Difficulty: Easy Time: 10 Tools needed: SSH For a discussion of Safe Mode and security, please see PHP Safe Mode, Problems, and Workarounds first. Disable Safe Mode Globally in SSH You can edit your php.ini ... Applies To: All DV

Launch

Using server side includes (SSI) Applies to: Grid Difficulty: Medium Time: 20 Tools needed: FTP, plain text editor Applies to: DV Difficulty: Medium Time: 20 Tools needed: FTP, plain text editor Overview This article explains how to use SSI (Server Side Includes) in your web pages from the designated files. SSI is a s ... Applies To: All DV, Grid

Launch

PHP Safe Mode, Problems, and Workarounds Applies to: Grid Difficulty: Medium Time Needed: 20 Tools Required: SSH, vi knowledge Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: SSH, vi knowledge Overview This article is about PHP Safe Mode, Security, and Safe Mode Workarounds. Default Settings Safe Mode ... Applies To: (dv) 4.0, DV, Grid

Launch

How do I redirect my site using a .htaccess file? Applies to: All Service Types Difficulty: Medium Time Needed: 10 Tools Required: FTP, plain text editor Overview This document will explain how to create a .htaccess file to redirect your site or site content. This will not redirect any emails for your domains. READ ME FIRST As a conf ... Applies To: All Service Types

Launch

Creating custom error pages Applies to: Grid Difficulty: Medium Time: 20 Tools needed: FTP Applies to: All DV Difficulty: Medium Time: 20 Tools needed: FTP Overview This article explains how to set up custom error documents for your server. Instead of a plain 404 Not Found or 500 Internal Server Error page, you c ... Applies To: All DV, Grid

Launch

Basic troubleshooting & tips for CloudFlare Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: AccountCenter access Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: AccountCenter access Applies to: (ve) Difficulty: Easy Time Needed: 10 Tools Required: AccountCenter access Overview CloudFlare ... Applies To: (ve), All DV, Grid

Launch

Using .htaccess files Applies to: Grid Difficulty: Medium Time Needed: 20 Tools Required: FTP, plain text editor Applies to: All DV Difficulty: Medium Time Needed: 20 Tools Required: FTP, plain text editor Introduction The .htaccess file is a powerful tool for modifying your Apache configuration on a per-d ... Applies To: All DV, Grid

Launch

Increase PHP security with PHPSecInfo Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: FTP client Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: FTP client Overview PHPSecInfo provides the security equivalent of the phpinfo() function. It is not a replacement for secure development t ... Applies To: All DV, Grid

Launch

Prevent hotlinking with a .htaccess file Applies to: Grid Difficulty: Medium Time Needed: 15 Tools Required: FTP client, plain text editor Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: FTP client, plain text editor Overview Hotlinking refers to linking directly to non-html objects on other servers, suc ... Applies To: All DV, Grid

Launch

Compressing web pages with mod_deflate Applies to: All DV Difficulty: Medium Time Needed: 20 Tools Required: SSH, vi knowledge Overview The mod_deflate module allows the Apache2 web service to compress files and deliver them to clients (browsers) that can handle them. With mod_deflate you can compress HTML, text or XML files ... Applies To: All DV

Launch

How can I create a phpinfo.php page? Applies to: Grid Difficulty: Easy Time Needed: 10 Tools Required: FTP, plain text editor Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: FTP, plain text editor Overview You can use a phpinfo() page to view the current PHP information for your server. This file out ... Applies To: All DV, Grid

Launch

How do I set the upload_tmp_dir? Applies to: All DV Difficulty: Medium Time Needed: 10 Tools Required: SSH, root access, vi knowledge Overview The temporary directory is used for storing files when a file is uploaded. This directory must be writable by whichever user PHP is running as. If not specified, PHP will use th ... Applies To: All DV

Launch

Resolve Apache error: "PHP Fatal error: [ionCube Loader]" Applies to: All DV Difficulty: Medium Time Needed: 20 Tools Required: SSH, root or sudo access, vi knowledge Symptoms When you are trying to start Apache, the following error appears in the Apache error log: PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in ... Applies To: All DV

Launch

Understanding basic vi (visual editor) Applies to: Grid Difficulty: Medium-Hard Time Needed: 20 Tools Required: SSH enabled, SSH client Applies to: All DV Difficulty: Medium Time Needed: 10 Tools Required: SSH, root or sudo access Overview vi (visual editor) is included with all (mt) Media Temple services. vi is a full sc ... Applies To: All DV, Grid

Launch

Troubleshooting common issues with cron jobs Applies to: Grid Difficulty: Medium Time Needed: 15 Tools Required: SSH, vi knowledge Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: SSH, vi knowledge Overview Cron jobs are commands that your service runs at a specified interval and, as such, can be difficult to ... Applies To: All DV, Grid

Launch

Block a specific IP address from accessing your website Applies to: Grid Difficulty: Medium Time Needed: 15 Tools Required: FTP client, plain text editor Applies to: All DV Difficulty: Easy Time Needed: 10 Tools Required: FTP client, plain text editor Overview If you have annoying visitors, site scrapers, or spammers, you may find it usef ... Applies To: All DV, Grid

Launch

Why am I getting a 500 Internal Server Error message? Applies to: All Service Types Difficulty: Medium Time Needed: 20 Tools Required: Plain text editor, FTP client Overview 500 Internal Server Error is a generic error message, given when no more specific message is suitable. There are a number of causes for a 500 Internal Server Error to ... Applies To: All Service Types