Разрешение функции PHP exec ()
Форум
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Hostking
  2. Wednesday, 18 September 2013
  3.  Subscribe via email
Allowing PHP exec() function
Rate this post:
  1. 27.04.2018 15:04:54
  2. # 1
Posts: 187
Joined: 31.01.2017
0
Votes
Undo
It is safe to enable it as long as CageFS is activated

By-default there is no disabled functions in php-selector ini's. If the are, there is an option to replace global disable_functions per user with custom value:
--add-options (-k)
or
--replace-options (-m)

keys of selectorctl.

For example:
selectorctl --add-options=disable_functions: --user=user --version=5.6

However, this will not work if you have disable_functions added to global ini ( http://docs.cloudlinux.com/index.html?configuring_global_php_ini_opt.html ), since global ini values force-replace everything.

You can check our docs about selectorctl here:
http://docs.cloudlinux.com/index.html?selectorctl.html
  1. 27.04.2018 03:04:20
  2. # 2
help
Attachments (1)
  1. 18.09.2013 09:09:09
  2. # 3
Hostking Accepted Answer
Posts: 38
Joined: 07.11.2012
0
Votes
Undo
Hi all,

What is the best software to allow to use exec() function for example?

Does CageFS protect client\'s website well enough to allow such a function in PHP?

Any other options?
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.