LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2006, 10:55 AM   #1
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Rep: Reputation: 30
help: cannot load php5 module, compile from source


Here is the information of my php installation:
OS: centos 4.2, apache server 2.2.0, PHP: 5.1.2
apache is running correctly without php,

I compiled php's source code as follows:
./configure --with-apxs2 path-of-apxs --with-mysql path-of-mysql
make
make install

then created php.ini from php.ini-recommend (came with the source code)
modified httpd.conf and here is what I have in httpd.conf:
LoadModule php5_module modules/libphp5.so
AddModule mod_php5.c

<IfModule dir_module>
DirectoryIndex index.php default.php index.html index.htm
</IfModule>

AddType application/x-httpd-php .php .php3

Then, I tried to start apache but got an error message:
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: zend_register_list_destructors_ex

It seems like a code problem, but I am not sure and have no
clue whether I could debug it by looking into the code.
Maybe there is an easy solution from you guys.
I googled but got no useful information :-(

Appreciate your help.
 
Old 02-18-2006, 05:54 AM   #2
thermite_1033
Member
 
Registered: May 2004
Location: Antwerp, Belgium
Distribution: slackware
Posts: 112

Rep: Reputation: 18
looks like zend-engine isn't configure properly

this is my configure options of php for my slackware box
try to modifie this to your needs and compile it again

EXTENSION_DIR=/usr/lib/php/extensions
./configure \
--with-apxs2=/usr/sbin/apxs \
--enable-force-cgi-redirect \
--enable-fastcgi \
--with-ncurses \
--with-readline \
--prefix=/usr \
--enable-discard-path \
--with-config-file-path=/etc/apache2 \
--with-openssl \
--with-zlib=/usr \
--enable-bcmath \
--with-bz2 \
--with-pic \
--enable-calendar \
--enable-ctype \
--with-curl=shared \
--enable-dba=shared \
--with-gdbm \
--with-db3 \
--with-inifile \
--with-flatfile \
--enable-dio \
--enable-ftp \
--with-gd=/usr \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--with-gettext=/usr \
--with-gmp=shared \
--with-mbstring \
--with-mcrypt=/usr \
--with-mime-magic \
--with-mysql=/usr \
--with-mysql-sock=/var/run/mysql/ \
--without-mysqli \
--with-pspell=/usr \
--enable-shmop \
--enable-soap \
--enable-sockets \
--with-regex=php \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-xml \
--with-libxml-dir=/usr \
--with-xsl=/usr \
--with-pear \
--enable-inline-optimization \
--enable-memory-limit \
--enable-zend-multibyte \
--enable-shared \
--disable-static \
--disable-debug \
 
Old 02-18-2006, 12:27 PM   #3
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Thanks very much.
I tried to recompile PHP with more options
and it worked this time
Still don't know why this would be the case though.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't compile/load nvnet module kryptobs2000 Slackware 2 07-20-2004 12:50 PM
i want to compile and load a module into kernel ramya272 Linux - Newbie 3 02-21-2004 10:17 AM
I have to build , load and compile a FAT fs module into the kernel.wat should i do? ramya272 Linux - Newbie 2 02-06-2004 09:46 AM
To compile or to load as module ? synapse Linux - Newbie 3 01-30-2004 04:41 AM
Compile a dynamic MySQL module/load into PHP dleone Linux - General 2 01-31-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration