PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 11th, 2000, 12:43 PM
jester jester is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Hong Kong
Posts: 47 jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 32 sec
Reputation Power: 14
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

Reply With Quote
  #2  
Old May 11th, 2000, 08:48 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
# 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

Reply With Quote
  #3  
Old May 11th, 2000, 10:00 PM
jester jester is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Hong Kong
Posts: 47 jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 32 sec
Reputation Power: 14
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

Reply With Quote
  #4  
Old May 11th, 2000, 10:23 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>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.

Reply With Quote
  #5  
Old May 12th, 2000, 11:22 AM
jester jester is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Hong Kong
Posts: 47 jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 32 sec
Reputation Power: 14
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

Reply With Quote
  #6  
Old May 14th, 2000, 04:51 AM
raphael raphael is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 2 raphael User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP not works in Apache -- "LoadModule not defined"

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap