Disable php functions weird encoding
hello awesome people
i was trying to disable some php functions in the php file in
/opt/cpanel/ea-php55/root/usr/bin/php (and php56-php70) but the php file is written in a weird encoding or maybe corrupted - i tried several encoding and editor with the same issue
i uploaded the file so you can see it .. had to delete half of it and zip it so it could fit
and this is a part of it
- Removed zip file -
[PHP]LF > <" @ """( `LL$ H" @" B"D"$IP""!"u"" "2 p$P"HB""$"CA"B",
" "@"c#@""
"H"@$Z !"CAH] BD"" 1
F!
" 0'" "!" "NPpJF b:D"Z"
"`"P@ "@""`tXF"L"@P@@""Q5"\_"T "&BH ""`L 6"#"" "J " ,a" D"" a .
(Q ""P6 Zc3"0xF "D 3" &"@ $""r""P@" L"%""0""C!";0""r ":"th& "lt" H>B"@" y z | ~ " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ! # % ' ( + . 2 4 6 8 < > @ A D E F I J L N Q T U X Z \ ] _ a b e g h i k l o q t w x z { } " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " % & ) + - . 0 1 2 3 4 7 8 9 : ; = > @ B E F G I J M O P Q R T U V Y [ \ ^ ` a d f l m p q r s t u v y { } ~ " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "
# % ' ( * - 2 5 7 8 : = ? @ B D E G H J N O R U W Y Z [ ^ _ ` a b c f h j k m q r s z | ~ " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "
! " % ' ( * + . / 1 2 4 6 9 ; < = ? A D E G H K M O Q R S V W Y \ ] _ b d g i j l m o p s v w y { | ~ " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ! # & ' ) * , - . / 3 5 6 7 9 = ? A B D F H J K M O Q R T U V W Y Z [ ] ^ c e f g h i j k l m o s t u x z ~ " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "
"""6]"~fy"2""".V"`L" &"""Kya"i","$"3{""6" Yl>h""P"A%V"Q
["\E"6"""5"tPfk1""R""1"NZj="""R6"""
@@"<"@v"N"wIB"" E"+2;.""NGS""i\"f"z(U'"""3"g|Ry""/"&""Hn j"&"C#"9" "".""\"""l2 "8"'y1"" o""oxm""{vB"#""ABP"5""^"<"9"w""g"v""Pg[*t"W"+""*"4OO"v"'""]X%"R"\cf"b
"QD""A+NpN" m" ""H"2"HqQ""4"" _58""b""""#@""oT""""yM"""f""E""""#" 4"C"F*S""hX" n.1p"9"a"Wo""M""Z'"D"DBY"1"a""a"Y9
"X""@;w"N"L"!"}AT"T"w="{"|"
""^"3"*dX""M"PD"~""W"H"S"r3 )\*i"7""}7\"U3""h""""o3_a"""@"<%""iK""2""+""GXhA""fw""9B"+"?v""
"9d""I"KzQGP&"jb*""G"J"L"#a:"_""A"""#
"]F"""h9""1"MH4~"1?-i ""/""~""LW"'#"7"s"*"u""5"'b*S)"r"^""AR"1G"5f"">"G""GX"u|">A"j2""="""UF"=,q"s"":""{H`""M"E"^""d"RO"(""^""g`*""^":""
"""z"jV3" "",""/""^""%"~5" "
" """ ""+0""^/q"2"P"[F"7|"%["+o""(""}""du
"!V"7@"{"'"m6r%""v""[""Q"H"el"?"""WxMV
-"9R"-""*MT!g""*t`"V{"`""")"4Ai""&~"" "D""i:""8"
b3""+;6/G"K#}"H""R4"l""T"is"!""o6"6""_-"u" v""5"5""[""EC"V""D""b#c""bR"(a"i"\"("G"gj"9"X7"A{""1"]"x"X "(*"c"X%[""Id""!'k"""OcEwp""W"GR"d&" ""b"")""U""$"j"""uk"r""eT*"@""T""a3"\#""rT""-"8"k"cM"".""g"""1";"m'pqu""n""D"qX
v"D]C ""t"6F""XU"-h"i""j"E: ""x"="P""s""}"'T8"1"jj ""p""YCBk"""" ""Nu[N"6"0$"#="u"~s""F1" "*H"}"f`""%uj""?"t""O"%""""$"~S""{""Y9j"!V"}^"""5""?@Vv""bt""M"Yx""vK""[""e"9"""1"""0"V"""U",d"9g" "0r3D""tT,"9g" :g" {"""Kh""">""3"%xtg"=v""$6""c""("a""V""wm"""nB0""eL" ""?y"8
""c""f"ae`[,ODQ"e"p)tL"1"B"":">>""|eZOx""(iB""MM"pf"""n""U;"CE#V."""4"x4_%""P"g""1""0rV""x""-2"""%Z"Y""d"T`""M%9""s[""?;k""@"r""";[""3M"@"?[""|":"".u""{^)" ")~"";*"1E"y""""K""m"#Od"Ae""2b""3D"V""+H@]T" """ybI]}"q""H"X""?wb"%A""="-""j"" "y"5"W""@{E"^}"w""
"u"jR"""r"9v]l()""s3""=K"S""k?"lor"g"w"
T&""8" "H"W?"j"f02"J"%""G""x"K""r""uB"d""":"-"B""f
NN"" 7" ";""!4"q""s" "n""x^*i""'""?"
L"v"P""Zt"]"?"{""K"""!"""eE-""f~""?""d"E]""""Qv"F""wO"av""|c".9"IZ""&9"""U"V""m$F""-")U"J"""T`)"z "~
L"s"g"Z"!"" ""H"]" "~"7"9O""f""7")q
"*""w""i"`""'" """=q""A"""3]""O"/3""OZ[""""D""+"y"`wgn"$""v%|"cr "K%"9Yx""*"d"X"}W"d""E"
"&b"W"N?"Y""~@""w"\"p9"Y""!"e;""(""y"""U";"L"&"g"n"""w "5"m"Q(""cnF>T
"i$""L"H
""$"o"'"=g"E"""+"SD="p""
""Q""J"{K""."@""#"Yl"~Q")""Z#5""#"Z"!"/""t"5""\"": ""W
"C:-"'m
P""/1Q"F""Q"Ap
"K.".""TD""8""3"q""X""""_"
,"UjdQr"I"Xwd""P"?"Tvo:{"";W~r""&
"jM"da" ""k%+""~_|#"bd"""
"[""m"bm""J"M"6"#"A""3*}""1"b"h3"TsQ""%""|svlS}7"Z""#"H"\";Vf"&/y"m"("%! q"/E")c"
"G"e
,"""{"3"SQ"byY%C6""EY\""4U""|"T4""!""B"z"L1"N"""k""">K"
x"
9"#"""eHn}oGl\)"8F""hz+PCmND""8%f"9"["".-"","|"{""e0"Rcd"f ]t/*"(_"nyS ""o_"rcM"h@"5"~"u">~""j&+h")""""M"56""M"o^""4""`1""vF":jg""P"j"3")`"|t3"""B]"7x"u%""$""""\"""4"N" ""R""4""" "c*"?"[";"={_"d\"""t""T""q "")c*1P8" EM"Cl."M"~"T"")"l@"?"" ""/ ""Yl""Bg""3"2Fr"=j"n"TO""V"_b"`!-:N""{""PH"G"$."""6O""?"n"" x"""Fu"u5Ai* e|"f">""t"7~"")""P"k"-"JT""Z"3""!L""j\"_"-/""8"L"""0F"" "!D^+i_*X""A"("""
w""\".s0,"t >"f" "_""/l"u """2dj"R"-SH!"e""q"`"o6"i"E"0I?""R"eN38""O"X""""?"#"""(""""s"Z,%W,lr""=""yGkv"".;"EI""N"f"x""G"#Uq""%j""n"f"p6R{~"t"")"mF""Ecw"("*$1"w""}","NL "J"B\""CP"":mlK""q"+""I";QR""(""3""V@"""Q9c"-
0ZD""GZz""S""9"AP"|yS"QI""*""1!H#"",7""Co"}"4aa7"p""n"""q ""s#"4d ""T""pK""=r"Yr""\""!"ep" " 9""'"""u"S"t"a&]"C"8*""" I\"n"""6)"E5" '"RH""+"9_""2C"5""2""_Xp"^"{F3"*"N"-"""O""4md3"q"""?" "n,"""""%i""_"d"T""Z""/"vM"9="l"?"!"Nc"j"+n"""9"|"\""G
""(""{""w"R"""\"M""."Ic""""m"D"A "`q"""(_"XGDut"^%"H"W""kp" nvO";9"X"hP""5""n6 "[ED|D" "")"w.""<""""d"&."]WXsb""`Y"8"X""u","""FY""
"")"!"!""9p*|""""p$"^"""F""~"T"o"$)""Z""=e"-
""lR""g& "Y"""5H"IO""r"9"Y""T"6[ "uYXj6"FbI""o"("D4 C""":YG9
":WA(""S>"V:""j"",""F"""2"""Kk C"a""*n"""2D"
"20"<"'B"A"?l""S." ""3""A1"{YL""gQ"$|"mSM"G">"" "d""*r"C""Jc""u(W""8""z-2"">"+{"a""d6""S"S"";"&x"G"c" "gl
]h ""b";6""K"""x"PB"!"""""Y" " ","%2"Pu"z3""#"S"" 8 " " (d # " " ] " " $
" " " "; " " " _ " f "O + | " " " r " | , " Co U N "V "[ " " " " = L " " y g U " " 2 " E
! I " " < 1 ] " V J
- " K w | [ e Hg " " K " " " " " " * " " " H a
" [ " " " " #$ " " " " " " "
2 " " " " A R ; h{ "" ^ " " " " { n " "I " C| "3 " " T " " "
" " " + " " q m
" " " " x > l= " " " " " " $
"F " " " " ? " " , " " " q + Z b "
J " Q 1 h " " ?
" " '" "
: + W [/PHP]
-
i was trying to disable some php functions
Here's a screenshot of where you'd edit this.0 -
Here's a screenshot of where you'd edit this.
this work perfectly .thank you i still have these warnings in the firewall, what do you think about them : Check php version [/opt/cpanel/ea-php55/root/usr/bin/php] Any version of PHP (Current: 5.5.38) older than v5.6.* is now obsolete and should be considered a security threat. You should upgrade exclusively to PHP v5.6+ Check php for ini_set disabled [/opt/cpanel/ea-php55/root/usr/bin/php] You should consider adding ini_set to the disable_functions in the PHP configuration as this setting allows PHP scripts to override global security and performance settings for PHP scripts. Adding ini_set can break PHP scripts and commenting out any use of ini_set in such scripts is advised0 -
You should upgrade your PHP and add ini_set as suggested. You'll know what happened if something does break as the alert mentions and can go right back in and remove it if needed. :) 0 -
You should upgrade your PHP and add ini_set as suggested. You'll know what happened if something does break as the alert mentions and can go right back in and remove it if needed. :)
i change the php version in the phpmanager in software and now my website give me the following error - i set it back as it was but im still screwed .. what can i do ?The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@example.com[/EMAIL] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
0 -
i think i fixed it .. now the https version takes me to Forbidden You don't have permission to access /cgi-bin/ on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. but ive never had a https for the site .. i think i will redirect it to http 0 -
Have you restarted Apache? WebHost Manager "Restart Services "HTTP Server (Apache) 0 -
Have you restarted Apache? WebHost Manager "Restart Services "HTTP Server (Apache)
website is now working on http side normally im trying to redirect the https to the working http .. try the redirects in the cpanel functions and added the following to the htaccess but it doesnt work ..any advise ? [PHP]# Redirect HTTPS to HTTP RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301][/PHP]0 -
should i start a new thread ?! 0 -
New issue, new thread is best. On the topic of redirecting HTTPS to HTTP, there are plenty of existing threads you might find useful already posted. 0
Please sign in to leave a comment.
Comments
9 comments