Re: PHP Errors

[email protected] (The Doctor)
Newsgroups comp.infosystems.www.servers.unix,comp.lang.php,comp.unix.bsd.freebsd.misc
Organization NetKnow News
Message-ID <[email protected]>
In article <[email protected]>,
The Doctor <[email protected]> wrote:
>In article <[email protected]>,
>Arno Welzel  <[email protected]> wrote:
>>The Doctor, 2022-11-21 15:08:
>>
>>> In article <[email protected]>,
>>> J.O. Aho <[email protected]> wrote:
>>>> On 20/11/2022 23.42, The Doctor wrote:
>>>>
>>>>> tcptraceroute wordpress.org
>>>>> Selected device igb0, address 204.209.81.1, port 58686 for outgoing packets
>>>>> Tracing the path to wordpress.org (198.143.164.252) on TCP port 80
>>>> (http), 30 hops max
>>>>>   1  * *Fy
>>>>>
>>>>>   G *
>>>>>    2  * * *
>>>>>     3  * * *
>>>>>      4  * * *
>>>>>       5  * * *
>>>>
>>>> Feels like you have blocked outgoing http/https traffic, as I mentioned 
>>>> YOU have to check your firewall rules and adjust them, for you to see 
>>>> what rules are applied, review `pfctl -sr`.
>>>>
>>>> -- 
>>>>  //Aho
>>>>
>>> 
>>> pfctl -vsr
>>> 
>>> 
>>> Which gives
>>
>>See the "block drop out" messages.
>>
>>You need to enable outgoing traffic to wordpress.org
>>
>>No, I don't know how you can do that - it's your server, so you have to
>>sort this out on your own.
>>
>>
>>-- 
>>Arno Welzel
>>https://arnowelzel.de
>>
>
>Tests yield wordpress.org is blocking a set of network addresses.
>
>Now to figure out s9y.org .

The issue with wordpress was a firewalling issue!

As for serendipity, from 
https://board.s9y.org/viewtopic.php?p=10455367#p10455367

From CLI

php testcode.php
Failed loading /usr/local/lib/php/20131226-zts-debug/ioncube/ioncube_loader.so: Cannot open "/usr/local/lib/php/20131226-zts-debug/ioncube/ioncube_loader.so"
PHP Warning: PHP Startup: igbinary: Unable to initialize module
Module compiled with module API=20170718
PHP compiled with module API=20190902
These options need to match
in Unknown on line 0
curl seems to work PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
PHP Warning: file_get_contents(): Failed to enable crypto in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
PHP Warning: file_get_contents(https://raw.github.com/s9y/additional_p ... bar_en.xml): failed to open stream: operation failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
HTTP_Request2_ConnectionException: Unable to connect to tls://raw.github.com:443. Error: stream_socket_client(): unable to connect to tls://raw.github.com:443 (Unknown error)
stream_socket_client(): Failed to enable crypto
stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2/Adapter/Socket.php on line 331
#0 /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2/Adapter/Socket.php(331): HTTP_Request2_SocketWrapper->__construct('tls://raw.githu...', 10, Array)
#1 /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2/Adapter/Socket.php(128): HTTP_Request2_Adapter_Socket->connect()
#2 /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2.php(941): HTTP_Request2_Adapter_Socket->sendRequest(Object(HTTP_Request2))
#3 /usr/home/doctor/html/blog/serendipity/testcode.php(31): HTTP_Request2->send()
#4 {main}PHP Notice: Undefined variable: response in /usr/home/doctor/html/blog/serendipity/testcode.php on line 39
PHP Fatal error: Uncaught Error: Call to a member function getBody() on null in /usr/home/doctor/html/blog/serendipity/testcode.php:39
Stack trace:
#0 {main}
thrown in /usr/home/doctor/html/blog/serendipity/testcode.php on line 39

Okay, so openssl.c afile is empty. I think that's around where the problem is. The error message showed PHP is failing to valdiate github's certificate:
CODE: SELECT ALL

 error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
 I assume there is something misconfigured, either the local cert collection is missing or can't be read by PHP. The server time is set correctly, right?

 As in https://github.com/composer/composer/issues/8312, you could try to download a fresh cacert.pem and configure PHP to use it for openssl, via the openssl.cafile setting. Otherwise you would need someone with knowledge about FreeBSD on what might be wrong with the cert chain here. This is likely a bug in FreeBSD.



There are new sets of certs for FreeBSD IIRC.

>-- 
>Member - Liberal International This is [email protected] Ici [email protected]
>Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
>Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b 
>Happy Christmas 2022 and Merry New Year 2023  Beware https://mindspring.com


-- 
Member - Liberal International This is [email protected] Ici [email protected]
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b 
Happy Christmas 2022 and Merry New Year 2023  Beware https://mindspring.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.