php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1689 Apache cannot load mod_php3.so
Submitted: 1999-07-10 01:18 UTC Modified: 1999-07-10 07:48 UTC
From: morriscode at aol dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 3.0.11 OS: FreeBSD 3.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: morriscode at aol dot com
New email:
PHP Version: OS:

 

 [1999-07-10 01:18 UTC] morriscode at aol dot com
I enabled mod_php3 in Apache both by using apxs, then by using the Apache ./configure --add-module approach. I followed the instructions at the Apache website for installing third party modules. Both completed without errors, but either way, when I try to start HTTPD, I get the message:

Syntax error on line 231 of /etc/httpd/httpd.conf:                           
Cannot load /usr/local/apache/libexec/mod_php3.so into server: /usr/local/apache/libexec/mod_php3.so: Undefined symbol "php3_ini"                            
/usr/local/apache/bin/apachectl start: httpd could not be started

I tried renaming my php3.ini file to php3_ini but that was just a shot in the dark.

My httpd.conf file includes the lines

LoadModule php3_module        libexec/mod_php3.so

and 

AddModule mod_php3.c

Both are at the end of their respective sections. The php3.ini file is located in /etc/httpd. I would include the php3.ini file here but it's not even being read and it's just the default configuration.

I configured PHP this way:

./configure --with-apxs=/usr/local/apache/bin/apxs \
              --with-config-file-path=/etc/httpd \
              --with-mysql \
              --with-gd \
              --with-zlib \
              --with-system-regex

Apache was originally configured:

./configure --sysconfdir=/etc/httpd \
              --datadir=/home/httpd \
              --logfiledir=/var/log/httpd \
              --enable-module=most \
              --enable-shared=max \
              --disable-rule=WANTHSREGEX

Then the php module was added:

#> apxs -c mod_php3.c
#> apxs -i -a -n php3 mod_php3.so

(completed without errors and added appropriate lines in httpd.conf)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-10 07:48 UTC] rasmus at cvs dot php dot net
Read the INSTALL.DSO file in the PHP distribution.  Your LoadModule line is wrong.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC