You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Peter Michaux <pe...@gmail.com> on 2009/10/18 22:26:35 UTC

[users@httpd] Building Apache 2.2.14 with mod_fastcgi 2.4.6 on OS X 10.5.8

Hi,

I'm trying to build Apache httpd 2.2.14 with mod_fastcgi 2.4.6 on OS X
10.5.8. I can build and install httpd seemingly fine but I can't seem
to build mod_fastcgi successfully with httpd even though I've tried a
variety of ways. I did try joining the fastcgi mailing list and
sending this message there. Although I received confirmation that I am
a member of that list it appears I am not. I'm hopeful someone here
will be able to help.

Looking at the mod_fastcgi INSTALL notes, I've tried the APACI
(autoconf) method. I think those notes are out-of-date and don't work
with the newest httpd. The notes talk about --activate-module which is
not a configure option for httpd. The notes also talk about a
directory <apache_dir>/src/modules which doesn't exist in the Apache
httpd source distribution.

Below is what I thought would be my best attempt

   rm -rf ~/tmp ~/myapache
   mkdir ~/tmp
   cd ~/tmp

   cp ~/Desktop/downloaded-src/httpd-2.2.14.tar.gz ~/tmp
   tar xvzf httpd-2.2.14.tar.gz

   cp ~/Desktop/downloaded-src/mod_fastcgi-2.4.6.tar.gz ~/tmp
   tar xvzf mod_fastcgi-2.4.6.tar.gz

   mv ~/tmp/mod_fastcgi-2.4.6 ~/tmp/httpd-2.2.14/modules/fastcgi

   cd ~/tmp/httpd-2.2.14

   ./configure --prefix=${HOME}/myapache \
               --enable-module=fastcgi \
               --enable-mods-shared=fastcgi

   make
   make install

After the above is complete, I don't see any build output indicating
fastcgi was built. I also don't see mod_fastcgi.so in
~/myapache/modules.

The Apache httpd server does work. I can start it as a non-root user
listening to port 3000, stop it, view static pages and it will run
plain cgi-bin scripts.

Any ideas how I can successfully build Apache httpd with mod_fastcgi on OS X?

Thank you,
Peter

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Building Apache 2.2.14 with mod_fastcgi 2.4.6 on OS X 10.5.8

Posted by Peter Michaux <pe...@gmail.com>.
On Sun, Oct 18, 2009 at 2:04 PM, Peter Michaux <pe...@gmail.com> wrote:
> On Sun, Oct 18, 2009 at 2:01 PM, Peter Schober
> <pe...@univie.ac.at> wrote:
>> * Peter Michaux <pe...@gmail.com> [2009-10-18 22:27]:
>>> Any ideas how I can successfully build Apache httpd with mod_fastcgi
>>> on OS X?
>>
>> Have you looked at fcgid instead?
>> http://httpd.apache.org/mod_fcgid/
>
> Thanks for the thought. I cannot really consider anything other than
> mod_fastcgi since that is what the project I'm working on is using.

I should be more clear. There is an existing apache configuration file
that I want to use for the project that I did not write. I'd like to
be able to use that configuration file as it is because it changes
from time-to-time and maintaining my own configuration file would be
less than ideal (though possible, I suppose.) That configuration file
uses mod_fastcgi. I'd like to explore using mod_fastcgi until it seems
hopeless.

Thanks again,
Peter

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Building Apache 2.2.14 with mod_fastcgi 2.4.6 on OS X 10.5.8

Posted by Peter Michaux <pe...@gmail.com>.
Hi Peter,

On Sun, Oct 18, 2009 at 2:01 PM, Peter Schober
<pe...@univie.ac.at> wrote:
> * Peter Michaux <pe...@gmail.com> [2009-10-18 22:27]:
>> Any ideas how I can successfully build Apache httpd with mod_fastcgi
>> on OS X?
>
> Have you looked at fcgid instead?
> http://httpd.apache.org/mod_fcgid/

Thanks for the thought. I cannot really consider anything other than
mod_fastcgi since that is what the project I'm working on is using.

Peter

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Building Apache 2.2.14 with mod_fastcgi 2.4.6 on OS X 10.5.8

Posted by Peter Schober <pe...@univie.ac.at>.
* Peter Michaux <pe...@gmail.com> [2009-10-18 22:27]:
> Any ideas how I can successfully build Apache httpd with mod_fastcgi
> on OS X?

Have you looked at fcgid instead?
http://httpd.apache.org/mod_fcgid/

-peter

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Building Apache 2.2.14 with mod_fastcgi 2.4.6 on OS X 10.5.8

Posted by Peter Michaux <pe...@gmail.com>.
Hi Nick

On Sun, Oct 18, 2009 at 2:05 PM, Nick Kew <ni...@webthing.com> wrote:
>
> On 18 Oct 2009, at 21:26, Peter Michaux wrote:
>
>> Looking at the mod_fastcgi INSTALL notes, I've tried the APACI
>> (autoconf) method.
>
> That's very, very old (i.e. last-century).  Use apxs to build modules.

Thanks for that confirmation. I thought that might be the case but
didn't know for sure.

I very happy that I now have mod_fastcgi working. In case the archives
of this thread are useful to anyone. I had success with the following
installation procedure. The very last two character, the extension,
"la" were what I was missing before. I was trying "so" before and had
no luck. I took a guess that "la" might worked and it seemed to.

Thanks again,
Peter

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

rm -rf ~/tmp ~/myapache
mkdir ~/tmp

cd ~/tmp
cp ~/Desktop/downloaded-src/httpd-2.2.14.tar.gz ~/tmp
tar xvzf httpd-2.2.14.tar.gz
cd httpd-2.2.14
./configure --prefix=${HOME}/myapache \
            --enable-modules=all \
            --enable-mods-shared=all
make
make install

sed -i '.old' -e 's/Listen 80/Listen 3000/g' \
    ~/myapache/conf/httpd.conf
chmod +x ~/myapache/cgi-bin/*

export PATH=${HOME}/myapache/bin:${HOME}/myapache/sbin:${PATH}

apachectl start
# everything seems to be working fine here
apachectl stop


cd ~/tmp
cp ~/Desktop/downloaded-src/mod_fastcgi-2.4.6.tar.gz ~/tmp
tar xvzf mod_fastcgi-2.4.6.tar.gz
cd mod_fastcgi-2.4.6

apxs -o mod_fastcgi.so -c *.c

# can configure and run FastCGI programs here with mod_fastcgi

apxs -i -a -n fastcgi mod_fastcgi.la

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Building Apache 2.2.14 with mod_fastcgi 2.4.6 on OS X 10.5.8

Posted by Nick Kew <ni...@webthing.com>.
On 18 Oct 2009, at 21:26, Peter Michaux wrote:

> Looking at the mod_fastcgi INSTALL notes, I've tried the APACI
> (autoconf) method.

That's very, very old (i.e. last-century).  Use apxs to build modules.

Alternatively, use mod_fcgid, which has been donated to the ASF
and is now maintained by the apache developers.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org