skip to Main Content

I have a new account on a Plesk managed server with PHP FastCGI. The main php.ini for all the accounts has many functions disabled via disable_functions.

In particular mail() and socket related functions are disabled.

I am able to set values via .htaccess but I am unclear on how to re-enable the functions I need and so far I have not succeeded in Googling an answer.

Can someone give an example or direct me to documentation on re-enabling PHP mail() in this situation?

2

Answers


  1. You can’t do it in htaccess. Only in php.ini: http://us1.php.net/manual/en/ini.core.php#ini.disable-functions

    This directive must be set in php.ini For example, you cannot set this
    in httpd.conf.

    Login or Signup to reply.
  2. More over you can do it directly in Plesk GUI as per domain option starting with version 11.0.
    Just find for “PHP settings” in domain’s hosting settings.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search