Changes

Jump to navigation Jump to search
3 bytes added ,  09:29, 27 August 2023
m
no edit summary
Line 270: Line 270:  
<!--Please do not remove the following closing tag as a fromatting/rendering bug will kick in, for more details see: http://bugzilla.wikimedia.org/show_bug.cgi?id=10893--><li>Open a SME Server shell as root user and document the current setting of the PHPBaseDir directive by writing down the output of the following command:
 
<!--Please do not remove the following closing tag as a fromatting/rendering bug will kick in, for more details see: http://bugzilla.wikimedia.org/show_bug.cgi?id=10893--><li>Open a SME Server shell as root user and document the current setting of the PHPBaseDir directive by writing down the output of the following command:
 
  db accounts getprop ibayname PHPBaseDir  
 
  db accounts getprop ibayname PHPBaseDir  
Be careful to write it down to the letter as we need it in the next step
+
Be careful to write it down to the letter as we need it in the next step.
 
For the Primary ibay the ouptut of above command would normally look like this:
 
For the Primary ibay the ouptut of above command would normally look like this:
 
  /home/e-smith/files/ibays/Primary/html/
 
  /home/e-smith/files/ibays/Primary/html/
Line 278: Line 278:  
  db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/
 
  db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/
 
Above command would allow for invocation of scripts in the /opt/gallery2 path from the Primary ibay html folder by PHP.
 
Above command would allow for invocation of scripts in the /opt/gallery2 path from the Primary ibay html folder by PHP.
To allow uploading of files to via http to a ibay name wiki
+
To allow uploading of files to via http to a ibay name wiki:
 
  db accounts setprop wiki PHPBaseDir /home/e-smith/files/ibays/wiki/:/tmp/
 
  db accounts setprop wiki PHPBaseDir /home/e-smith/files/ibays/wiki/:/tmp/
   Line 295: Line 295:  
=== Advanced use of the php-fpm pools ===
 
=== Advanced use of the php-fpm pools ===
   −
==== For the ibays with with php-fpm.d/ibays.conf ====
+
==== For the ibays with php-fpm.d/ibays.conf ====
for the ibays better option is to simply use the contrib [[Webhosting]]
+
For the ibays better option is to simply use the contrib [[Webhosting]].
    
==== For the contrib sharefolders with php-fpm.d/shares.conf ====
 
==== For the contrib sharefolders with php-fpm.d/shares.conf ====
similar to ibays
+
Similar to ibays.
    
==== For the contribs with php-fpm.d/www.conf ====
 
==== For the contribs with php-fpm.d/www.conf ====
please read [[Building Your Contrib]]
+
Please read [[Building Your Contrib]].
    
==== For your custom needs with php-fpm.d/custom.conf ====
 
==== For your custom needs with php-fpm.d/custom.conf ====
you can build your own pool to use in any place on your server, even in a subfolder of an ibay or in place of the regular ibay php-pool (property PHPCustomPool)
+
You can build your own pool to use in any place on your server, even in a subfolder of an ibay or in place of the regular ibay php-pool (property PHPCustomPool).
   −
There are two ways in doing that  
+
There are two ways in doing that:
    
===== using db php =====
 
===== using db php =====
using the default template : /etc/e-smith/templates/etc/php-fpm.d/custom.conf , you can set your own pool doing:
+
Using the default template : /etc/e-smith/templates/etc/php-fpm.d/custom.conf , you can set your own pool doing:
 
  db php set MYPOOLNAME pool Version 81 status enabled
 
  db php set MYPOOLNAME pool Version 81 status enabled
 
here are the accepted supplementary properties, as always missing or empty means using default.
 
here are the accepted supplementary properties, as always missing or empty means using default.
Line 398: Line 398:  
|
 
|
 
|}
 
|}
you will then need two httpd.conf custom template fragment to use your pool. You will need to change  '''MYPOOL''' to what you want
+
You will then need two httpd.conf custom template fragment to use your pool. You will need to change  '''MYPOOL''' to what you want
 
  mkdir -p  /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
 
  mkdir -p  /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
 
  vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98mypoolusage
 
  vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98mypoolusage
Line 416: Line 416:  
     allow from all
 
     allow from all
 
  </Directory>
 
  </Directory>
then just do signal-event webapps-update
+
Then just do:
 +
signal-event webapps-update
    
===== using a templates-custom =====
 
===== using a templates-custom =====
3,072

edits

Navigation menu