Jump to content

Disabled php functions and whmcs


raamee

Recommended Posts

Hello,

 

I planning to disable some php functions in my server for saftey. So, will this affect whmcs any way?

 

Thanks.

 

Functions to be disabled:

 

"apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, eval, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode" 

Link to comment
Share on other sites

Unless something has changed with the status script, it should work even with the exec family disabled as it checks for disabled functions and uses alternate methods to get the stats if they're in the disabled list. We're still using an older version of the status script because we'd customized it's output, but the function checking and alternate methods came built-in though; we didn't have to add them.

Link to comment
Share on other sites

Unless something has changed with the status script, it should work even with the exec family disabled as it checks for disabled functions and uses alternate methods to get the stats if they're in the disabled list. We're still using an older version of the status script because we'd customized it's output, but the function checking and alternate methods came built-in though; we didn't have to add them.

 

The default WHMCS ones used to rely on those functions (not sure if it is still the case). I posted a modified version that did not. Perhaps that is the one you are using?

Link to comment
Share on other sites

The default WHMCS ones used to rely on those functions (not sure if it is still the case). I posted a modified version that did not. Perhaps that is the one you are using?

Just taking a look, the one we have in-use is from v3.8.1 Stable, but still works just fine for us with the later versions of WHMCS though. The only thing that we modified was the output of out of phpinfo.

Link to comment
Share on other sites

Just taking a look, the one we have in-use is from v3.8.1 Stable, but still works just fine for us with the later versions of WHMCS though. The only thing that we modified was the output of out of phpinfo.

 

3.8.1 seems to have been released after my changed version

 

See this thread

http://forum.whmcs.com/showthread.php?t=12597

 

My changes were made on July 7th 2008 and 3.8.1 was released December 12th 2008

 

You will hear no complaints from me. It's one less addon to worry about :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated