BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 4th, 2004, 09:22 PM
applefans applefans is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 8 applefans User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 56 sec
Reputation Power: 0
Question Apache 2 and PHP Startup Problem

I recently installed Apache 2 (2.0.49) and PHP 4 (4.3.7) from the Ports Collection...but when I tried to start Apache up I get an error.

It says: apachectl start
Syntax error on line 284 of /usr/local/etc/apache2/httpd.conf:
Cannot load /usr/local/libexec/apache2/libphp4.so into server: /usr/local/libexec/apache2/libphp4.so: Undefined symbol "__gmpz_cdiv_qr_ui"

In the config file: LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule php4_module libexec/apache2/libphp4.so

It looks perfectly fine to me but do you know why won't it start up?

Thanks!

Reply With Quote
  #2  
Old June 5th, 2004, 06:37 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Have you installed mod_php, or did you compile php support statically into Apache?

Reply With Quote
  #3  
Old June 5th, 2004, 02:37 PM
applefans applefans is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 8 applefans User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 56 sec
Reputation Power: 0
Quote:
Originally Posted by stevengs
Have you installed mod_php, or did you compile php support statically into Apache?


I installed mod_php4 from /usr/ports/www/mod_php4 from a freshly updated Ports Collection.

Reply With Quote
  #4  
Old June 28th, 2004, 04:41 AM
ezradibiase ezradibiase is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 ezradibiase User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by applefans
I installed mod_php4 from /usr/ports/www/mod_php4 from a freshly updated Ports Collection.


Hi all!
Applefans, we have the same problem. Did you solved this "quest", and how. We are going crazy.

Thanks in advance.

Reply With Quote
  #5  
Old June 28th, 2004, 10:18 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
which modules are compiled into your Apache?

apachectl -l

if mod_so is not compiled in, you cannot use dynamically loaded modules...

-Steven

Reply With Quote
  #6  
Old June 29th, 2004, 12:33 PM
bentman78 bentman78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 10 bentman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
also, what did you coplie into mod_php? I recently found out the Oracle support for the mod_php port is broken and had to recomplie it without Oracle support.

Reply With Quote
  #7  
Old July 14th, 2004, 02:53 AM
czanik czanik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 czanik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
quick fix

This problem is caused by compiling in GMP support. If you do not need double precision math support (as some of my users need...), then you can turn it off, and php (and this way Apache) works fine. If you need it, then cvsup every day, and watch if port lang/php4 or math/libgmp4 is changed.

Reply With Quote
  #8  
Old July 14th, 2004, 02:55 AM
czanik czanik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 czanik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ooops, I did not mention, that you have to recompile lang/php4 without gmp support...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Apache 2 and PHP Startup Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway