<?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>The Zend Framework in Practice &#187; Zend Server</title>
	<atom:link href="http://zf.gm-ram.com/topics/zend-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://zf.gm-ram.com</link>
	<description>Developing Web Applications with the Zend Framework</description>
	<lastBuildDate>Mon, 02 Jan 2012 10:20:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Setting up Zend Server on Red Hat Enterprise Linux</title>
		<link>http://zf.gm-ram.com/posts/setting-up-zend-server-on-red-hat-enterprise-linux/</link>
		<comments>http://zf.gm-ram.com/posts/setting-up-zend-server-on-red-hat-enterprise-linux/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 16:02:40 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Zend Server]]></category>

		<guid isPermaLink="false">http://domain2284114.sites.fasthosts.com/?p=1</guid>
		<description><![CDATA[Zend Framework applications have certain prerequisites to run properly. Some of these are general, some are specific to the particular application. The general requirement is a web server that supports PHP version 5.2.x or later. The most commonly used web server is Apache, although there are others that may be used. There are many ways [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework applications have certain prerequisites to run properly. Some of these are general, some are specific to the particular application. The general requirement is a web server that supports PHP version 5.2.x or later. The most commonly used web server is Apache, although there are others that may be used.<span id="more-1"></span></p>
<p>There are many ways of setting up and maintaining a suitable web server. One very convenient way has been released by Zend, in the form of their product <strong>Zend Server</strong>. This comes in two versions: a free, unsupported version (Zend Server Community Edition) and a commercially supported version.</p>
<p>Zend Server has one special advantage for Zend Framework applications: it will install an up-to-date version of the framework on the target system, and add it to the PHP include path, so that any PHP application running on the server will be able to make use of it automatically. Also it will update the framework as part of its general update facility.</p>
<p>This article will look at setting up Zend Server Community Edition (CE) on a server running Red Hat Enterprise Linux 5.3 or a compatible OS, such as CentOS 5.3. This is a common platform for running a web server.</p>
<p>The target machine should have the Apache web server installed, but should not have PHP support added. This is to avoid conflicts between the version of PHP shipped with the Linux distribution and that installed by Zend Server CE.</p>
<p>The following steps need to be performed as root.</p>
<h3>Set up the Zend Server CE repository</h3>
<p>This is done by creating a repository file with the following content:</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Zend<span style="">&#93;</span></span>
<span style="color: #000099;">name</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Zend CE $releasever - $basearch - Released Updates</span>
<span style="color: #000099;">baseurl</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">http://repos.zend.com/rpm/ce/$basearch/</span>
<span style="color: #000099;">enabled</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
<span style="color: #000099;">gpgcheck</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span>
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Zendce-noarch<span style="">&#93;</span></span>
<span style="color: #000099;">name</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Zend CE - noarch</span>
<span style="color: #000099;">baseurl</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">http://repos.zend.com/rpm/ce/noarch</span>
<span style="color: #000099;">enabled</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
<span style="color: #000099;">gpgcheck</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span></pre></div></div>

<p>Call the file <em>zend.repo</em> and store it in the <em>/etc/yum.repos.d</em> directory.</p>
<p>This can also be done using a graphical utility as follows:</p>
<ol>
<li>Select <em>Add/Remove Software</em> from the <em>Applications</em> menu.</li>
<li>Select the <em>Edit &#8211; Repositories</em> menu item.</li>
<li>Add the two new repositories by pressing the <em>Add</em> button, then entering the details given above in the dialog that is brought up.</li>
<li>Make the repositories active by checking the box next to them in the list.</li>
<li>Exit the Repository Manager dialog by pressing the <em>Close</em> button.</li>
</ol>
<p>The Zend Server CE packages should now be available for installation.</p>
<h3>Set the SELinux System Setting to Permissive</h3>
<p>If you are using SELinux on the server, set its system setting to permissive for the duration of the installation and set up.</p>
<p>This can be done from the terminal using the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">setenforce permissive</pre></div></div>

<p>This can also be done using a graphical utility by selecting either <em>Security Level and Firewall</em> or <em>SELinux Management</em> from the <em>System &#8211; Administration</em> menu. In the former case, the setting can be set from the SELinux tab; in the latter, the setting can be set from the front page.</p>
<h3>Install Zend Server CE from the repository</h3>
<p>Run the following command from the terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> zend-ce</pre></div></div>

<p>When the installation has completed, run the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum clean all</pre></div></div>

<p>This can also be done using a graphical utility by select <em>Add/Remove Software</em> from the <em>Applications</em> menu. Go to the <em>List</em> tab in the main window, check the box next to the <strong>zend-ce</strong> package, and press the <em>Apply</em> button.</p>
<p>To keep the installation up to date, you should periodically run the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum update <span style="color: #ff0000;">&quot;*zend*&quot;</span></pre></div></div>

<p>This can also be done using a graphical utility by selecting <em>Software Updater</em> from the <em>Applications &#8211; System Tools</em> menu. You will be presented with a list of the updates available for your system. Make sure all the updates which you wish to install are checked and then click on <em>Apply Updates</em>.</p>
<h3>Set Zend Server CE to launch at start up</h3>
<p>It is advisable to set the <strong>zend-server</strong> service to start automatically when the machine boots. Also, you should set the web server service (<strong>httpd</strong>) <em>not</em> to be started automatically by the system, as zend-server will do this itself.</p>
<p>This can be done from the terminal using the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">chkconfig zend-server on
chkconfig httpd off</pre></div></div>

<p>This can also be done using a graphical utility by selecting <em>Services</em> from the <em>System &#8211; Administration</em> menu. You can then check zend-server on and httpd off in the Background Services list using the GUI.</p>
<h3>Set the Administration (Web) Interface Password</h3>
<p>Zend Server has a browser-based administration interface. This can be accessed via either of the following URLs:</p>
<ul>
<li><a href="http://localhost:10081/ZendServer">http://localhost:10081/ZendServer</a></li>
<li><a href="https://localhost:10082/ZendServer">https://localhost:10082/ZendServer</a></li>
</ul>
<p>The secure (https) URL should be preferred, unless port 443 is not open on your machine, in which case you will have to use the other (http) URL.</p>
<p>When you navigate to this URL on the target machine, you will be given the opportunity to set the Zend Server administrative password.</p>
]]></content:encoded>
			<wfw:commentRss>http://zf.gm-ram.com/posts/setting-up-zend-server-on-red-hat-enterprise-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

