Wednesday, 14 November 2012

Installing php-gd support to apache web server

STEP 1 install php5-gd
prayag@prayag:/var/www$ sudo apt-get install php5-gd
[sudo] password for prayag: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
  php5-gd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.5 kB of archives.
After this operation, 150 kB of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu/ precise-security/main php5-gd i386 5.3.10-1ubuntu3.4 [37.5 kB]
Fetched 37.5 kB in 4s (8,496 B/s)  
Selecting previously unselected package php5-gd.
(Reading database ... 315063 files and directories currently installed.)
Unpacking php5-gd (from .../php5-gd_5.3.10-1ubuntu3.4_i386.deb) ...
Processing triggers for libapache2-mod-php5 ...
 * Reloading web server config apache2                                                                                                                                  apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                                                                                                                 [ OK ]
Setting up php5-gd (5.3.10-1ubuntu3.4) ...

STEP 2 restart apache2 server

prayag@prayag:/var/www$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                                                                                                                        apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                                                                                                                 [ OK ]

STEP 3
prayag@prayag:/var/www$ php5 -m | grep -i gd
gd


Reference

No comments:

Post a Comment