KNOWNHOST WIKI

User Tools

Site Tools


control-panels:directadmin:how-to-customize-php-on-directadmin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
control-panels:directadmin:how-to-customize-php-on-directadmin [2020/05/26 10:00]
Karson N.
control-panels:directadmin:how-to-customize-php-on-directadmin [2020/06/01 11:22] (current)
Karson N.
Line 1: Line 1:
 ====== How to Customize PHP On DirectAdmin ====== ====== How to Customize PHP On DirectAdmin ======
- 
 \\ \\
  
Line 6: Line 5:
  
 Create a uniquely named .ini file in the directory below, where XX is equal to the PHP version you are using: Create a uniquely named .ini file in the directory below, where XX is equal to the PHP version you are using:
- +<code> 
-/usr/local/phpXX/lib/php.conf.d/+  /usr/local/phpXX/lib/php.conf.d/ 
 +</code>
  
 For example: For example:
 +<code>
   cat /usr/local/php73/lib/php.conf.d/domain.com.ini   cat /usr/local/php73/lib/php.conf.d/domain.com.ini
   [HOST=domain.com]   [HOST=domain.com]
   post_max_size = 128M   post_max_size = 128M
 +</code>
  
 Then restart the webserver.  Then restart the webserver. 
  
 For OLS: For OLS:
-/usr/local/lsws/bin/lswsctrl restart+<code> 
 +  /usr/local/lsws/bin/lswsctrl restart 
 +</code>
  
 This method works for all webservers. Load the phpinfo page for the site to confirm that the value has been changed.  This method works for all webservers. Load the phpinfo page for the site to confirm that the value has been changed. 
control-panels/directadmin/how-to-customize-php-on-directadmin.txt · Last modified: 2020/06/01 11:22 by Karson N.