Changes

Jump to navigation Jump to search
2,216 bytes removed ,  04:43, 19 September 2021
no edit summary
Line 298: Line 298:  
upload_tmp_dir
 
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.
+
From SME Server V8 up to SME Server V9, you could have sometime an error 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.  see [[Uploadtmpdir]]
 
An easy way is to make a Custom Template to resolve this issue.  see [[Uploadtmpdir]]
===PHP 5===
     −
SME 7.x uses PHP 4, upgrading to PHP 5 is not recommended and not supported. However, you can add PHP5 as a cgi-bin handler for any given directory on the webserver with the [[PHP5 | PHP version 5 contrib]].
  −
  −
If you really want to upgrade the entire system to PHP 5 (for instance, if you need the mysqli extension), here's how to do it:
  −
  −
yum --enablerepo=centosplus \
  −
install php.i386 php-pear-Net-Socket php-pear-Auth-SASL \
  −
php-pear-DB php-pear-HTTP php-pear-Mail php-pear-XML-Parser
  −
/sbin/e-smith/signal-event post-upgrade
  −
/sbin/e-smith/signal-event reboot
  −
  −
Horde webmail is confirmed to work under PHP 5, provided you've upgraded to the latest SME version. Please note again that PHP 5 is not officially supported by SME 7.x, and therefore you may run into trouble when upgrading SME (see e.g. http://forums.contribs.org/index.php?topic=38194.0 and http://forums.contribs.org/index.php?topic=39611.0).
  −
  −
See also:
  −
  −
*[[bugzilla:1120]]
  −
*[[bugzilla:2132]]
  −
*http://forums.contribs.org/index.php?topic=31518
  −
  −
===PHP 5 with php-mcrypt===
  −
{{Note box|msg=For SME Server 8.0 beta 5 only... with php 5.2.10 (default rpms for beta 5)...}}
  −
  −
You need php-mcrypt for new WEB applications like eGroupWare, Joomla, etc. So see this Howto:
  −
  −
Tested on my SME Server 7.4 upgraded to SME Server 8.0 Beta 5 and works great !
  −
  −
<ol>
  −
<li>Download php-mcrypt rpms needed
  −
cd /tmp
  −
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-common-5.2.10-1.el5.remi.i386.rpm
  −
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-mcrypt-5.2.10-1.el5.remi.i386.rpm
  −
  −
</li><li>Make a backup of your current php.ini file'(because the install will change the file)
  −
  −
cp /etc/php.ini /etc/php.ini.org
  −
  −
</li><li>Remove the default php-common installed from SME Server Beta 5 (conflict with the new rpm)
  −
  −
rpm -e --nodeps php-common-5.2.10-1.el5.sme
  −
  −
</li><li>Then install the 2 new rpms
  −
  −
yum localinstall php-common-5.2.10-1.el5.remi.i386.rpm php-mcrypt-5.2.10-1.el5.remi.i386.rpm
  −
  −
</li><li>Backup the new php.ini file created and restore the original
  −
  −
mv /etc/php.ini /etc/php.ini.old
  −
mv /etc/php.ini.org /etc/php.ini
  −
  −
</li><li>Restart all services
  −
  −
svc -t /service/httpd-e-smith
  −
  −
</li><li>Check Apache syntax
  −
  −
httpd -t
  −
</li></ol>
   
----
 
----
    
[[Category: Howto]]
 
[[Category: Howto]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu