Solved application/x-httpd-php

There are some things I hate on all systems. One of them are mime-types. Firefox and palemoon can't open application/x-httpd-php type. Where is it stored and where I can make an entry? (Maybe, how?).
Ok, the file is .mozilla/firefox/XXXXXXX.default/mimeTypes.rdf. But I have no clue, what should I put in.
And I dark remember, there is a system "mime-file"?

No browser can open adminer. I don't what is changed? Something with adminer or php? Til a few days ago it was working.....
(and it has surely nothing to do with my problems with /usr/share - Thread 66050).
 
Ok, I have application/x-httpd-php in both browser. Both try to download the file, and show the startside of adminer in cryptic signs. It seems it is a problem with php71. Apache24 is starting without error message.
That is what I see:
Code:
W){unset($jg[$z][$Yd]);if(is_array($W)){$jg[$z][stripslashes($Yd)]=$W;$jg[]=&$jg[$z][stripslashes($Yd)];}else$jg[$z][stripslashes($Yd)]=($Vc?$W:stripslashes($W));}}}}function bracket_escape($v,$Oa=false){static$ki=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return strtr($v,($Oa?array_flip($ki):$ki));}function min_version($Qi,$xe="",$h=null){global$g;if(!$h)$h=$g;$eh=$h->server_info;if($xe&&preg_match('~([\d.]+)-MariaDB~',$eh,$C)){$eh=$C[1];$Qi=$xe;}return(version_compare($eh,$Qi)>=0);}function charset($g){return(min_version("5.5.3",0,$g)?"utf8mb4":"utf8");}function script($nh,$ji="\n"){return"$nh$ji";}function script_src($Ei){return"\n";}function nonce(){return' nonce="'.get_nonce().'"';}function target_blank(){return' target="_blank" rel="noreferrer noopener"';}function h($Q){return str_replace("\0","�",htmlspecialchars($Q,ENT_QUOTES,'utf-8'));}function nbsp($Q){return(trim($Q)!=""?h($Q):" ");}function nl_br($Q){return str_replace("\n","
",$Q);}function checkbox($D,$Y,$fb,$fe="",$lf="",$kb="",$ge=""){$J="".($lf?script("qsl('input').onclick = function () { $lf };",""):"");return($fe!=""||$kb?"$J".h($fe)."":$J);}function optionlist($rf,$Yg=null,$Ii=false){$J="";foreach($rf as$Yd=>$W){$sf=array($Yd=>$W);if(is_array($W)){$J.='
 
Code:
 # pkg info -D mod_php71
mod_php71-7.1.17:
Always:
***************************************************************

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>

*********************************************************************

If you are building PHP-based ports in poudriere(8) with ZTS enabled,
add WITH_MPM=event to /etc/make.conf to prevent build failures.

*********************************************************************
 
Thanks, but I have this lines in httpd.conf.
Seems it was more than one error. After recompiling lang/php71, lang/php71-extensions and www/mod-php71 it works again.
It seems it had nothing to do with the mime-types in the browser. I overlooked also , the simple way to add a mime-type to the browser:
to open it with a filemanager, klick on open with an set "Open always with ...." (Btw, it looks like palemoon and firefox "lost" this mime-type, I had it before in both browers.).
But it is not clear for me, what "really" caused this error.
 
Back
Top