Benoît Raux yet another php coder

Chef de projet developpeur web lyonnais #geek #apero #ski #sun #php #linux #shell #dev #web

[php] [ubuntu] Install APC on ubuntu

Jan 19th, 2010 @ 4:49 pm

Install APC (Alternative PHP Cache) to increase server performance.

On Ubuntu 9.10 :

	sudo apt-get install php-apc
	sudo /etc/init.d/apache2 restart


On Ubuntu 8.04 :
Install pre-required packages

	sudo apt-get install php-pear php5-dev apache2-threaded-dev make

Install APC with PECL

	sudo pecl install apc

If succeed, add extension=apc.so to your php.ini

	sudo vim /etc/php5/apache2/php.ini
	
	insert :
		[APC]
		extension=apc.so	

Reload apache2

	sudo /etc/init.d/apache2 restart


check with phpinfo(), you must have the following : APC Support enabled

Tweet

blog comments powered by Disqus
Comments

Archive · Mobile · RSS · twitter · cv