Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

php-cgi - why can't Debian find it ? (Or Google)

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Jethro_UK
Posts: 37
Joined: 2014-08-12 09:31

php-cgi - why can't Debian find it ? (Or Google)

#1 Post by Jethro_UK »

No idea why, but for some reason my system is expecting to find "php-cgi".

I have php5 and php7 installed.

I know they should somehow create a link so that "php-cgi" redirects to one of them. But they haven't (both reinstalled via synaptic).

Thanks to this issue, I can't install "pi-hole", as the debconf part of the script vanishes up it's own wazzoo (took me a while to trace that one).

Predictably Google is useless ... I can't seem to find a straight answer as to how to fix this issue beyond "install php5". Which I have. Many times.

I *do* have a /usr/bin/php-cgi on my system.

pi-hole (pihole) used to work too, so something has broken my system in the interim.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: php-cgi - why can't Debian find it ? (Or Google)

#2 Post by dasein »

Jethro_UK wrote:Predictably Google is useless
Really?? So you're claiming that not one of the nearly one million hits returned for "pgp-cgi" at Google got you any closer to an answer. Yours must be one truly unique question.

But since you provided precisely zero details about what your "problem" might be, perhaps you should return to those ~1M hits. Maybe some reading will help you formulate an actual question.

Jethro_UK
Posts: 37
Joined: 2014-08-12 09:31

Re: php-cgi - why can't Debian find it ? (Or Google)

#3 Post by Jethro_UK »

Problem:

running

Code: Select all

/usr/bin/debconf-apt-progress --logfile logdc.log -- apt-get --yes --no-install-recommends install dnsmasq php-cgi 
results in :

Code: Select all

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-cgi
However, using synaptic to look for "php-cgi" I discover that php5-cgi is installed.



Googling suggest that "php-cgi" should not be used as php5-cgi provides that functionality. All advice is to install php5 and it should take care of it. It doesn't.

I haven't uninstalled anything.

So the question is what steps do I need to take to make the debconf error go away ? I have already (re)installed php5, and apache2.

Running

Code: Select all

apt-cache search php-cgi
returns nothing.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: php-cgi - why can't Debian find it ? (Or Google)

#4 Post by stevepusser »

php7 is not available in Debian stable, so that brings up the question as to what version of Debian you're running, and the chance that php might be broken somehow.
MX Linux packager and developer

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: php-cgi - why can't Debian find it ? (Or Google)

#5 Post by GarryRicketson »

I can't install "pi-hole", as the debconf part of the script vanishes up it's own wazzoo (took me a while to trace that one).
I couldn't find the "pi-hole" thing in any Debian repositories either,...and since I also
don't know what a "wazzoo" is, ....well guess, if I don't know the answer,
best not say anything,...
so something has broken my system in the interim
Indeed, and as Steve mentions, without knowing what version of Debian
you are using, ....who can know the answer ?

User avatar
Thorny
Posts: 542
Joined: 2011-02-27 13:40

Re: php-cgi - why can't Debian find it ? (Or Google)

#6 Post by Thorny »

GarryRicketson wrote: ....well guess, if I don't know the answer,
best not say anything,...
Always good advice Garry but even though I don't know the answer I still want to comment, hopefully it might help Jethro_UK.

I looked up pi-hole, it appears to be used as DNS and network ad-blocking system on a RaspberryPi. In my searching I found they also seem to have a question and answer forum and a FAQ at the site. With specialised software (that is not part of Debian) it usually is a good idea to ask questions at the actual site, it appears from my brief reading that developers participate in the answers there.

I looked up "wazzoo" too, in this case it seems to be a metaphor for "didn't work".

I don't know why the OP didn't mention anything about Raspberry Pi or what they are running on it. However, I think it might be more productive to ask about the pi-hole software at the site where people would be more familiar with it.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: php-cgi - why can't Debian find it ? (Or Google)

#7 Post by stevepusser »

Gee Garry, the top result on Google for "wazoo" will let let you know what it is. It's the same thing that "black hole" refers to in Russian slang, which is why they refer to them as "frozen stars" instead.
MX Linux packager and developer

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: php-cgi - why can't Debian find it ? (Or Google)

#8 Post by GarryRicketson »

Actually,...well , bad excuse, but I was feeling really lazy ,and didn't do a search
on that, I will take your word on it though,...
Any way, if it is rasberry pi, and not Debian, and with the pi-hole, and wazoo's , etc,...
I can't help on this,...only maybe a suggestion:
Using Debian, with apache2, I did not have any problems setting up a
"cgi" page, I only did it on my "localhost" , mostly just experimenting, there
are some security risks using CGI, and I do not understand what is involved
well enough to put it on the online server,...
Actaully , there is a thread on that here on the forum,...but if the OP is not
using Debian, with apache2 it wouldn't do them any good. I don't remember
using any "php-cgi" either. There were some "hoops" to jump through in getting
it to "find" the CGI page,...Any way, I found everything I needed doing searches,
but used "startpage.com" instead of "google",...for what ever that is worth

Post Reply