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

    Join Date
    May 2000
    Location
    Hong Kong
    Posts
    47
    Rep Power
    15
    Dear all,

    I have installed Apache 1.3.12.tar.gz and it works properly. However, when I have installed PHP-3.0.16.tar.gz, Apache cannot restart. When I type "apachectl configtest", its message says something like "LoadModule not defined or spelling wrong".

    After I have deleted the Script line of LoadModule, Apache works again. However, PHP3 cannot work because Apache has not loaded the PHP module...

    How could I fix this problem? Or what have I done wrong? Thank you very much~~!!

    Jester
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    # Check for this line in your httpd.conf and uncomment it
    LoadModule php3_module libexec/libphp3.so

    # Under ClearModuleList section, check for
    AddModule mod_php3.c and uncomment it as well.

    Note:
    Above assume your libphp3.so resides under the libexec directory of your 'ServerRoot' directive.
    For example, if ServerRoot is /usr/local/apache, the libphp3.so should then resides in /usr/local/apache/libexec OR you can even specify the exact path to your libphp3.so this way:
    LoadModule php3_module /path/to/libphp3.so

    Next, restart Apache..
    ./apachectl graceful
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Hong Kong
    Posts
    47
    Rep Power
    15
    I have uncomment it. But it still says "Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration"

    I cannot handle it until now... how can I fix then? Thank you very much~~~!!

    Jester
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>Invalid command 'LoadModule', perhaps mis-spelled or
    >>defined by a module not included in the server configuration

    So have you really checked the existence for libphp3.so? Is the path of it under your ServerRoot directive? If not, give a full path to it at the LoadModule line.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Hong Kong
    Posts
    47
    Rep Power
    15
    I have tried to give a full path of it...
    However , the "Invaild command" still appears... I have tried to use "Loadmodule" to load other modules... the result is the same..."Invaild command"
    I think I have missed something in setting up apache.. but I don't know what is it... Can u pls kindly help? Thx a lot~~!! ^_^

    Jester
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    You need to build apache with the module module_so.c included.
    add this to your ./configure line:

    --activate-module=src/modules/standard/mod_so.c



    ------------------
    --
    Raphael
    raphael@cynage.com
    http://www.cynage.com/raphael
    Soem angels never had very far to fall

Similar Threads

  1. Apache 2 and PHP 4
    By stanley1610 in forum Apache Development
    Replies: 2
    Last Post: February 12th, 2004, 08:20 PM
  2. php for apache
    By wannabe in forum Beginner Programming
    Replies: 3
    Last Post: February 6th, 2004, 02:28 PM
  3. PHP -> system commands
    By Tantalus in forum PHP Development
    Replies: 1
    Last Post: January 28th, 2004, 10:51 AM
  4. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM
  5. Can PHP interpret Apache Directory Protection?
    By xpatriot in forum PHP Development
    Replies: 1
    Last Post: January 25th, 2004, 01:51 PM

IMN logo majestic logo threadwatch logo seochat tools logo