Changes

Jump to navigation Jump to search
624 bytes added ,  01:11, 25 April 2022
no edit summary
Line 1: Line 1:  +
{{Warning box| this information is outdated and incompatible with SME10. Please refer to [[PHP]] page }}
 +
 
=== upload_tmp_dir ===
 
=== upload_tmp_dir ===
   Line 26: Line 28:     
=== Template of httpd.conf ===
 
=== Template of httpd.conf ===
{{Note box|With this configuration, It appears that the tmp folder will be set only for this web application and not for all other virtual host. It is a better matter for security}}
+
{{Note box|With this configuration, It appears that the tmp folder will be set only for this web application and not for all other virtual host. It is a better matter for security, but in the example below the tmp folder is the /tmp which is used by all. You should create your own tmp/ in the application folder, see [[Uploadtmpdir#Specify_the_application_tmp_folder]]}}
 
You can do the same thing by adding the following in the httpd.conf template of your contrib or special apache virtual host.
 
You can do the same thing by adding the following in the httpd.conf template of your contrib or special apache virtual host.
 
  php_admin_value upload_tmp_dir /tmp
 
  php_admin_value upload_tmp_dir /tmp
Line 43: Line 45:     
  signal-event console-save  
 
  signal-event console-save  
 +
====Specify the application tmp folder ====
 +
or you can make a folder /tmp in the path of the foo application (example /opt/foo/tmp)
   −
or you can make a folder /tmp in the path of the foo application (example /opt/foo/tmp)
+
Example for /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92foo
  $OUT .= "    php_admin_value upload_tmp_dir /opt/foo/tmp\n";
+
$OUT .= "    php_value mysql.default_user $foo{DbUser}\n";
 +
$OUT .= "    php_value mysql.default_password $foo{DbPassword}\n";
 +
  '''$OUT .= "    php_admin_value upload_tmp_dir /opt/foo/tmp\n";'''
 +
if ($pass)
 +
{
 +
 +
and then do
 +
 
 +
signal-event console-save
    
If you want to erase this setting you have to remove the file and the folder if necessary
 
If you want to erase this setting you have to remove the file and the folder if necessary
Line 58: Line 70:  
In a near future this ability will be in the default configuration of smeserver.
 
In a near future this ability will be in the default configuration of smeserver.
 
[[Category:Howto]]
 
[[Category:Howto]]
 +
[[Category:developer]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu