can not find some of te php7.3 extensions like json and openssl
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
best regards
-
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: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.0 -
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: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 page0 -
If you have root access to the system you can always open a ticket using the link in my signature to have our techs check out the site. 0
Please sign in to leave a comment.
Comments
3 comments