<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KarkomaOnline &#187; PHP</title>
	<atom:link href="http://www.karkomaonline.com/index.php/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karkomaonline.com</link>
	<description>a Blog for SysAdmins and Unix stuff in general</description>
	<lastBuildDate>Thu, 25 Nov 2010 07:49:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Installing MySQL, Apache and PHP in Solaris 10</title>
		<link>http://www.karkomaonline.com/index.php/2006/12/installing-mysql-apache-and-php-in-solaris-10/</link>
		<comments>http://www.karkomaonline.com/index.php/2006/12/installing-mysql-apache-and-php-in-solaris-10/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 00:43:40 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.karkoma.info/index.php/2006/12/11/installing-mysql-apache-and-php-in-solaris-10/</guid>
		<description><![CDATA[This is a quick guide to install PHP4, MySQL4 and Apache2 in Solaris 10. In order to facilitate the management and installation of packages we will use the pkg-get tool. pkg-get is a tool to automate download and installation of binary packages, for example from Blastwave an Open Source software repository for Solaris. Our first [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick guide to install PHP4, MySQL4 and Apache2 in Solaris 10. In order to facilitate the management and installation of packages we will use the <em>pkg-get</em> tool. pkg-get is a tool to automate download and installation of binary packages, for example from <a href="http://www.blastwave.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.blastwave.org/?referer=');">Blastwave</a> an Open Source software repository for Solaris.</p>
<p>Our first task will be the installation of pkg-get. At <a href="http://www.blastwave.org/howto.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.blastwave.org/howto.html?referer=');">Blastwave</a> you&#8217;ll find a complete guide on how to undertake this task. Briefly:</p>
<blockquote><p>cd /tmp<br />
/usr/sfw/bin/wget http://www.blastwave.org/pkg_get.pkg<br />
pkgadd -d pkg_get.pkg all<br />
/usr/sfw/bin/wget http://www.blastwave.org/wget-i386.bin<br />
chmod 755 wget-i386.bin</p>
<p>PATH=/tmp:/opt/csw/bin:/usr/sbin:/usr/bin:</p>
<p> /usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin<br />
export PATH</p>
<p>vi /opt/csw/etc/pkg-get.conf</p></blockquote>
<p>Pick a <a href="http://www.blastwave.org/mirrors.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.blastwave.org/mirrors.php?referer=');">mirror</a> next to you. Then:</p>
<blockquote><p>pkg-get -i wget</p>
<p>PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:</p>
<p> /usr/openwin/bin:/usr/ccs/bin<br />
export PATH</p></blockquote>
<p>And now you may install other packages. But let&#8217;s focus in our target.</p>
<p>As Solaris 10 comes with MySQL and Apache installed by default, first we are going to uninstall them. Take a look at your system:</p>
<blockquote><p>pkginfo | grep -i apache</p>
<p>system      SUNWaclg                         Apache Common Logging<br />
system      SUNWapch2d                       Apache Web Server V2 Documentation<br />
system      SUNWapch2r                       Apache Web Server V2 (root)<br />
system      SUNWapch2u                       Apache Web Server V2 (usr)<br />
system      SUNWapchd                        Apache Web Server Documentation<br />
system      SUNWapchr                        Apache Web Server (root)<br />
system      SUNWapchu                        Apache Web Server (usr)</p>
<p>pkginfo | grep -i mysql</p>
<p>system      SUNWmysqlr                       mysql &#8211; MySQL Database Management System (root component)<br />
system      SUNWmysqlt                       mysql &#8211; MySQL Database Management System (test component)<br />
system      SUNWmysqlu                       mysql &#8211; MySQL Database Management System (usr component)</p></blockquote>
<p>Next task would be to uninstall these packages. Proceed as follows:</p>
<blockquote><p>pkgrm SUNWaclg SUNWapch2d SUNWapch2r SUNWapch2u SUNWapchd SUNWapchr SUNWapchu<br />
pkgrm SUNWmysqlr SUNWmysqlt SUNWmysqlu</p></blockquote>
<p>Finally, install Apache, MySQL and PHP from pkg-get:</p>
<blockquote><p>pkg-get -i apache2 mysql4 php4 mod_php</p></blockquote>
<p>That&#8217;s all. Now configure the software as usual. Note that packages installed with pkg-get reside in /opt/csw, so I recommed adding something like this to your /etc/profile:</p>
<blockquote><p>PATH=/opt/csw/bin:/opt/csw/mysql4/bin:$PATH<br />
export PATH</p></blockquote>
<p>More info:</p>
<p><a href="http://www.blastwave.org/howto.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.blastwave.org/howto.html?referer=');">pkg-get installation howto</a><br />
<a href="http://www.blastwave.org/userguide/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.blastwave.org/userguide/?referer=');"> pkg-get users guide</a><br />
<a href="http://docs.sun.com/app/docs/doc/806-7612/6jgfmsvrq?a=view" target="_blank" onclick="pageTracker._trackPageview('/outgoing/docs.sun.com/app/docs/doc/806-7612/6jgfmsvrq?a=view&amp;referer=');"> Customizing Your Working Environment</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2006/12/installing-mysql-apache-and-php-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

