PHP Module Installation Notes for Mod_Rewrite, GD Library, and ImageMagick

Mindwatering Incorporated

Author: Tripp W Black

Created: 11/24/2010 at 01:11 AM

 

Category:
Linux
Apache

Enable mod_rewrite module to apache2:
$ sudo a2enmod rewrite
$ sudo /etc/init.d/apache2 restart

Install PHP GD-Library
$ sudo apt-get install php5-gd
$ sudo /etc/init.d/apache2 restart

Install ImageMagick
$ sudo apt-get install php5-imagick
$ sudo /etc/init.d/apache2 restart

Note: If PEAR is not installed add php-pear as well.
$ sudo apt-get install php-pear php5-imagick
$ sudo /etc/init.d/apache2 restart

Note:
To test we created a phpinfo.php page in the var/www/ folder.
We set it to execute with chmod +x phpinfo.php.

previous page

×