Difference between revisions of "Uploadtmpdir"
Line 33: | Line 33: | ||
$OUT .= " php_admin_value upload_tmp_dir /tmp\n"; | $OUT .= " php_admin_value upload_tmp_dir /tmp\n"; | ||
− | Example for | + | Example for /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92foo |
$OUT .= " php_value mysql.default_user $foo{DbUser}\n"; | $OUT .= " php_value mysql.default_user $foo{DbUser}\n"; | ||
$OUT .= " php_value mysql.default_password $foo{DbPassword}\n"; | $OUT .= " php_value mysql.default_password $foo{DbPassword}\n"; | ||
Line 45: | Line 45: | ||
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 | ||
− | rm | + | rm /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92foo |
and | and | ||
signal-event console-save | signal-event console-save | ||
[[Category:Howto]] | [[Category:Howto]] |
Revision as of 20:59, 5 June 2013
upload_tmp_dir
Since SME Server V8, you could have sometime an error is thrown by PHP and you will need to specify a temporary directory (e.g. upload_tmp_dir) which is not set in php.ini. see bugzilla:6650 and bugzilla:7652. Many Php applications needs this setting, most of known are wordpress, roudcube, egroupware, etc. Symptoms are that you can't upload contents to the PHP application.
An easy way is to make a Custom Template to resolve this issue.
template of php.ini
mkdir /etc/e-smith/templates-custom/etc/php.ini/ nano /etc/e-smith/templates-custom/etc/php.ini/12phptmpfolder
then paste this and save the file by ctrl+x
upload_tmp_dir = /tmp
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
rm /etc/e-smith/templates-custom/etc/php.ini/12phptmpfolder rm -rf /etc/e-smith/templates-custom/etc/php.ini/
and
signal-event console-save
Template of httpd.conf
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
with Web_Application_RPM the special line to put in the config of your virtual host is
$OUT .= " php_admin_value upload_tmp_dir /tmp\n";
Example for /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92foo
$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 /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
rm /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92foo
and
signal-event console-save