<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - How-To upgrade to MySQL 5 and PHP 5</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>How-To upgrade to MySQL 5 and PHP 5</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top bottom"><a href="SME7Howtos.html" class="wiki">SME7Howtos</a> <br /></p>
<h3>How-To upgrade to MySQL 5 and PHP 5</h3>
<hr />
<p class="tightenable top bottom">Author : <a href="william_syd.html" class="wiki">william_syd</a><br />
Tested on SME Version: <br />
Updated : <br />
License : <br /></p>
<hr />
<p class="tightenable top bottom">This How-to describes the way to upgrade to MySQL 5 and PHP 5.</p>
<hr />
<h3>Do this from a remote terminal<br /></h3>
<ul><li class="tightenable top bottom">rpm -e --nodeps php-domxml</li>
<li class="tightenable top bottom">mysqldump -Aec &gt;backupdump.sql</li>
<li class="tightenable top bottom">/etc/rc.d/init.d/mysqld stop</li>
<li class="tightenable top bottom">yum --enablerepo=centosplus update mysql</li>
<li class="tightenable top bottom">signal-event post-upgrade</li>
<li class="tightenable top bottom">signal-event reboot</li>
<li class="tightenable top bottom">mysql</li>
<li class="tightenable top bottom">GRANT SELECT,INSERT,UPDATE,DELETE ON horde.* TO 'horde'@'localhost';</li>
<li class="tightenable top bottom">FLUSH PRIVILEGES;</li>
<li class="tightenable top bottom">\q</li>
<li class="tightenable top bottom">wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/MySQL5/mysql.sql</li>
<li class="tightenable top bottom">mysql mysql &lt; mysql.sql</li>
<li class="tightenable top bottom">yum --enablerepo=centosplus update php</li>
<li class="tightenable top bottom">wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/PHP5/50PathsDirectories</li>
<li class="tightenable top bottom">mkdir -p /etc/e-smith/templates-custom/etc/php.ini</li>
<li class="tightenable top bottom">cp 50PathsDirectories /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories</li>
<li class="tightenable top bottom">expand-template /etc/php.ini</li>
<li class="tightenable top bottom">wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/PHP5/20LoadModule80PHP</li>
<li class="tightenable top bottom">mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf</li>
<li class="tightenable top bottom">cp 20LoadModule80PHP /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule80PHP</li>
<li class="tightenable top bottom">expand-template /etc/httpd/conf/httpd.conf</li>
<li class="tightenable top bottom">/etc/rc.d/init.d/httpd restart</li>
<li class="tightenable top bottom">rpm -Uvh --nodeps http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/updates/i386/RPMS/php-domxml-4.3.9-3.15.i386.rpm</li>
<li class="tightenable top bottom">signal-event post-upgrade</li>
<li class="tightenable top">signal-event reboot</li>
</ul>
<hr />
<h4>References: <br /></h4>
<p class="tightenable bottom"><br />
<br />
<br /></p>
<hr />
<p class="tightenable">Back <a href="AllPages.html" class="wiki">AllPages</a> <a href="SME7Howtos.html" class="wiki">SME7Howtos</a></p>
<hr />
<span class="plugin" id="FrameContribsPlugin155"><div class="disabled-plugin"><div class="title">Plugin FrameContribs disabled. (action != 'browse')</div>
<pre>&lt;?plugin FrameContribs src=http://forums.contribs.org/viewtopic.php?t=33434 height=1600 width=100% frameborder=1 scrolling=auto ?&gt;</pre>
</div>
</span></div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: <a href="william_syd.html" class="wiki">william_syd</a>  Last edited on September 5, 2006  8:37 am by <a href="william_syd.html" class="wiki">william_syd</a></p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
