I freaked out a little this morning when I noticed that a key resource I had bookmarked was missing from the web well almost! Thanks to Google's cache I dug up the instructions originally posted on urbanmainframe.com on how to install APC (for displaying realtime upload progress details next to the field uploading a file in Drupal for example) on a Mediatemple account. Et voila: Installing APC on Media Temple Grid Server
1. Telnet or SSH onto your GS server
2. mkdir /home/#####/data/lib (where “#####” is your Media Temple account number)
3. mkdir /home/#####/data/lib/php
4. wget http://pecl.php.net/... (at the time of writing this is the latest stable version - adjust as necessary)
5. tar zxvf APC-3.0.19.tgz (again adjust as necessary)
6. cd APC-3.0.19
7. phpize5
8. ./configure --enable-apc --enable-apc-mmap --with-apxs2=/usr/sbin/apxs --with-php-config=/usr/local/php-5.2.6-1/bin/php-config
9. make clean
10. make && cp modules/*.so /home/#####/data/lib/php
11. Finally add the following code to your php.ini file: extension_dir = /home/#####/data/lib/php/ extension = apc.so
That’s it. APC should now be installed and you should be able to measure a significant improvement in your PHP script performance.
Related Post(s)
-
Thursday Dec 22, '11
-
Wednesday Dec 14, '11
-
Thursday Sep 15, '11
Recently blogged
Recent comments
-
Saturday Jan 28
-
Friday Jan 6
-
Sunday Dec 25
-
Wednesday Nov 30
-
Wednesday Sep 14
Our Podcast
Subscribe to our podcasts through the iTunes store for free!
Subscribe
Sign up to our email newsletter to stay in touch - we send it out monthly and never spam.
Archives
- October 2007 (5)
- November 2007 (6)
- December 2007 (1)
- January 2008 (1)
- February 2008 (1)
- March 2008 (2)
- April 2008 (6)
- May 2008 (1)
- June 2008 (1)
- July 2008 (2)
- August 2008 (1)
- September 2008 (5)
- October 2008 (3)
- November 2008 (1)
- January 2009 (3)
- February 2009 (1)
- March 2009 (4)
- April 2009 (2)
- May 2009 (1)
- November 2009 (3)
- December 2009 (2)
- January 2010 (13)
- February 2010 (5)
- March 2010 (9)
- April 2010 (2)
- June 2010 (9)
- July 2010 (6)
- August 2010 (3)
- September 2010 (4)
- October 2010 (1)
- November 2010 (2)
- January 2011 (2)
- February 2011 (3)
- March 2011 (3)
- April 2011 (3)
- May 2011 (3)
- June 2011 (2)
- July 2011 (1)
- August 2011 (3)
- September 2011 (2)
- October 2011 (1)
- November 2011 (2)
- December 2011 (3)
- January 2012 (1)
Comments