|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1689 Apache cannot load
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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/ into server: /usr/local/apache/libexec/ 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/


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 \

Apache was originally configured:

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

Then the php module was added:

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

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


Add a Patch

Pull Requests

Add a Pull Request


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: Thu Feb 29 00:01:28 2024 UTC