logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: PHP7 on Apache24 using FCGI - doesn't work with vhosts on
Author
Express



Joined: 07 Jan 2013
Posts: 34

PostPosted: Wed 16 Aug '17 14:57    Post subject: PHP7 on Apache24 using FCGI - doesn't work with vhosts on Reply with quote

My config is what is shown here (except I am using VC15 for Apache):
https://www.apachelounge.com/viewtopic.php?t=2394

The issue I have is simple however, if I do not have vhosts enabled, php works perfectly and I get the full expected output of phpinfo();

However, if I enable the vhosts config I get the following error message when trying to access php files:
No input file specified.

First of all I tried putting the "<Files ~ "\.php$">" block in the vhost block which produced the same error message as above.

I have also tried putting the full "<IfModule fcgid_module>" block in the vhost config (from the guide above), which caused apache to give some errors about certain fcgid variables not being allowed in vhost blocks, so I removed them slowly but eventually ended up with the same error message as above (after I had removed FcgidMaxProcesses, FcgidFixPathinfo, FcgidZombieScanInterval and FcgidTimeScore).
Back to top
Express



Joined: 07 Jan 2013
Posts: 34

PostPosted: Wed 16 Aug '17 18:16    Post subject: Reply with quote

Occasionally whilst playing around with the configs I can get it to produce this error instead:
Quote:
[Wed Aug 16 16:04:21.891629 2017] [fcgid:warn] [pid 408:tid 812] (OS 109)The pipe has been ended. : [client ::1:49664] mod_fcgid: get overlap result error, referer: http://localhost/
[Wed Aug 16 16:04:21.891629 2017] [core:error] [pid 408:tid 812] [client ::1:49664] End of script output before headers: test.php, referer: http://localhost/
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Thu 17 Aug '17 11:45    Post subject: Reply with quote

"The pipe has been ended" is somewhat cryptic. It usually means that mod_fcgid.so calls php-cgi.exe, but php-cgi.exe returns nothing: no headers, no body.
Back to top
Express



Joined: 07 Jan 2013
Posts: 34

PostPosted: Thu 17 Aug '17 16:23    Post subject: Reply with quote

I haven't yet figured out how I'd managed to invoke that error, but with that being said I think it always happened whilst I had temporarily turned off vhosts. With vhosts on, I always get the issue as described in the first post.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 28 Aug '17 23:11    Post subject: Reply with quote

You may post a vhost config. The one that works alone and the other one that make it fail.
Back to top


Reply to topic   Topic: PHP7 on Apache24 using FCGI - doesn't work with vhosts on View previous topic :: View next topic
Post new topic   Forum Index -> Other Software