Thread: Installing PHP3

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    50
    Rep Power
    14
    PHP
    I am trying to install PHP3.0.16 ......during my installation process i ran through a bit of confusion. I have the tarred version of PHP extracted to my PHP3 dir. I tried to play safe and therefore checked up man pages and webmonkey site for installation procedures.
    This is what i found on the Webmonkey site regarding install.

    "........, let's get to Unix. Of
    course, we'll be compiling from source code. As with MySQL,
    download and unpack the source code. Again, PHP comes with a
    configure script. You can't get away with going for defaults here,
    though. Run ./configure -help | more to see pages and pages of new
    and interesting options. You have to decide between compiling as a
    CGI or as an Apache module. If you are using the Apache Web server
    and you are able to recompile it, use the module: It's faster and
    easier to use. Otherwise, you can go with the CGI version. We also
    need to compile in MySQL support.

    For now we'll assume that we're running the module with MySQL
    support. If you want to add other options or other libraries, you
    can do this later. Type:

    ./configure --with-apache=/path/to/apache/dir
    --with-mysql=/usr/local/mysql

    Skip the -with-apache option if you're creating a CGI version. The
    configure process will run and produce the relevant system files.
    Now simply type make again."

    After reading this help file i fugured out that PHP would require MySQL and Apache support. MySQL is installed fine on my comp. My question is is Apache required.? Also if Apache does get installed with that above ./configure .... statementis it possible to remove it afterwards if i want it for a CGI version.
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Your installed Mysql should remained intact.

    >>If you are using the Apache Web server
    and you are able to recompile it, use the module

    Don't follow webmonkey's misleading and out of date procedures.. Dynamic Shared Object (DSO) Support has been out for quite a while. You can use 'apxs' without recompiling apache to get your PHP to work.

    >>is it possible to remove it afterwards if i want it for a CGI version.
    webmonkey explaining CGI version and compile to apache is misleading, don't follow it. Let me ask you something very simple, do you hava a web browser? If so, do the apache way.

    Assuming you have both Mysql and Apache installed.
    Configure PHP this way..
    ./configure --with-apache=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-system-regex

Similar Threads

  1. Apache2 w/ php4 as DSO.. but I need to revert to php3
    By JunkCookie in forum PHP Development
    Replies: 0
    Last Post: August 11th, 2003, 02:05 PM
  2. Replies: 2
    Last Post: March 12th, 2002, 08:26 PM
  3. cannot read php3 scripts
    By MKashlev in forum PHP Development
    Replies: 1
    Last Post: September 2nd, 2001, 10:48 PM
  4. PHP3 -> PHP4 - how to reconfigure applications?
    By adam2000 in forum PHP Development
    Replies: 1
    Last Post: December 14th, 2000, 01:00 AM
  5. PHP3 and PHP4 together
    By an_easy_marc in forum PHP Development
    Replies: 1
    Last Post: October 20th, 2000, 04:44 AM

IMN logo majestic logo threadwatch logo seochat tools logo