can not find some of te php7.3 extensions like json and openssl

darkmessenger

Registered
May 25, 2008
4
0
51
Greetings,

To start the problem I have installed Laravel on one website in my server, when I open the site it gives a blank page without any erros and can not find any errors in php logs, when I made a closer look I didnt find json extension enabled through EasyApache4 after some search I found out that its not enabled in cpanel profle by default PHP Options - EasyApache 4 - cPanel Documentation
then I found another thread says that it's installed by default when installing php7.3 and I have verfied it through SSH

so I hae no idea on how to solve this problem, and hope you can provide support and help

the website im wokring on http://noon.limited

best regards
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,597
2,615
363
cPanel Access Level
Root Administrator
Hey there! Both of those packages you mention, OpenSSL and JSON, are included with PHP by default, so there isn't a way to add or remove those with the EasyApache system as they are built in to PHP. You can check for the presence of these on your system by running this command:

The following command would let you search your PHP installation for the software, so you can run this from SSH on your machine:

php -i | grep -E -i '(json|openssl)'

That should give you some output showing both modules loaded, which will look similar to this:

Code:
SSL Version => OpenSSL/1.0.2t
json
json support => enabled
json version => 1.2.1
proto_binary_fetched_json => 0
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2t  10 Sep 2019
OpenSSL Header Version => OpenSSL 1.0.2t  10 Sep 2019
Openssl default config => /opt/cpanel/ea-openssl/etc/pki/tls/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
OpenSSL support => enabled
If those show up, although the values may be different, that means they are present in your PHP configuration. If so, it would be best to check the Apache error log at /etc/apache/logs/error_log or the user's local error_log file inside public_html to see if there are more helpful errors for the problem.
 
  • Like
Reactions: darkmessenger

darkmessenger

Registered
May 25, 2008
4
0
51
Hey there! Both of those packages you mention, OpenSSL and JSON, are included with PHP by default, so there isn't a way to add or remove those with the EasyApache system as they are built in to PHP. You can check for the presence of these on your system by running this command:

The following command would let you search your PHP installation for the software, so you can run this from SSH on your machine:

php -i | grep -E -i '(json|openssl)'

That should give you some output showing both modules loaded, which will look similar to this:

Code:
SSL Version => OpenSSL/1.0.2t
json
json support => enabled
json version => 1.2.1
proto_binary_fetched_json => 0
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2t  10 Sep 2019
OpenSSL Header Version => OpenSSL 1.0.2t  10 Sep 2019
Openssl default config => /opt/cpanel/ea-openssl/etc/pki/tls/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
OpenSSL support => enabled
If those show up, although the values may be different, that means they are present in your PHP configuration. If so, it would be best to check the Apache error log at /etc/apache/logs/error_log or the user's local error_log file inside public_html to see if there are more helpful errors for the problem.
Greetings, thanks for reply

I have tested this code and its seems those extensions are enabled, I have checked the logs, nothing is shown so I'm a bit lost now as why I'm having a blank page