Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th September 2008, 10:04 PM
strannik Offline
Registered User
 
Join Date: Jul 2008
Posts: 5
fedora8, apache2, php5, mod_fcgid - doesn't work at all

all of it has been installed via rpm - latest available versions.

in httpd.conf -

AddHandler fcgid-script .php5
FCGIWrapper /usr/bin/php .php5


(i have php4 installed as a module under /usr/local, it works just fine).

When i try to open a phpinfo page, this is what i get in the logs:

[Wed Aug 27 03:06:53 2008] [info] mod_fcgid: server
/var/vwww/dev/phpinfo.php5(1790) started
[Wed Aug 27 03:06:53 2008] [warn] (104)Connection reset by peer:
mod_fcgid: read data from fastcgi server error.
[Wed Aug 27 03:06:53 2008] [error] [client 80.91.178.195] Premature
end of script headers: phpinfo.php5
[Wed Aug 27 03:06:56 2008] [notice] mod_fcgid: process
/var/vwww/dev/phpinfo.php5(1790) exit(communication error), terminated
by calling exit(), return code: 0

I've been doing some googling for some time now, and I can't find any
info on this.
Suexec is not loaded into apache, btw.

Does anybody have any info on this? I'm really lost with this one...

the funny thing is that if i swap php4 and php5 (php5 module, php4 - fastcgi) everything works ok, but thats not the way i need it to work....
Reply With Quote
  #2  
Old 8th September 2008, 11:29 PM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
see
http://httpd.apache.org/docs/2.2/
http://dev.mysql.com/doc/
http://www.php.net/docs.php
and look through
http://www.yolinux.com/TUTORIALS/
http://www.howtoforge.com/howtos/apache
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
  #3  
Old 9th September 2008, 07:29 AM
strannik Offline
Registered User
 
Join Date: Jul 2008
Posts: 5
Thanks for the links. I know HOW to get it done and I have it working the other way arround - php4 via mod_fcgid and php5 as an apache module. As soon as I switch them - it crashes. PHP5 is installed via yum and I have checked that it have been built with fast_cgi support. PHP4 has been built form source with fast_cgi support also.

I'm lost with this error message - I have found only several mentions of it, and no solutions that were offered helped me in my case. so the problem is when I try to get the rpm versions of php5 and mod_fcgid to work together...
Reply With Quote
  #4  
Old 10th September 2008, 11:37 AM
strannik Offline
Registered User
 
Join Date: Jul 2008
Posts: 5
hasn't anybody else faced this issue before?
Reply With Quote
  #5  
Old 10th September 2008, 05:37 PM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
well you can use yum to remove the new packages then install the old ones and add a line to /etc/yum.conf
exclude=Apache* php*

add the correct name for each of them
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
  #6  
Old 10th September 2008, 05:47 PM
strannik Offline
Registered User
 
Join Date: Jul 2008
Posts: 5
why would I want to remove the new packages? i have it working using the exact same packages, just swapping the php versions.
php4+mod_fcgid = works great
apache+libphp4 = works great
apache+libphp5= works great
php5+mod_fcgid = crashes and burns.....
Reply With Quote
  #7  
Old 10th September 2008, 08:06 PM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
my fault i was thinking of a diff. thread .
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
Reply

Tags
apache2, fedora8, modfcgid, php5, work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 + mod_fcgid = strange problem Zlobniy Shurik Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 0 25th April 2009 06:41 PM
PHP5 DOM - Apache2 - fedora8 macm Using Fedora 0 1st September 2008 08:58 PM
Apache2 and PHP5.1.6 Dygear Using Fedora 4 29th October 2006 11:43 AM
apache2 and php5 help nettro Servers & Networking 13 21st May 2006 04:00 PM


Current GMT-time: 23:14 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat