Click to See Complete Forum and Search --> : after installing php cant get apache to run, wierd syntax error


Ideal2545
12-12-2005, 09:05 PM
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: sqlite3AlterFinishAddColumn

ugh, i cant figure out whats going on, please help!

-Jon

thorpe
12-12-2005, 09:59 PM
can we see a few lines around line 53 of your httpd.conf file? the error says there is a syntax issue near that line.

Ideal2545
12-13-2005, 07:58 PM
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule php5_module modules/libphp5.so
#

<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>




i still cant figure it out

whitehat237
12-28-2005, 04:43 PM
I am attempting to install apache 2.2.0 and php 5.1.1 I want to have php5 as a loadable module. I recieve the exact same error as the person above.

Here are the details:

OS is fedora core 4 with kernel 2.6.14-1.1637_FC4

Apache 2.2.0 built as follows:

./configure --prefix=/usr/local/apache --enable-so --enable-module=ssl --enable-shared=ssl --enable-shared=max
make && make install

PHP 5.5.1 built and installed as follows:

./configure --with-apxs2=/usr/local/apache/bin/apxs
make && make install
Am I missing any options here?

When I do apachectl start I get:

httpd: Syntax error on line 235 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: sqlite3AlterFinishAddColumn

ps -ef | grep httpd shows that the web server is not started.

Here's line 234, and 235 in httpd.conf:

AddType application/x-httpd-php .php
LoadModule php5_module modules/libphp5.so

Then it's comments for the next 10 lines. All starting with #


I can post configure script output for both apache and PHP if necessary. I'm not sure what to try next. Perhaps there is already a thread on this topic elswhere?

Any help would be appreciated.

iver2435
04-23-2006, 10:29 PM
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: sqlite3AlterFinishAddColumn

ugh, i cant figure out whats going on, please help!

-Jon

I am getting the same problem as well. Here are my stats:

Fedora Core 4
Apache 2.2
PHP 5.1
<unknown kernel version>

I've tried to figure this one out for a couple days now, but to no avail. It looks as though there is some sort of error in the module file itself, rather than a syntax error.

For my delelopment projects, it is not "critical" that I use Apache 2.2, so I'm am going to try to install the same stuff, except substitute Apache 2.0 instead. I'll let everyone know if I am successful. If this is a bug, it an unfortunate one.