jerrygarciuh
jerrygarciuh

Reputation: 22018

Using .htaccess to enable functions main ini has in disable_functions

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?

Upvotes: 0

Views: 3337

Answers (2)

Oleg Neumyvakin
Oleg Neumyvakin

Reputation: 10312

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.

Upvotes: 1

AbraCadaver
AbraCadaver

Reputation: 78994

You can't do it in htaccess. Only in php.ini: https://www.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.

Upvotes: 2

Related Questions