SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 25th, 2000, 11:16 PM
DaveBaker DaveBaker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Orlando FL
Posts: 3 DaveBaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yow, I cannot get PHP4 built as a loadable module on my Linux dedicated server. I compile Apache (1.3.12), I see the binary file apxs in the /usr/local/apache/bin directory, then I run the following commands to build PHP:

./configure
--with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache
--with-mysql=/usr/local/mysql
--with-xml
--enable-track-vars
--enable-magic-quotes
--enable-debugger
<Enter key>

(from Professional PHP Programming, page 25)

and then this is what I get back:

...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path of apxs by using --with-apxs=/absolute/path/to/apxs

--------------

Perl is installed and works just fine, thank you. apxs is right where it 'spoda be, with the absolute path being used.

Can anybody think what might be the trouble here?

The configure script seems to be getting the same results that one gets when manually running apxs.pl with no parameters-- it just spits out the usage instructions, which is crashing the configure script.

THANKS ...

Dave Baker

Reply With Quote
  #2  
Old August 26th, 2000, 02:54 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How did you install apache? What configure options?

Reply With Quote
  #3  
Old August 28th, 2000, 09:20 PM
DaveBaker DaveBaker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Orlando FL
Posts: 3 DaveBaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I, er, uh, didn't include mod.so when I compiled Apache ...

Fixed 'er right up.

Thanks!

(To find out whether mod.so has been compiled into Apache -- this module is necessary in order to use dynamically-loaded modules -- use the "-l" option when calling the Apache binary (httpd) from a command line:

/path/to/apache_binary/httpd -l

This will produce a list all modules that have been compiled into your Apache binary; mod.so oughta be included. If not, recompile Apache with mod.so included.)

[This message has been edited by DaveBaker (edited October 06, 2000).]

Reply With Quote
  #4  
Old December 27th, 2000, 12:18 PM
davebryant davebryant is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Austin, TX, USA
Posts: 11 davebryant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by DaveBaker:
I, er, uh, didn't include mod.so when I compiled Apache ...

Fixed 'er right up.

Thanks!

(To find out whether mod.so has been compiled into Apache -- this module is necessary in order to use dynamically-loaded modules -- use the "-l" option when calling the Apache binary (httpd) from a command line:

/path/to/apache_binary/httpd -l

This will produce a list all modules that have been compiled into your Apache binary; mod.so oughta be included. If not, recompile Apache with mod.so included.)

[This message has been edited by DaveBaker (edited October 06, 2000).]
[/quote]


Reply With Quote
  #5  
Old December 27th, 2000, 12:20 PM
davebryant davebryant is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Austin, TX, USA
Posts: 11 davebryant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by DaveBaker:
I, er, uh, didn't include mod.so when I compiled Apache ...

Fixed 'er right up.

Thanks!

(To find out whether mod.so has been compiled into Apache -- this module is necessary in order to use dynamically-loaded modules -- use the "-l" option when calling the Apache binary (httpd) from a command line:

/path/to/apache_binary/httpd -l

This will produce a list all modules that have been compiled into your Apache binary; mod.so oughta be included. If not, recompile Apache with mod.so included.)

[This message has been edited by DaveBaker (edited October 06, 2000).]
[/quote]

I did this, also included path to apxs, reinstalled perl5 (latest), included the dynamic build manually with --enable-rule=SHARED_CORE, have mod.so.c and http_core.c in my httpd -l report. So, why does it still give me the exact same message as above? Any help would be appreciated....I've done this about 10 times and this is the first time I've never been able to work through it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > apxs crashing my installation of PHP as a loadable module


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 4 hosted by Hostway