LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-21-2006, 10:44 PM   #1
Buntoro
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
apache2 and php5 won't start


Hi All..

I try to install apache2 and php5 in my slack.
the problem is....., after edit httpd.conf (put LoadModule php5_module /usr/local/apache2/modules/libphp5.so), show message

#/usr/local/apache2/bin/apachectl start

httpd: Syntax error on line 54 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: php_escape_html_entities

why's that...?????
 
Old 07-22-2006, 06:57 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,562

Rep: Reputation: 140Reputation: 140
tell us how you compiled and installed apache and php.
 
Old 07-23-2006, 11:48 PM   #3
Buntoro
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
I just do like the instalation manual.... (INSTALL.txt File)

Apache 2.0
1. gzip -d httpd-2.2.2.tar.gz
2. tar xvf httpd-2.2.2.tar
3. gunzip php-5.1.4.tar.gz
4. tar -xvf php-5.1.4.tar
5. cd httpd-2.2.2
6. ./configure --enable-so
7. make
8. make install

After this step... apache2.0 was working

9. cd ../php-5.1.4
10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
11. make
12. make install
13. cp php.ini-dist /usr/local/lib/php.ini
14. I edit /usr/local/apache2/conf/httpd.conf
put LoadModule php5_module modules/libphp5.so on
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

16. /usr/local/apache2/bin/apachectl start

That's all i do....
 
Old 08-02-2006, 01:15 PM   #4
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Rep: Reputation: 15
I am running on RHEL3 with Apache 2.0.46 and get the exact same problem. Any resolution would be great.
 
Old 08-03-2006, 03:43 PM   #5
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Rep: Reputation: 15
I was able to solive this problem on my system with apache 2.2.3 and php 5.1.4

Build php like this:

./configure --with-apxs2 --enable-so --with-xml --with-libxml --enable-xml

(If you need mysql, which I did, also put in --with-mysql)

Make certain that you are running the version of apache from your expected location as well as the configuration file. You can force this with the following command:

./usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf

The version of apache I was running (2.0.46) was my problem.

In your httpd.conf file you will want each of these:

DirectoryIndex index.html index.php #Add index.php to this line

LoadModule php5_module modules/libphp5.so
AddHandler php5-script php
AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps
AddType text/html php
 
Old 08-06-2006, 11:55 AM   #6
compgeek
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
I am the new mamber here,don't know much abt it ,i was having the same problem,but i tried this to solve and now php and apache are working fine


try this :
/etc/rc.d/init.d/httpd restart
best of luck
 
Old 08-10-2006, 04:34 PM   #7
nuro305
Member
 
Registered: Mar 2004
Location: New Mexico
Distribution: FC4, SuSE 9.3 Pro, SuSE 10.1, SLED 10 SDK
Posts: 128

Rep: Reputation: 15
I'm getting the same type of error trying to load ColdFusion 6.1 into Apache 2.2, except it's for the mod_jrun20.so file.

This has to do with Apache 2.2! I saved my old hard drive where EVERYTHING is working fine and the ONLY difference is Apache 2.0 V/S 2.2.

I had everything working fine in Apache 2.0 and I can't for the life of me figure out how to get this CF library loaded in Apache 2.2.

Any help here is MUCH appreciated....

Also: The above commend just re-started Apache for that system...
 
Old 08-11-2006, 09:09 AM   #8
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Rep: Reputation: 15
I posted this above, but for me to get php5 to work I had to build it like this:

./configure --with-apxs2 --enable-so --with-xml --with-libxml --enable-xml

Once I had that working, there was some missing functionality in my old version of apache, but the 2.2.x version solved it. I believe the critical part of the build is the --enable-so portion.
 
  


Reply


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
Apache2 and php5 not working RestInPieces Fedora 2 06-27-2006 07:27 PM
SLES9/apache2 and PHP5 scabrous1 SUSE / openSUSE 1 12-15-2005 06:14 AM
Apache2 and PHP5 SpiderIRE Linux - Software 3 09-30-2005 04:25 PM
Apache2 and PHP5 rul3r Slackware 7 09-11-2005 06:21 PM
Apache2 + PHP5.0.3 24jedi *BSD 1 07-21-2005 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration