• 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 (78) - download ghost 8.2 (62) - php mysql howto (43) - mysql php howto (26) - apache php howto (20) - B57.DOS DOWNLOAD (17) - apache mysql howto (17) - RHEL apache PHP (17) - solaris apache mysql php (16) - download apache for RHEL (15) - b57.dos (14) - apache php slow (14) - download ghost for dos (14) - rhel4 apache php (14) - download ghost 8 2 (14) - "apache 3" download (13) - php with-zlib-dir (12) - ghost for dos download (12) - rhel4 php apache (12) - php mysql slow (11) - apache php mysql solaris (11) - mysql (10) - apache php rhel (10) - install apache on RHEL (10) - tag/Solaris (9) - ghost 8.2 (9) - php mysql apache howto (9) - apache mysql slow (9) - php apache rhel4 (9) - install apache rhel (9) - tag/php (8) - all (8) - apache php mysql howto (8) - solaris apache howto (8) - apache php solaris (8) - apache solaris 9 (8) - ghost dos download (8) - apache php mysql slow (8) - apache mysql php howto (8) - how to install apache on Solaris 10 (8) - php ldap howto (7) - howto php mysql (7) - ghost 8.2 dos download (7) - rhel mysql howto (7) - solaris mysql howto (7) - apache mysql php solaris (6) - howto apache php mysql (6) - download ghost 8.2 for dos (6) - mysql php slow (6) - "ghost 8.2"+"download" (6) - how to configure apache, mysql and ssl on solaris 9 (6) - compile PHP howto (6) - download ghost 8.2 dos (6) - ghost 8 2 download (6) - f (6) - install mysql solaris 9 source (6) - solaris 8 apache php mysql howto (6) - install mysql apache php on solaris (6) - redhat apache download (6) - broadcom "b57" (5) - symantecghost.db download (5) - download B57.DOS (5) - b57.dos slow (5) - slow apache mysql (5) - php solaris 9 (5) - howto apache mysql (5) - mysql howto (5) - Howto mysql (5) - RHEL4 apache download (5) - Symantec Ghost 8.2 download (5) - RHEL php apache (5) - ghost 8 2 dos download (5) - Installing PHP Apache and MySQL on Solaris 10 (5) - how to install apache rhel 4 (5) - php mysql apache solaris (5) - spiralbound how to install apache php mysql on solaris (5) - "MySQL and PHP howto" (4) - b57-dos-1 (4) - php howto mysql (4) - Howto Apache Solaris (4) - howto php ldap (4) - php apache solaris 9 (4) - php apache solaris (4) - compile php apache mysql solaris (4) - mysql apache howto (4) - download ghost dos (4) - apache php ldap (4) - ghost 8.2 DOS (4) - solaris apache php mysql (4) - b57.dos slow ghost (4) - download "apache for solaris 9" (4) - howto install apache on solaris (4) - mysql source howto (4) - b57 dos download (4) - solaris 10 apache mysql php (4) - apache RHEL download (4) - howto APACHE in RHEL (4) - symantec ghost 8 2 download (4) - GHOST 8 2 (4) - howto install apache solaris (4) - solaris mysql php apache howto (4) - compile apache php mysql solaris (4) - installing apache ssl, php mysql on solaris (4) - apache php mysql in solaris (4) - installing mysql apache php on solaris 10 (4) - configure apache php solaris (4) - Configuring Solaris apache mysql and php (4) - install apache mysql php solaris 10 (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) - php howto (3) - +"solaris" +"x86" +"apache" +"mysql" +"php" (3) - wordpress apache (3) - apache php mysql solaris 9 (3) - howto apache mysql php (3) - solaris apache php howto (3) - compile php solaris (3) - ghost 8.2 for dos download (3) - apache php mysql (3) - apache + ssl + php howto (3) - solaris 9 php apache (3) - install mysql howto (3) - mysql solaris9 download (3) - ghost for dos (3) - apache howto (3) - ghost 8.2 for DOS (3) - php with-mysql howto (3) - RHEL apache ssl 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) - install mysql on solaris 9 (3) - apache mysql php solaris 10 (3) - apache php rhel4 (3) - php apache rhel (3) - how to install apache on rhel (3) -