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.
(Written by Qasim - Principal/Founder @ Design Guru)Related Post(s)
-
Monday Jun 4, '12
-
Tuesday Mar 6, '12
-
Wednesday Feb 29, '12
Recently blogged
-
Monday Aug 27
-
Thursday May 24
-
Thursday Apr 19
Recent comments
-
Saturday May 18
-
Friday May 17
-
Thursday May 16
-
Thursday May 16
-
Tuesday Apr 30
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.
Comments
Post new comment