<?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>Minimizr.com &#187; Web Server</title>
	<atom:link href="http://minimizr.com/blog/category/web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://minimizr.com</link>
	<description>More With Less</description>
	<lastBuildDate>Sun, 28 Oct 2007 13:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=456</generator>
		<item>
		<title>Setup MAMP (Mac, Apache, MySQL And PHP) on Mac OS X 10.5 Leopard</title>
		<link>http://minimizr.com/blog/2007/10/setup-mamp-mac-apache-mysql-and-php-on-mac-os-x-105-leopard/</link>
		<comments>http://minimizr.com/blog/2007/10/setup-mamp-mac-apache-mysql-and-php-on-mac-os-x-105-leopard/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 13:39:14 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.minimizr.com/blog/2007/10/setup-mamp-mac-apache-mysql-and-php-on-mac-os-x-105-leopard/</guid>
		<description><![CDATA[New Mac OS X 10.5 Leopard comes with new versions of Apache and PHP (Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7l DAV/2 PHP/5.2.4), so it is quite easy to setup a MAMP server. Sure there are other ways to do the setup: You can build Apache, MySQL and PHP from sources, you can use MacPorts or you can [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>New Mac <a href="http://www.apple.com/macosx/leopard/">OS X 10.5 Leopard</a> comes with new versions of Apache and PHP (<code>Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7l DAV/2 PHP/5.2.4</code>), so it is quite easy to setup a <a href="http://en.wikipedia.org/wiki/MAMP">MAMP</a> server. Sure there are other ways to do the setup: You can build <a href="http://httpd.apache.org/">Apache</a>, <a href="http://dev.mysql.com/">MySQL</a> and <a href="http://www.php.net/">PHP</a> from sources, you can use <a href="http://www.macports.org/">MacPorts</a> or you can use pre-build packages like <a href="http://www.mamp.info/">MAMP</a> or <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a>. But in my opinion, because Apache and PHP are already installed, they are easy way to go and will minimize you work.</p>
<h2>Apache</h2>
<p>To enable pre-installed PHP, you have to edit httpd.conf file:</p>
<pre lang="bash">sudo vi /private/etc/apache2/httpd.conf</pre>
<p>And uncomment next line:</p>
<pre lang="apache">LoadModule php5_module libexec/apache2/libphp5.so</pre>
<p>If you want to make other configuration changes, for example define virtual hosts, it&#8217;s better to use user&#8217;s configuration file:</p>
<pre lang="bash">sudo vi /private/etc/apache2/users/[username].conf</pre>
<p>After making changes, restart Apache aka Web Sharing. Go to System Preferences > Sharing and unselect and select again Web Sharing. That&#8217;s it. Now you have the Apache and PHP running. If there are any problems, you can examine the Apache error_log. Go to Console > /var/log > apache2 > error_log.</p>
<h2>PHP</h2>
<p>If you want to make changes to php.ini, do the following. Copy php.ini.default to php.ini:</p>
<pre lang="bash">sudo cp /private/etc/php.ini.default /private/etc/php.ini</pre>
<p>And to make changes:</p>
<pre lang="bash">sudo chmod 644 /private/etc/php.ini
sudo vi /private/etc/php.ini
sudo chmod 444 /private/etc/php.ini</pre>
<p>After making changes don&#8217;t forget to restart Apache.</p>
<h2>MySQL</h2>
<p>MySQL is a little trickier. It is not pre installed in OS X and in my opinion easiest way is to use binary from MySQL.com. So, <a href="http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg">download</a> the current version, which is mysql-5.0.45-osx10.4-i686.pkg at the moment and install it. Then install MySQLStartupItem.pkg and copy MySQL.prefPane to OSX/Library/PreferencePanes. It seems to be that current versions preference pane is not quite compatible with OS X 10.5. It shows if the server is running or stopped, but you can&#8217;t star or stop with it. MySQL starts when the OS starts, but you can start or stop it manually from console:</p>
<pre lang="bash">sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop</pre>
<p>MySQL with default settings use socket in /tmp and pre-installed PHP presumes it to be in /var/mysql, so you have to update the location in php.ini:</p>
<pre lang="ini">mysql.default_socket = /tmp/mysql.sock</pre>
<p>Perhaps you could also use a symbolic link from /var/mysql/mysql.sock to tmp/mysql.soc. <a href="http://dev.mysql.com/downloads/gui-tools/5.0.html">MySQL GUI Tools</a> are also working nicely with new OS X 10.5.</p>
<h2>Mac OS X 10.5</h2>
<p>No you should have a MAMP server running nicely. If you want to make host name changes &#8211; for example you can use different names for localhost to take advantage Apache&#8217;s virtual hosting &#8211; edit hosts file:</p>
<pre lang="bash">sudo vi /private/etc/hosts</pre>
]]></content:encoded>
			<wfw:commentRss>http://minimizr.com/blog/2007/10/setup-mamp-mac-apache-mysql-and-php-on-mac-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimal How to Setup LAMP Web Server</title>
		<link>http://minimizr.com/blog/2006/10/minimal-how-to-setup-lamp-web-server/</link>
		<comments>http://minimizr.com/blog/2006/10/minimal-how-to-setup-lamp-web-server/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 18:38:26 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.minimizr.com/blog/2006/10/minimal-how-to-setup-lamp-web-server/</guid>
		<description><![CDATA[Apache 2.0 Install Apache from Debian stable: apt-get install apache2 Apache is ready and running. Test that it is workin by pointing browser to www.mysite.com. Read Apache&#8217;s security tips. Apache&#8217;s files and directories are: /etc/apache2/sites-available/mysite.com: Your virtual domain configuration. /etc/apache2/sites-enabled/mydomain.com: Symlink to you configuration, when site is enabled with a2ensite mysite.com command. /var/log/apache2/: Logs. /var/www/mysite.com: [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://httpd.apache.org/" title="The Apache HTTP Server Project"><img id="image17" src="http://www.minimizr.com/wp-content/uploads/minimizr.com/2006/10/icon-apache-httpd-32.gif" alt="Apache" style="float:right"/></a></p>
<h4>Apache 2.0</h4>
<p>Install Apache from Debian stable:</p>
<pre lang="bash">apt-get install apache2</pre>
<p>Apache is ready and running. Test that it is workin by pointing browser to www.mysite.com. Read <a href="http://httpd.apache.org/docs/2.0/misc/security_tips.html">Apache&#8217;s security tips</a>.</p>
<p>Apache&#8217;s files and directories are:</p>
<ul>
<li><strong>/etc/apache2/sites-available/mysite.com</strong>: Your virtual domain configuration.</li>
<li><strong>/etc/apache2/sites-enabled/mydomain.com</strong>: Symlink to you configuration, when site is enabled with a2ensite mysite.com command.</li>
<li><strong>/var/log/apache2/</strong>: Logs.</li>
<li><strong>/var/www/mysite.com</strong>: Your site.</li>
</ul>
<p>Install <a href="http://cronolog.org/" title="Cronolog web log rotation program">Cronolog</a>:</p>
<pre lang="bash">apt-get install cronolog</pre>
<p>Make your sites configuration file in /etc/apache2/sites-available/mysite.com:</p>
<pre lang="apache">
<virtualHost *>
  ServerAdmin webmaster@mysite.com
  ServerName www.mysite.com
  ServerAlias mysite.com
  DocumentRoot /var/www/mysite.com
  ErrorLog "|/usr/bin/cronolog /var/log/apache2/%Y/%Y-%m-mysite.com-error.log"
  CustomLog "|/usr/bin/cronolog /var/log/apache2/%Y/%Y-%m-mysite-com-access.log" combined
</virtualHost>
</pre>
<p>Make /var/www/mysite.com directory for your sites files. Enable your sites configuration file:</p>
<pre lang="bash">a2ensite mysite.com</pre>
<p>Reload Apache:</p>
<pre lang="bash">/etc/init.d/apache2 reload</pre>
<p>If you for some reason want to remove the site from Apache configuration:</p>
<pre lang="bash">a2dissite mysite.com</pre>
<p>More about <a href="http://httpd.apache.org/docs/2.0/install.html">installing Apache</a>.</p>
<p><a href="http://www.php.net/" title="PHP"><img id="image18" src="http://www.minimizr.com/wp-content/uploads/minimizr.com/2006/10/icon-php-32.gif" alt="PHP" style="float:right"/></a></p>
<h4>PHP 5.1</h4>
<p>In order to use apt-get to install PHP 5, you need to add one of the <a href="http://www.dotdeb.org/">dotdeb.org</a> <a href="http://www.dotdeb.org/mirrors">mirrors</a> to /etc/apt/sources.list, like:</p>
<pre lang="text">deb http://packages.dotdeb.org stable all</pre>
<p>And istall PHP:</p>
<pre lang="bash">
apt-get update
apt-get install libapache2-mod-php5
</pre>
<p>Php.ini is in /etc/php5/apache2/php.ini and recommended .ini is in /usr/share/doc/php5-common/examples/php.ini-recommended.</p>
<p>More about <a href="http://www.php.net/manual/en/install.php">installing PHP</a>.</p>
<p><a href="http://www.mysql.com/" title="MySQL - The world's most popular open source database"><img id="image19" src="http://www.minimizr.com/wp-content/uploads/minimizr.com/2006/10/icon-mysql-32.gif" alt="MySQL" style="float:right"/></a></p>
<h4>MySQL 5.0</h4>
<p>Install MySQL also from dotdeb.org as PHP:</p>
<pre lang="bash">
apt-get install mysql-server
apt-get install php5-mysql
</pre>
<p>More about <a href="http://dev.mysql.com/doc/refman/5.0/en/installing.html">installing MySQL</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://minimizr.com/blog/2006/10/minimal-how-to-setup-lamp-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimal How to Setup VPS Server</title>
		<link>http://minimizr.com/blog/2006/10/minimal-how-to-setup-vps-server/</link>
		<comments>http://minimizr.com/blog/2006/10/minimal-how-to-setup-vps-server/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 19:54:58 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.minimizr.com/blog/2006/10/minimal-how-to-setup-vps-server/</guid>
		<description><![CDATA[Virtual Private Servers (VPS) come pre installed with operating system. Debian Linux is used in this how to. Debian&#8217;s apt packages are real time savers and they require minimum work. First thing to do is to install firewall and ntp service. Make a SSH connection with PuTTY to your VPS to install the programs. PicoFIREWALL [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Virtual Private Servers (VPS) come pre installed with operating system. Debian Linux is used in this how to. Debian&#8217;s apt packages are real time savers and they require minimum work. First thing to do is to install firewall and ntp service. Make a SSH connection with PuTTY to your VPS to install the programs.</p>
<p><a href="http://http://www.seismo.ethz.ch/linux/picofirewall.html/" title="picoFIREWALL"><img id="image22" src="http://www.minimizr.com/wp-content/uploads/minimizr.com/2006/10/icon-picofirewall-16.gif" alt="picoFIREWALL" style="float:right"/></a></p>
<h4>PicoFIREWALL</h4>
<p><a href="http://www.seismo.ethz.ch/linux/picofirewall.html" label="picoFIREWALL: A Linux Firewall for Debian, SuSE, and other Linux Distributions">PicoFIREWALL</a> is a Linux kernels iptable&#8217;s configuration script and it requires minimum work to install and configure. Add the following line in your file /etc/apt/sources.list:</p>
<pre lang="text">deb http://debian.seismo.ethz.ch sarge ethz_sed</pre>
<p>Install picoFIREWALL:</p>
<pre lang="bash">apt-get update; apt-get install picofirewall</pre>
<p>PicoFIREWALL is now installed and running, but aknowledge that with default settings picoFIREWALL prevents all incoming connections into the server, including SSH. And since you don&#8217;t have a console login for the VPS server you have to make some configuration to be able to login again. Edit /etc/picofirewall/open_log.cfg file and add:</p>
<pre lang="text">0/0,tcp,22</pre>
<p>This opens SSH port 22 connection to all ips. You could use your desktop client&#8217;s ip and add instead something like:</p>
<pre lang="text">111.222.111.222,tcp,22</pre>
<p>But remember that your internet connection&#8217;s ip might change. If you know any computer you have access and whitch ip is not changin, it might be good backup to add that ip as allowed. I don&#8217;t know what is the best solution if you only have a changing ip and you don&#8217;t want to make port 22 open to everybody. One might think that services like <a href="http://www.dyndns.com/">DynDNS</a> is the answer, but these services don&#8217;t make different the fact that your connections ip is still changing and kernels iptables operates only on ip address layer and DNS layer is higher layer.</p>
<p>If and when you want to open the http port 80 edit /etc/picofirewall/open_log.cfg file and add:</p>
<pre lang="text">0/0,tcp,80</pre>
<p>After changing picoFIREWALL&#8217;s configuration run:</p>
<pre lang="bash">/etc/init.d/picofirewall start</pre>
<p><a href="http://www.ntp.org/" title="NTP"><img id="image21" src="http://www.minimizr.com/wp-content/uploads/minimizr.com/2006/10/icon-ntp-16.gif" alt="NTP" style="float:right"/></a></p>
<h4>Ntp</h4>
<p>There is no reason why you would not like to have a exact time in your server. So install ntp:</p>
<pre lang="bash">
apt-get install ntp
apt-get install ntp-server
</pre>
<p>To set the time first time you have to stop the ntp service, set the time and start the sevice again:</p>
<pre lang="bash">
/etc/init.d/ntp-server stop
ntpdate pool.ntp.org
/etc/init.d/ntp-server start
</pre>
<p>If you notice that ntpdate won&#8217;t change the time of the server, your VPS hardware is propably forcing Linux time synchronization and it is propably not the exact time. Then you have to edit /etc/sysctl.con file and add the line to disable forced synchronization:</p>
<pre lang="text">xen.independent_wallclock = 1</pre>
<p>More info about virtualization&#8217;s <a href="http://www.novell.com/documentation/vmserver/index.html?page=/documentation/vmserver/vm_server_admin/data/b5q74jb.html">time synchronization</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://minimizr.com/blog/2006/10/minimal-how-to-setup-vps-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimal How to Start a Blog</title>
		<link>http://minimizr.com/blog/2006/10/minimal-how-to-start-a-blog/</link>
		<comments>http://minimizr.com/blog/2006/10/minimal-how-to-start-a-blog/#comments</comments>
		<pubDate>Sun, 15 Oct 2006 18:06:30 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.minimizr.com/blog/2006/10/minimal-how-to-start-a-blog/</guid>
		<description><![CDATA[Planning Choose a topic: How to Choose a Niche Topic for Your Blog If you come up with more than one topic: One Blog Many Cateogories Or Many Blogs Choose a domain: Choosing the Domain Name for Your Blog Find out if the domain is available: Instant Domain Search Desktop Client Install SSH clients: PuTTY [...]]]></description>
			<content:encoded><![CDATA[<p></p><h4>Planning</h4>
<ul>
<li>Choose a topic: <a href="http://www.problogger.net/archives/2006/02/15/how-to-choose-a-niche-topic-for-your-blog/">How to Choose a Niche Topic for Your Blog</a></li>
<li>If you come up with more than one topic: <a href="http://www.problogger.net/archives/2005/04/19/one-blog-many-cateogories-or-many-blogs/">One Blog Many Cateogories Or Many Blogs</a></li>
<li>Choose a domain: <a href="http://www.problogger.net/archives/2006/02/16/choosing-the-domain-name-for-your-blog/">Choosing the Domain Name for Your Blog</a></li>
<li>Find out if the domain is available: <a href="http://instantdomainsearch.com/">Instant Domain Search</a></li>
</ul>
<h4>Desktop Client</h4>
<ul>
<li>Install SSH clients: <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> and <a href="http://winscp.net/">WinSCP</a> for Windows.</li>
</ul>
<h4>Web Server</h4>
<ul>
<li>Choose a server platform: There are two major options for bloggin platform: to use a free service like <a href="http://www.blogger.com/">Blogger</a> or to have have a hosted service with your own domain. The latter option can be a hosted website, virtual private server (VPS) or dedicated server. With a free service you have only littel control over your blog. Hosted website might be the best options for easy setup and maintainance but in vps is the best option having total control over your server and blogging software with usually reasonable price.</li>
<li>Order the hosting service: Choosing the hosting service possibly depends if you want to have it in your country or somewhere else. You can start looking options for example with <a href="http://www.godaddy.com/">Go Daddy</a>.</li>
<li>Register the domain: Usually domain registeration is included in the hosting service.</li>
<li>Install and configure software: Linux, firewall, ntp, <a href="http://httpd.apache.org/">Apache</a>, <a href="http://www.mysql.com/">MySQL</a> and <a href="http://www.php.net/">PHP</a>.</li>
</ul>
<h4>Blogging Software</h4>
<ul>
<li>Choose a software: For mainly blogging <a href="http://www.wordpress.org/">WordPress</a> is a good choise and for content management system (CMS) there is <a href="http://www.drupal.org/">Drupal</a>. These are both php choises. There are also choises for other paltforms, but for this purpose I would say that php is a agile choise.</li>
<li>Install and configure the software: WordPress has a good <a href="http://codex.wordpress.org/">documentation</a>.</li>
<li>Choose or create the theme for the blog: <a href="http://wordpress.org/extend/themes/">WordPress Themes</a></li>
<li>Start blogging</li>
</ul>
<p>This is a minimal how to start a blog list. More about them later, but with the list you are ready to go. There are many more things to learn and consider, like writing content, blog networks, search engine optimization (SEO), monetizing blog and so on. Also more about them later.</p>
<p>About topic planning there is not going to be more here for now because, as you can see, <a href="http://www.problogger.net/">ProBlogger</a> is an excellent resourse for that.</p>
]]></content:encoded>
			<wfw:commentRss>http://minimizr.com/blog/2006/10/minimal-how-to-start-a-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
