Installing PHP with GD

Installing PHP with GD Support involves:

Installing Apache
Installing PHP with GD Support

Installing apache:

  • Download apache 1.3.x from http://httpd.apache.org/dist/
  • untar the distribution into /usr/local/src/apache-1.3.x/
  • cd /usr/local/src/apache-1.3.x/
  • run:
    ./configure –enable-module=so –enable-module=rewrite –enable-suexec –suexec-caller=nobody \
    –suexec-docroot=/usr/local/apache/htdocs –with-suexec-logfile=/usr/local/apache/logs/suexec_log

  • make
  • make install

Apache is now installed in /usr/local/apache

Installing PHP

  • Download the distribution from www.php.net
  • untar the distribution into /usr/local/src/php-4.3.x/
  • cd /usr/local/src/php-4.3.x/
  • run:
    ./configure –with-mysql=/usr/local/mysql –with-apxs=/usr/local/apache/bin/apxs –with-jpeg –with-zlib –with-png –with-gd

  • make
  • make install

php is now installed.