LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-04-2013, 06:14 AM   #1
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Rep: Reputation: Disabled
Question Installing mod_fcgid while apache is installed


Hey guys... I need to enable this mod_cgid for apache2.2 on ubuntu 11.04. It is not possible to do anything with apt-get coz this server is out of ubuntu support date and kinda untouchable so we can't upgrade it right now (I know, it's terrible...) anyway, I had to get the apache fast cgi mode package here:

http://httpd.apache.org/download.cgi#mod_fcgid

and now, I have NO IDEA how to add it to apache! In the manual, it says::

2) Installing mod_fastcgi manually
==================================

1. Copy or move the mod_fastcgi distribution directory to
<apache_dir>/src/modules/fastcgi.

2. Add the FastCGI module to <apache_dir>/src/Configuration. Note
that modules are listed in reverse priority order --- the ones that
come later can override the behavior of those that come earlier. I
put mine just after the mod_cgi entry.

AddModule modules/fastcgi/libfastcgi.a

3. From the <apache_dir>/src directory, reconfigure and rebuild Apache.

<apache_dir>/src$ ./Configure
<apache_dir>/src$ make

Install the new httpd.

4. Edit the httpd configuration files to enable your FastCGI
application(s). See docs/mod_fastcgi.html for details.

5. Stop and start the server.

$ kill -TERM `cat <run_dir>/logs/httpd.pid`
$ <run_dir>/bin/httpd -f <run_dir>/conf/httpd.conf


But I can not find this apache directory, actually don't know what this guy means... Someone else had done my server about two years ago and now he's left, so I really need to know where I should put this module, so if anyone knows anything, let me know...
Good luck and thanks
 
Old 07-04-2013, 07:42 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Hi,

Where did you find these instructions?
From the README that comes with the mod_fcgid sources:
Quote:
Unix Build Instructions
-----------------------

To build and install as a DSO outside of the httpd source
build, from the fcgid source root directory, simply;

./configure.apxs
make
make install

If apxs is not in your path, or you are building to a different
httpd installation, or your distribution has an alternate script
name for apxs (e.g. apxs2), then either set the APXS environment
variable, or use the syntax;

APXS=/path/to/bin/apxs ./configure.apxs

so the desired configuration is used.
If configure can't find apxs2 (the ubuntu name of apxs), give:
Code:
APXS=/usr/bin/apxs2 ./configure.apxs
Regards
 
1 members found this post helpful.
Old 07-04-2013, 08:14 AM   #3
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Original Poster
Rep: Reputation: Disabled
Thanks a lot, you are awesome... I don't know why I don't have apxs, I should go read documents about it, if you have anything about it I'd appreciate

Quote:
Configuring mod_fcgid for APXS in /usr/bin/apxs2
./configure.apxs: 26: /usr/bin/apxs2: not found
./configure.apxs: 37: /usr/bin/apxs2: not found
./configure.apxs: 38: /usr/bin/apxs2: not found
./configure.apxs: 39: /usr/bin/apxs2: not found
./configure.apxs: 40: /usr/bin/apxs2: not found
./configure.apxs: 41: /usr/bin/apxs2: not found
./configure.apxs: 41: /usr/bin/apxs2: not found
./configure.apxs: 45: /usr/bin/apxs2: not found
Detecting features
And it is not anywhere else
Will be back
 
Old 07-04-2013, 08:36 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
You may need to install it
 
1 members found this post helpful.
Old 07-04-2013, 09:44 AM   #5
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Original Poster
Rep: Reputation: Disabled
Oh, thanks... so this is a bigger problem :-| coz as I said this server is really old and it is not easy to install things on it. I should try to figure out something else.
By the way does fast CGI "REALLY" increases the response time? honestly we have trouble with response time of Request Tracker on this server and trying to improve it, fast CGI is something I thought can help...
 
Old 07-04-2013, 11:24 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Quote:
By the way does fast CGI "REALLY" increases the response time? honestly we have trouble with response time of Request Tracker on this server and trying to improve it, fast CGI is something I thought can help...
I don't know much about RT, so I can't be of help
Better read the appropriate RT documentation
 
1 members found this post helpful.
Old 07-05-2013, 01:33 AM   #7
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Original Poster
Rep: Reputation: Disabled
Hm... I will read it and put results here
 
  


Reply



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
Apache + mod_fcgid + mod_security with chroot enabled. compix Linux - Server 1 06-17-2013 11:36 PM
When apache compile with mod_fcgid, can I remove option mod_cgi, mod_cgid? tquang Linux - Server 1 12-27-2012 07:15 AM
Problems with Centos 6.2, apache and publish sites with mod_fcgid juanjillo Linux - Server 1 03-13-2012 09:53 AM
[SOLVED] Need some help configuring Apache to use mod_fcgid instead of mod_php dizzi Slackware 1 10-23-2010 08:27 PM
apache 2.2.8, mod_fcgid 2.2 and php-cgi 5.2.6 processes die 70mas Linux - Server 2 03-17-2008 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:55 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
Open Source Consulting | Domain Registration