Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-30-2006, 12:05 PM   #1
LQ Newbie
Registered: Apr 2006
Location: Goose Creek, SC
Distribution: SimplyMEPIS 3.3.1-1 (2.6.10)
Posts: 7

Rep: Reputation: 0
Angry Cannot load PHP5 with Apache2

I am a newbie but I don't think this is a newbie problem. I seem to know what I am doing and I have come to a huge bump in the road. I am now at the last stage of trying to use PHP5 (5.1.6) with Apache2 (2.0.59). I guess I got a weak distro (MEPIS) with few compilers. I had to grab byacc, flex, and bison just to get PHP5 and Apache2 to compile. I am just going to post my compile settings for the two and please see if I missed something because I can not figure it out. When I go to restart Apache2 I get this error message:

./apachectl -k restart
Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/ into server: /usr/local/apache2/modules/ undefined symbol: zend_register_list_destructors_ex
Here is my configure settings for Apache2:

./configure --enable-so
I realized I had to enable DSO for PHP5 to work with it. I know I have the proper directives in my httpd.conf setup file to load PHP5. Here it is as follows:

LoadModule php5_module modules/
AddType application/x-httpd-php .php
Apache2 works fine ONLY if I comment out the LoadModule line. Here is my configure settings when I compiled PHP5:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-sockets --with-config-file-path=/usr/local/lib --enable-ftp --with-zlib --with-openssl --enable-exif --with-gd --enable-memory-limit --with-libxml --with-pic --with-jpeg --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-trans-sid --enable-bcmath --with-bz2 --enable-gd-native-ttf
I also downloaded the Zend Optimizer and followed its installation instructions. I then recompiled PHP5 using the above settings and I am still getting the error message from Apache2. Here is the php.ini file settings for Zend:


Also I put php.ini in the folder path that I specified during configure, as noted above.

Sorry, this is long but I am trying to provide as much information as possible. I have tried to Google the solution for hours now and I come up with nothing.

Thank you for any help,
Shawn W

--Big sorry, didn't mean to post this in the General forum too. I though I could delete that one. I just thought the Software section was more appropiate.

Last edited by shrimpwagon; 08-30-2006 at 12:17 PM.
Old 08-30-2006, 03:49 PM   #2
Registered: Dec 2005
Location: Sofia, Bulgaria
Distribution: Arch
Posts: 40

Rep: Reputation: 15
I had too many headaches trying to run php5 with apache2, so what I did was I installed xampp. It's a package containing apache, php, SQL, and more, all bundled into one. Very easy to install, and configure, just read the documentation. This is not an actual solution to your problem, but you could consider this option. It ran like a charm from the first attemp on my machine and did the job for me. I want to say I am not a specialist or anything, so it's just a suggestion.
Old 08-31-2006, 06:01 AM   #3
LQ Newbie
Registered: Apr 2006
Location: Goose Creek, SC
Distribution: SimplyMEPIS 3.3.1-1 (2.6.10)
Posts: 7

Original Poster
Rep: Reputation: 0

Thank you for the reply and advice. I actually just ran 'make clean ' on php-5.1.6. Then I installed php-5.1.4 and it seems to work now. I guess 5.1.6 is bugged. Unforntunatly, I am still having problems parsing xml dom functions. I installed libxml2-2.6.26 before installing php and I added the --with-libxml argument to the php ./configure command. This is so aggrivating. Any advice on this would be great too.

Thank you,
Shawn W


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot load PHP5 with Apache2 shrimpwagon Linux - General 1 08-30-2006 10:48 PM
Apache2 + php5 won't load mustangfanatic Slackware 9 04-19-2006 12:45 PM
Apache2 and PHP5 SpiderIRE Linux - Software 3 09-30-2005 03:25 PM
Apache2 and PHP5 rul3r Slackware 7 09-11-2005 05:21 PM
Apache2 + PHP5.0.3 24jedi *BSD 1 07-21-2005 03:07 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 PM.

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