• Apache, MySql and PHP Howto (from source)

    Everyone loves web applications that use Apache, PHP and MySQL, and everyone loves having their very own web servere that runs them. The problem is, how do you do it? If your’re like me, you don’t do it enough to remember, so here are some quick directions to get you started.

    First we must download the latest versions of Apache, MySQL and PHP and extract them. You may have to dig a little since these places are always changing where they keep things, but the links below should be of some use. Just make sure you download the source distribution.

    MySQL Download >
    Apache Download >
    PHP Download >

    I always put these applications in /usr/local/server, but you can select whatever location you like. Simply add whatever directory you want into the –prefix directive.

    First, let’s build and install MySQL

    # cd /path/to/mysql/source/directory
    # ./configure –prefix=/usr/local/server/mysql
    # make
    # make install

    Next, we have to build and install the Apache web server. In this example, we are building it with SSL, URL Rewrite and Shared Object support.

    # cd /path/to/apache/source/directory
    # ./configure –prefix=/usr/local/server/apache –enable-module=so –enable-rewrite -enable-ssl
    # make
    # make install

    Finally, build and install PHP. There are lots of things you can include when building PHP, but these are the most common.

    # ./configure –with-apxs2=/usr/local/server/apache/bin/apxs –with-mysql=/usr/local/server/mysql –enable-debug=no –enable-track-vars=yes –enable-bcmath=yes –enable-memory-limit=yes –with-imap –with-ldap=/usr/local/server/ldap –enable-ftp –with-gd –with-jpeg-dir=/usr/local –with-png-dir=/usr/local –with-zlib-dir=/usr
    # make
    # make install

    That should do it… If everything went well, you can start up your fancy new apache web server.

    # /usr/local/server/apache/bin/apachectl start

    This entry was posted on Friday, April 29th, 2005 at 3:43 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 1 Comment

    Take a look at some of the responses we've had to this article.

    1. [...] jumped through hoops, destroyed my apache install, rebuilt it from source, tried installing an RPM of PHP, discovered that it wouldnt talk to MySQL, tried building PHP from [...]

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: t (91) - ghost 8.2 download (76) - download ghost 8.2 (62) - php mysql howto (36) - mysql php howto (21) - apache php howto (20) - B57.DOS DOWNLOAD (16) - b57.dos (14) - download ghost for dos (14) - download ghost 8 2 (14) - apache mysql howto (13) - "apache 3" download (13) - php with-zlib-dir (12) - ghost for dos download (12) - apache php slow (11) - rhel4 apache php (11) - RHEL apache PHP (10) - rhel4 php apache (10) - mysql (9) - tag/Solaris (9) - ghost 8.2 (9) - php mysql slow (9) - tag/php (8) - all (8) - solaris apache howto (8) - apache mysql slow (8) - apache solaris 9 (8) - ghost dos download (8) - apache php rhel (8) - php mysql apache howto (7) - apache php mysql slow (7) - rhel mysql howto (7) - solaris mysql howto (7) - install apache on RHEL (7) - apache php mysql howto (6) - solaris apache mysql php (6) - download ghost 8.2 for dos (6) - howto php mysql (6) - apache php solaris (6) - mysql php slow (6) - "ghost 8.2"+"download" (6) - ghost 8.2 dos download (6) - how to configure apache, mysql and ssl on solaris 9 (6) - ghost 8 2 download (6) - f (6) - install mysql solaris 9 source (6) - solaris 8 apache php mysql howto (6) - broadcom "b57" (5) - symantecghost.db download (5) - b57.dos slow (5) - apache mysql php solaris (5) - howto apache php mysql (5) - php solaris 9 (5) - mysql howto (5) - compile PHP howto (5) - Howto mysql (5) - download ghost 8.2 dos (5) - apache mysql php howto (5) - php apache rhel4 (5) - ghost 8 2 dos download (5) - "MySQL and PHP howto" (4) - download B57.DOS (4) - b57-dos-1 (4) - php howto mysql (4) - slow apache mysql (4) - Howto Apache Solaris (4) - php apache solaris (4) - php ldap howto (4) - compile php apache mysql solaris (4) - download ghost dos (4) - b57.dos slow ghost (4) - download "apache for solaris 9" (4) - mysql source howto (4) - b57 dos download (4) - Symantec Ghost 8.2 download (4) - howto APACHE in RHEL (4) - symantec ghost 8 2 download (4) - GHOST 8 2 (4) - solaris mysql php apache howto (4) - solaris (3) - apache (3) - ghost (3) - tag/apache (3) - symantecghost (3) - +slow +broadcom +dos (3) - mysql apache php howto (3) - netbackup howto (3) - php howto apache (3) - install mysql, php, apache on solaris9 (3) - apache mysql php slow (3) - mysql source install howto (3) - install php solaris 9 (3) - howto php ldap (3) - php howto (3) - php apache solaris 9 (3) - +"solaris" +"x86" +"apache" +"mysql" +"php" (3) - wordpress apache (3) - apache php mysql solaris 9 (3) - solaris apache php howto (3) - compile php solaris (3) - ghost 8.2 for dos download (3) - howto apache mysql (3) - apache php mysql (3) - apache + ssl + php howto (3) - mysql apache howto (3) - apache php ldap (3) - ghost 8.2 DOS (3) - solaris 9 php apache (3) - install mysql howto (3) - mysql solaris9 download (3) - ghost for dos (3) - howto install apache on solaris (3) - apache howto (3) - php with-mysql howto (3) - b57.dos speed duplex (3) - How to Build Apache php and mysql on solaris 9 (3) - building php on solaris (3) - download ghost 9 for dos (3) - howto php apache (3) - RHEL4 apache download (3) - apache php rhel4 (3) - php apache rhel (3) - configure php apache solaris (3) - compile php mysql solaris (3) - php download, RHEL (3) - RHEL php apache (3) - download apache for rhel4 (3) - install apache rhel (3) - how to install apache php mysql on solaris (3) - install mysql apache php solaris (3) - Solaris 9 mysql howto (3) - solaris 9 apache howto (3) - linux apache mysql php howto (3) - apache php mysql install solaris (3) - download ghost 8 2 for dos (3) - apache php mysql solaris (3) - download apache for RHEL (3) - localserver apache (3) - apache on Solaris 9 howto (3) - solaris 9 php and apache installation (3) - setup apache php mysql on solaris 8 (3) - rhel apache2 ssl howto (3) - php on solaris (3) - how to install and configure ghost for rhel (3) - how to install MYSQL in solaris9 (3) - php 6 and mysql 6 download (3) - ldap (2) - b57 dos (2) - b57.dos "full duplex" (2) - solaris mysql install howto (2) -