LinuxQuestions.org
Help answer threads with 0 replies.
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 06-18-2006, 05:10 PM   #1
Voltar
Member
 
Registered: Jan 2006
Location: Bakersfield, California
Distribution: CentOS 5.3, FreeBSD 7.2, Fedora 11
Posts: 83

Rep: Reputation: 15
PHP FastCGI/Apache Module Question....


Ok, I have successfully compiled PHP 5.1.4 with MySQL and loads of other stuff. Question is, I want to run Apache 2 and Lighttpd at the same time on the same machine.

Only thing is, Lighttpd uses FastCGI PHP and I've always had an Apache module for PHP.

Now would there be an easy way to do this? If I compiled and installed an Apache module and then just recompiled for the FastCGI and installed would it work? Correctly?

Any thoughts, ideas, comments welcome.
 
Old 06-20-2006, 03:12 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
It sounds like you're over-engineering the solution. Why do you need to run both Apache and Lighttpd at the same time?
 
Old 06-20-2006, 06:01 PM   #3
Voltar
Member
 
Registered: Jan 2006
Location: Bakersfield, California
Distribution: CentOS 5.3, FreeBSD 7.2, Fedora 11
Posts: 83

Original Poster
Rep: Reputation: 15
Well I have Apache on port 80, and I was going to use Lighttpd on 8080 and only for my web administration scripts. I would use Lighttpd only, but I have scripts that make massive use of .htaccess files and rewrite rules.
 
Old 06-20-2006, 11:43 PM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Well, you can use PHP pretty much how you like in Apache - you can either load it as a module or you can access it as a CGI app. I believe that the latter case shouldn't require Apache to be recompiled, you just specify the path to the PHP executable, but I've only ever used PHP as a module so I'm not 100% certain of this. But what you propose sounds like a solution.
 
Old 06-22-2006, 12:45 PM   #5
Voltar
Member
 
Registered: Jan 2006
Location: Bakersfield, California
Distribution: CentOS 5.3, FreeBSD 7.2, Fedora 11
Posts: 83

Original Poster
Rep: Reputation: 15
Ok, I compiled php for an apache module and installed it then recompile for fastcgi, and installed. I'm not seeing anything go wrong yet, so I'm guessing it's working ok.
 
  


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
Problems installing fastcgi on Fedora Core 3/Apache segmentation 11 faults bax Linux - Software 3 05-29-2005 10:38 PM
Apache + PHP Module chrisk5527 Linux - General 16 04-06-2004 06:09 AM
Installing PHP as an apache module? birv Linux - Software 2 04-05-2004 12:22 PM
Can't load php module in Apache pepino Linux - Newbie 2 10-21-2003 10:26 AM
apache and php module mod_php.so kngharv Linux - General 1 11-21-2001 08:39 PM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration