Question
What exactly is PHP inheritance, and how does this work with cPanel?
Answer
In WHM’s "MultiPHP Manager" interface at "Home / Software / MultiPHP Manager", the term “Inherit” refers to how Apache determines a domain or virtual host’s PHP version.
PHP inheritance follows the following path:
-
You set the PHP version at the system level.
-
You set a cPanel account or domain to use the "Inherit" option in WHM’s "MultiPHP Manager" interface.
-
Apache searches the cPanel & WHM default document root of the current domain and continues up the directory tree until it finds a
.htaccessfile with PHP version information. -
Apache locates a
.htaccessfile with PHP version information. -
Each cPanel account or domain set to "Inherit" now uses the PHP version in the
.htaccessfile.
Please note, if Apache does not find an .htaccess file or finds an invalid version of PHP in the .htaccess file, it uses the system default PHP version from WHM’s "MultiPHP Manager" interface.
Comments
0 comments
Article is closed for comments.