Disable Proc_open for only one domain Print

  • 0

Client query:

===================================================================================

Please let us know if it is possible to enable proc_open() for only one domain. If it is possible, then enable it for DeshiPhoto.com. If it is not possible to enable it for only one domain, please don't change anything and let us know.

Error: The Process class relies on proc_open, which is not available on PHP installation. 

===================================================================================

Solution:

NOTE: The requested domain must point to the local server, not external servers.

# dig NS domain.com +short
# dig A domain.com +short

1) First we have to know which PHP version is used in the "deshiphoto.com" domain.

- Login into WHM Home » Software » MultiPHP Manager

- Search the domain name "deshiphoto.com" in the search box under the User Domain Settings. 

- The domain "deshiphoto.com" have PHP 7.2 ( ea-php72 ).

2) Login client cPanel:

- Home » Account Information » List Accounts

- Search the domain name "deshiphoto.com" in the search box.

- Login into the "deshiphoto.com" user cPanel with help of cPanel icons.

3) Edit MultiPHP INI

- Search or select "MultiPHP INI Editor"

- Select the domain "deshiphoto.com" under "Editor mode & Edit PHP INI settings"

4)If you want to enable the proc_open function for only one domain, Remove the proc_open from the following commands & save it:

disable_functions = show_source, system, shell_exec, passthru, exec, popen

5) If you want to disable the proc_open function for only one domain, Add the proc_open from the following commands & save it:   

disable_functions = show_source, system, shell_exec, passthru, exec, popen, proc_open

===================================================================================


Was this answer helpful?

« Back