Jump to content


Photo

Apache Installation on Linux: No Add Modules


  • Please log in to reply
3 replies to this topic

#1 9AF

9AF
  • Members
  • Pip
  • Newbie
  • 8 posts

Posted 20 October 2003 - 04:19 PM

I have installed apache 2.0.47 about three times on Linux Mandrake 9.1 The installation is ok, but every time I access the httpd.conf file there are no AddModules listed as well as there being no mention of ClearModuleList. I have followed the install instructions from php.net, see PHP and Apache 2 on Linux at http://www.php.net/m...all.apache2.php, and yet they never appear.

I am unable to compile any php code without AddModule mod_php4.c which I cant seem to add successfully.

Does anybody have suggestions?

Much obliged

RB[/b]

#2 LAMP

LAMP
  • Members
  • PipPip
  • Member
  • 21 posts
  • LocationMissouri, USA

Posted 25 October 2003 - 04:01 PM

Here\'s all I need in httpd.conf --- is yours similar?

#grep php /usr/local/etc/apache/httpd.confLoadModule php4_module        libexec/apache/libphp4.soAddModule mod_php4.c    <IfModule mod_php3.c>        <IfModule mod_php4.c>            DirectoryIndex index.php index.php3 index.html        <IfModule !mod_php4.c>            DirectoryIndex index.php3 index.html    <IfModule !mod_php3.c>        <IfModule mod_php4.c>            DirectoryIndex index.php index.html        <IfModule !mod_php4.c>    <IfModule mod_php3.c>        AddType application/x-httpd-php3 .php3        AddType application/x-httpd-php3-source .php3s    <IfModule mod_php4.c>        AddType application/x-httpd-php .php .html .php3        AddType application/x-httpd-php-source .phps

Hope this sheds some light, [br]LAMP [br]******************************* [br]Warning: main(): Failed opening \'sig.php\' for inclusion (include_path=\'.:/usr/local/share/pear\') in /usr/local/www/data/phpfreaks/forums/topic.php on line 435

#3 9AF

9AF
  • Members
  • Pip
  • Newbie
  • 8 posts

Posted 26 October 2003 - 11:52 AM

I\'ve managed to resolve the problem, I think. libphp4.so was not installed in the modules directory. I made a copy from the php source distro and put it into the modules folder.

I added the line LoadModule php4_module modules/libphp4.so, and it started to work. Though I am somewhat confused as I thought AddModule\'s are supposed to be core components of Apache Server. Does libphp4.so replace the need for AddModules?

Thanks for your response LAMP. I am definitely going to try replicate your httpd.conf structure to see what happens.

RB

#4 LAMP

LAMP
  • Members
  • PipPip
  • Member
  • 21 posts
  • LocationMissouri, USA

Posted 26 October 2003 - 02:14 PM

Glad to hear it\'s working.

In Apache 1.3.x, at least (have no experience with 2.x) you must both \"Load\" and \"Add\" your modules, as your experience has shown.
Hope this sheds some light, [br]LAMP [br]******************************* [br]Warning: main(): Failed opening \'sig.php\' for inclusion (include_path=\'.:/usr/local/share/pear\') in /usr/local/www/data/phpfreaks/forums/topic.php on line 435




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users