Author Topic: PHP or Apache disabled functions  (Read 10025 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP or Apache disabled functions
« on: August 28, 2017, 04:47:14 PM »
Hi everyone!

Does PHP or apache have disabled some functions by default in CWP?
I need to run "apache_get_modules" and nothing gets returned.
I found this issue running a Wordpress W3 Total Cache compatibility test, wich tell modules not installed in Apache, but they are installed.

I have done a search for "disabled_functions" in PHP ini files compiled through PHP Selector and nothing was found. There is other files with this option?

Thanks!

Offline
*
Re: PHP or Apache disabled functions
« Reply #1 on: August 28, 2017, 09:54:47 PM »
to get apache modules use this command
/usr/local/apache/bin/httpd -M

to get php modules use this command
php -m

by default there are disabled functions.
what exactly you have missing ?
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: PHP or Apache disabled functions
« Reply #2 on: August 29, 2017, 01:46:54 AM »
Wordpress with W3 Total Cache isn't able to check some modules in Compatibility Check tool.

The code that do this checks use "apache_get_modules" function, that is disabled.

I know the modules is installed, but customers want see the "ok" on Compatibility Check tool.

There is no how "whitelist" some functions?

Thanks!


Offline
*
Re: PHP or Apache disabled functions
« Reply #3 on: August 29, 2017, 09:15:36 AM »
you would need to modify that compatibility check since php running as cgi will not show that info
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: PHP or Apache disabled functions
« Reply #4 on: August 29, 2017, 12:31:11 PM »
I understand.

But the other panels also run with cgi and works. Do you know if this function is disabled in some config file?
I think just enabling this function will not affect security, or am I wrong?

Thanks!

Offline
*
Re: PHP or Apache disabled functions
« Reply #5 on: September 14, 2017, 11:40:20 AM »
Simply create php info page using following code under domain name hosting account where you are facing problem and check which php configuration file is used by domain hosting account and check it function is available in php.ini file or not because some time customised php.ini file also caused such problems.

Code: [Select]
<? phpinfo(); ?>
Let me know result , so that we can help you further.
ktchost.com - Reliable Web Hosting Provider
█ E-commerce Ready Hosting | Pure SSD Cloud/VPS | Offshore Dedicated Server
█ 24/7 Reliable Tech Support | Monitoring Service | R1Soft Backup