SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member firelogic's Avatar
    Join Date
    Dec 2001
    Location
    Toronto, Canada
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Static vs Dynamic Module ID?

    Hi,

    Is there any way to identify whether PHP was installed as a dynamic module vs a static module vs an RPM install with linux?

    The reason I'm asking is I would like to update from PHP 4.0.3pl1_5 to PHP 4.1.0, but I don't know if the current install was dynamic/static/etc.

    (as you can probably tell, I'm pretty new at this )

    Thanks for any and all help on this matter!!

  2. #2
    Are you ready for BSD? Marshall's Avatar
    Join Date
    Dec 2001
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you talking about whether the PHP module is built into Apache?

    Check your `httpd.conf' file. If you see an un-commented-out LoadModule attribute line for php4_module then PHP is being loaded dynamically.

    - Marshall

  3. #3
    SitePoint Member firelogic's Avatar
    Join Date
    Dec 2001
    Location
    Toronto, Canada
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, and thanks for your reply ..

    In my httpd.conf file, the following 2 lines refer to php4:

    LoadModule php4_module modules/libphp4.so
    AddModule mod_php4.c

    Since neither is commented out (#), should I assume that PHP is being loaded dynamically? I won't have to rebuild Apache after I update PHP?

  4. #4
    Are you ready for BSD? Marshall's Avatar
    Join Date
    Dec 2001
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    should I assume that PHP is being loaded dynamically?
    Yes, PHP is being loaded dynamically.

    I won't have to rebuild Apache after I update PHP?
    Correct, you should not need to rebuild Apache. You will, however, need to rebuild the Apache PHP module. The source for this module is located in the `sapi/apache' directory and is not usually built by default.

    A popular choice is to build the Apache module version. You need
    to know where the source code directory for your Apache server is
    located. Then use an option like: --with-apache=/usr/local/src/apache
    if that is your Apache source code directory. If you only specify
    --with-apache, then it will default to look for your Apache source
    in /usr/local/etc/httpd.
    You will need to have the Apache source code to accomplish this. See the `INSTALL' file in your base PHP source directory for complete instructions.

    - Marshall


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •