Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Install APC for PHP on Ubuntu

Answer:

APC is a very fast byte-code caching module for PHP. (It will become part of PHP6 in the future). By installing it, the performance of your PHP codes can be speed up by 200-300%.

To install it under Ubuntu,

# sudo apt-get install php-apc

Then restart Apache,

# sudo /etc/init.d/apache2 restart

See also: Compile/Install APC on RedHat/CentOS/Fedora Linux

Search for a software/package to install using aptitude

Answer:

To search for a software/package to install under Debian/Ubuntu is easy with aptitude

# sudo aptitude search php5-xdebug
i   php5-xdebug                            - Xdebug Module for PHP 5

Search for a software/package to install using apt-cache

Answer:

To search for a software/package to install under Debian/Ubuntu is easy with apt-cache

# sudo apt-cache search php5-xdebug
php5-xdebug - Xdebug Module for PHP 5

Install GD Library for PHP on Linux

Answer:

To install GD Library for PHP on Linux

1. Fedora/CentOS

# yum install php-gd

Then restart Apache

# service httpd restart

2. Debian/Ubuntu

# sudo apt-get install php5-gd

Then restart Apache

# sudo /etc/init.d/apache restart