Installing APC on Media Temple DV 3.5 Server
Here are some quick and easy steps to install APC on a Media Temple DV 3.5 Server
A. Install Developer Tools and enable SSH access.
- Log into Account Center on Media Temple
- Click on the Admin button next to your domain
- Click on the “Root Access and Developer Tools” button
- Click the enable button next to Root access
- Click the install button next to Developer Tools
- This process takes 10-15 minutes to complete, so hold your britches
B. Download, compile and install APC. Log into your system using an SSH client (Like Terminal on a Mac or Putty on a PC), then run the commands below in order.
- cd /usr/local/src
- wget http://pecl.php.net/get/APC-3.0.19.tgz
- tar -xvf APC-3.0.19.tgz
- cd APC-3.0.19
- phpize
- ./configure –enable-apc-mmap –with-apxs –with-php-config=/usr/local/php/bin/php-config –with-php-config=/usr/bin/php-config
- make
- make install
- echo “extension=apc.so” > /etc/php.d/apc.ini
- /etc/init.d/httpd restart
C. The last thing you want to do is copy the apc.php file to your web server to see if APC is running properly. You can do that with the following command. Make sure you replace the words “yourdomain.com” with your actual domain name for your web site.
- cp apc.php /var/www/vhosts/yourdomain.com/httpdocs/
Now go to http://www.yourdomain.com/apc.php and you should see the caching stats there.
Good luck.
