<?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>Hogyan? &#187; apache</title>
	<atom:link href="http://hogyan.org/cimkek/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://hogyan.org</link>
	<description>Linux és Windows hogyanok, leírások</description>
	<lastBuildDate>Tue, 16 Mar 2010 12:00:17 +0000</lastBuildDate>
	
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu + Ruby + Apache</title>
		<link>http://hogyan.org/ubuntu-ruby-apache</link>
		<comments>http://hogyan.org/ubuntu-ruby-apache#comments</comments>
		<pubDate>Mon, 29 Jun 2009 05:46:30 +0000</pubDate>
		<dc:creator>Ikon</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[szerver]]></category>
		<category><![CDATA[telepítés]]></category>

		<guid isPermaLink="false">http://hogyan.org/?p=2476</guid>
		<description><![CDATA[Ez az én megoldásom az Apache-Ruby kombóra Ubuntu 8 és 9 alá.

Telepítsük az apache, eruby és ruby mod-okat:

sudo apt-get install apache2 eruby libapache2-mod-ruby

Aktiváljuk az actions mod-ot:

sudo a2enmod actions

Ez pedig a mozgatórugója az egésznek, ne felejtsük el a symlinket!:

sudo ln -s `which eruby` /usr/lib/cgi-bin/eruby

/ect/apache2/mods-available/ruby.conf nevű fájlt pedig a következő tartalommal hozzuk létre:

AddType text/html .rhtml
&#160;
RubyRequire apache/ruby-run
RubyRequire apache/eruby-run


# [...]]]></description>
			<content:encoded><![CDATA[<p>Ez az én megoldásom az Apache-Ruby kombóra Ubuntu 8 és 9 alá.<br />
<span id="more-2476"></span><br />
Telepítsük az <em>apache, eruby</em> és <em>ruby</em> mod-okat:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 eruby libapache2-mod-ruby</pre></div></div>

<p>Aktiváljuk az <em>actions</em> mod-ot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod actions</pre></div></div>

<p>Ez pedig a mozgatórugója az egésznek, ne felejtsük el a symlinket!:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">which</span> eruby<span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>eruby</pre></div></div>

<p><em>/ect/apache2/mods-available/ruby.conf</em> nevű fájlt pedig a következő tartalommal hozzuk létre:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddType</span> text/html .rhtml
&nbsp;
RubyRequire apache/ruby-run
RubyRequire apache/eruby-run</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># Execute *.rbx files as Ruby scripts</span>
<span style="color: #00007f;">Options</span> +ExecCGI
<span style="color: #00007f;">SetHandler</span> ruby-object
RubyHandler Apache::RubyRun.instance
<span style="color: #adadad; font-style: italic;"># Handle *.rhtml files as eRuby files</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">SetHandler</span> ruby-object
RubyHandler Apache::ERubyRun.instance</pre></div></div>

<p><em>/ect/apache2/mods-available/actions.conf</em> nevű fájlba ezt szúrjuk be:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">Action</span> application/x-httpd-eruby /cgi-bin/eruby</pre></div></div>

<p><em>/etc/mime.types</em> filehoz ezt adjuk még hozzá:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">application/x-httpd-eruby            rhtml</pre></div></div>

<p>Majd újralőjjük az apache-ot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 reload</pre></div></div>

<p>Aztán egy teszt <em>x.rhtml</em> file és láthatjuk, hogy jól dolgoztunk-e:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;% puts 'Hello World!' %&gt;</pre></div></div>


	Címkék: <a href="http://hogyan.org/cimkek/apache" title="apache" rel="tag">apache</a>, <a href="http://hogyan.org/cimkek/ruby" title="Ruby" rel="tag">Ruby</a>, <a href="http://hogyan.org/cimkek/szerver" title="szerver" rel="tag">szerver</a>, <a href="http://hogyan.org/cimkek/telepites" title="telepítés" rel="tag">telepítés</a>, <a href="http://hogyan.org/cimkek/ubuntu" title="Ubuntu" rel="tag">Ubuntu</a>
]]></content:encoded>
			<wfw:commentRss>http://hogyan.org/ubuntu-ruby-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache, PHP, MySQL Windows alatt</title>
		<link>http://hogyan.org/apache-php-mysql-windows-xp</link>
		<comments>http://hogyan.org/apache-php-mysql-windows-xp#comments</comments>
		<pubDate>Mon, 20 Apr 2009 06:01:03 +0000</pubDate>
		<dc:creator>charlie</dc:creator>
				<category><![CDATA[XP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[beállítások]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[szerver]]></category>
		<category><![CDATA[telepítés]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://hogyan.org/?p=564</guid>
		<description><![CDATA[Ha webfejlesztéssel, webprogramozással szeretnénk foglalkozni, vagy csak mindig ki szeretnénk próbálni php-s cuccokat, jól jön, ha az asztali gépen is fent van egy webszerver.
Erre a célra szolgál a WAMP: Windows+Apache+MySQL+PHP négyes.
Azonban azt nem árt tudni, hogy Windows alatt az Apache éles felhasználásra nem javasolt!
A leírást Windows XP SP3 alatt végzem, azonban a többi Windows változatban [...]]]></description>
			<content:encoded><![CDATA[<p>Ha webfejlesztéssel, webprogramozással szeretnénk foglalkozni, vagy csak mindig ki szeretnénk próbálni php-s cuccokat, jól jön, ha az asztali gépen is fent van egy webszerver.</p>
<p>Erre a célra szolgál a WAMP: Windows+Apache+MySQL+PHP négyes.</p>
<p>Azonban azt nem árt tudni, hogy Windows alatt az Apache éles felhasználásra nem javasolt!</p>
<p>A leírást Windows XP SP3 alatt végzem, azonban a többi Windows változatban is működnie kell.</p>
<p><span id="more-564"></span></p>
<h3>MySQL letöltése és telepítése</h3>
<p>Legelőször töltsük le és telepítsük a MySQL kiszolgálót.</p>
<p><a href="http://dev.mysql.com/downloads/mysql/5.1.html#win32">Ezen az oldalon</a> tudjuk letölteni a rendszerünknek megfelelő (32 vagy 64 bites) telepítőt. A Windows Essentials verziót töltsük le.</p>
<p>Ha kész a letöltés, indítsuk el a telepítést.</p>
<div id="attachment_1225" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/2009-04-08_2133.png" rel="lightbox[564]"><img class="size-medium wp-image-1225" src="http://hogyan.org/files/2008/09/2009-04-08_2133-500x297.png" alt="Windows XP: Fájl futtatásának engedélyezése" width="500" height="297" /></a>
<p class="wp-caption-text">Windows XP: Fájl futtatásának engedélyezése</p>
</div>
<p>A MySQL telepítőjének első lépésében üdvözöl minket, itt nyomjuk csak tovább a Next gombra kattintva.</p>
<p>Ezután választhatjuk ki, hogy hogyan szeretnénk telepíteni. Válasszuk a legfelső, Typical telepítési opciót.</p>
<div id="attachment_1226" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/2009-04-08_2139.png" rel="lightbox[564]"><img class="size-medium wp-image-1226" src="http://hogyan.org/files/2008/09/2009-04-08_2139-500x297.png" alt="MySQL: Telepítés módjának kiválasztása" width="500" height="297" /></a>
<p class="wp-caption-text">MySQL: Telepítés módjának kiválasztása</p>
</div>
<p>Majd a következő lépésben kattintsunk az Install gombra.</p>
<div id="attachment_1227" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/2009-04-08_2140.png" rel="lightbox[564]"><img class="size-medium wp-image-1227" src="http://hogyan.org/files/2008/09/2009-04-08_2140-500x297.png" alt="MySQL: fájlmásolás elkezdése" width="500" height="297" /></a>
<p class="wp-caption-text">MySQL: fájlmásolás elkezdése</p>
</div>
<p>Majd elkezdődik a fájlok felmásolása. Bejön egy tájékoztató, itt kétszer nyomjuk meg a Next gombot.</p>
<p>Ezután bejön a telepítés utolsó lépése. Itt legyen bepipálva a Configure MySQL Server now opció</p>
<div id="attachment_1228" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/2009-04-08_2142.png" rel="lightbox[564]"><img class="size-medium wp-image-1228" src="http://hogyan.org/files/2008/09/2009-04-08_2142-500x297.png" alt="MySQL: Kész a telepítés" width="500" height="297" /></a>
<p class="wp-caption-text">MySQL: Kész a telepítés</p>
</div>
<p>A finish gombra kattintás után elindul a MySQL Server Configurator. Első lépésben üdvözöl minket, itt kattintsunk a Next gombra.</p>
<p>A következő lépésben válasszuk a Detailed Configuration opciót.</p>
<div id="attachment_1229" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/2009-04-08_2143.png" rel="lightbox[564]"><img class="size-medium wp-image-1229" src="http://hogyan.org/files/2008/09/2009-04-08_2143-500x297.png" alt="MySQL Configurator: Beállítási mód kiválasztása" width="500" height="297" /></a>
<p class="wp-caption-text">MySQL Configurator: Beállítási mód kiválasztása</p>
</div>
<p>A következő lépésben választhatjuk ki, hogy milyen gépre telepítjük a MySQL szervert. Ha csak tesztelésre kell, akkor a legfelső, Developer (fejlesztő) opciót válasszuk. Ha intranet, vagy internetes kiszolgáló a gép, akkor a Server Machine opciót válasszuk.</p>
<div id="attachment_1230" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/2009-04-08_2145.png" rel="lightbox[564]"><img class="size-medium wp-image-1230" src="http://hogyan.org/files/2008/09/2009-04-08_2145-500x297.png" alt="Szerver típusának meghatározása" width="500" height="297" /></a>
<p class="wp-caption-text">Szerver típusának meghatározása</p>
</div>
<p>Majd válasszuk a Multifunctional Database opciót.</p>
<div id="attachment_1231" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/adatbazis-hasznalati-modjanak-kivalasztasa.png" rel="lightbox[564]"><img class="size-medium wp-image-1231" src="http://hogyan.org/files/2008/09/adatbazis-hasznalati-modjanak-kivalasztasa-500x297.png" alt="Adatbázis használati módjának kiválasztása" width="500" height="297" /></a>
<p class="wp-caption-text">Adatbázis használati módjának kiválasztása</p>
</div>
<p>A következő lépésben az InnoDB adatbázisok helyét határozhatjuk meg. Alapesetben minden maradhat ahogy a telepítő felajánlja.</p>
<div id="attachment_1232" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/innodb_tablespace_settings.png" rel="lightbox[564]"><img class="size-medium wp-image-1232" src="http://hogyan.org/files/2008/09/innodb_tablespace_settings-500x297.png" alt="InnoDB táblák helyének beállítása" width="500" height="297" /></a>
<p class="wp-caption-text">InnoDB táblák helyének beállítása</p>
</div>
<p>Következő lépésnél válasszuk a Decision Support (DSS)/OLAP opciót fejlesztői gép esetén. Ha rendesz kiszolgálóra rakjuk fel, akkor válasszuk a Manual módot, és értéknek kis oldalak esetén 100-at, közepes méretűek esetén 300-at, míg nagyobb terhelés esetén 500-at írjunk be.</p>
<div id="attachment_1233" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/concurent_connections.png" rel="lightbox[564]"><img class="size-medium wp-image-1233" src="http://hogyan.org/files/2008/09/concurent_connections-500x297.png" alt="Párhuzamos kapcsolatok számának beállítása" width="500" height="297" /></a>
<p class="wp-caption-text">Párhuzamos kapcsolatok számának beállítása</p>
</div>
<p>Következő lépésnél tudjuk a portokat beállítani. A Enable TCP/IP Networking opció mindenképpen legyen bepipálva, a port maradjon 3306, valamint ha nem csak a saját gépünkön szeretnénk elérni, akkor pipáljuk be az Add firewall exception opciót, melynek hatására megpróbálja a tűzfalunkon engedélyezni ezt a portot a varázsló.</p>
<div id="attachment_1234" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/network_options.png" rel="lightbox[564]"><img class="size-medium wp-image-1234" src="http://hogyan.org/files/2008/09/network_options-500x297.png" alt="Hálózati opciók" width="500" height="297" /></a>
<p class="wp-caption-text">Hálózati opciók</p>
</div>
<p>A következő, karakterkódolással kapcsolatos részben válasszuk a középső, Best support for Multilingualism opciót.</p>
<div id="attachment_1235" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/character_set.png" rel="lightbox[564]"><img class="size-medium wp-image-1235" src="http://hogyan.org/files/2008/09/character_set-500x297.png" alt="Karakterkódolás beállítása" width="500" height="297" /></a>
<p class="wp-caption-text">Karakterkódolás beállítása</p>
</div>
<p>Az utolsó előtti lépésben legyen bepipálva, hogy szolgáltatásként fusson a MySQL (Install As Windows Service). Ha szerverre települ a MySQL akkor a Launch th MySQL server automatically opció (automatikusan elindul a Windows indulásakor), fejlesztői gépen ezt felesleges, mivel nincs mindig szükség rá.</p>
<p>Pipáljuk be az Include Bin Directory in Windows PATH opciót.</p>
<div id="attachment_1236" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/windows_service.png" rel="lightbox[564]"><img class="size-medium wp-image-1236" src="http://hogyan.org/files/2008/09/windows_service-500x297.png" alt="Windows szolgáltatás beállítása" width="500" height="297" /></a>
<p class="wp-caption-text">Windows szolgáltatás beállítása</p>
</div>
<p>Adjunk meg egy jelszót a root felhasználónak.</p>
<div id="attachment_1237" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/mysql-configurator-root-jelszo-megadasa.png" rel="lightbox[564]"><img class="size-medium wp-image-1237" src="http://hogyan.org/files/2008/09/mysql-configurator-root-jelszo-megadasa-500x297.png" alt="root jelszó megadása" width="500" height="297" /></a>
<p class="wp-caption-text">root jelszó megadása</p>
</div>
<p>Végül kattintsunk az Execute gombra, hogy a beállítások végrehajtódjanak.</p>
<div id="attachment_1238" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/execute.png" rel="lightbox[564]"><img class="size-medium wp-image-1238" src="http://hogyan.org/files/2008/09/execute-500x297.png" alt="Beállítások elmentése" width="500" height="297" /></a>
<p class="wp-caption-text">Beállítások elmentése</p>
</div>
<p>Ha minden jól sikerült, akkor mindegyik opció előtt egy kék pipa jelent meg, és a megjelent a Finish gomb is.</p>
<div id="attachment_1239" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/finish.png" rel="lightbox[564]"><img class="size-medium wp-image-1239" src="http://hogyan.org/files/2008/09/finish-500x375.png" alt="Kész a beállítás" width="500" height="375" /></a>
<p class="wp-caption-text">Kész a beállítás</p>
</div>
<p>Ezzel készen is vagyunk a beállítással.</p>
<p>Ha nem jelöltük be az automatikus indítást, akkor a következő parancsokkal tudjuk leállítani és elindítani a MySQL szolgáltatást:</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">net start mysql</pre></div></div>

<p>leállítás:</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">net stop mysql</pre></div></div>

<p>Ezeket a parancsokat egy Parancssor ablakba írjuk be.</p>
<div id="attachment_1240" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/net_start_mysql.png" rel="lightbox[564]"><img class="size-medium wp-image-1240" src="http://hogyan.org/files/2008/09/net_start_mysql-500x247.png" alt="MySQL szolgáltatás elindítása parancssorból" width="500" height="247" /></a>
<p class="wp-caption-text">MySQL szolgáltatás elindítása parancssorból</p>
</div>
<h3>Apache letöltése és telepítése</h3>
<p>Jelenleg a legújabb Apache verzió a 2.2.14-es, ennek letöltéséhez kattintsunk a következő linkre: <a href="ftp://crysys.hit.bme.hu/pub/apache/dist/httpd/binaries/win32/apache_2.2.14-win32-x86-openssl-0.9.8k.msi">apache_2.2.14-win32-x86-openssl-0.9.8k.msi</a>.</p>
<p>Az Apache telepítője első lépésként üdvözöl minket, itt kattintsunk a Next gombra.</p>
<p>Fogadjuk el a licenc szerződést az I Accept&#8230; rádiógombra kattintva</p>
<div id="attachment_1241" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/apache_licenc.png" rel="lightbox[564]"><img class="size-medium wp-image-1241" src="http://hogyan.org/files/2008/09/apache_licenc-500x377.png" alt="Apache licenc szerződésének elfogadása" width="500" height="377" /></a>
<p class="wp-caption-text">Apache licenc szerződésének elfogadása</p>
</div>
<p>Következő lépésben kattintsunk a Next gombra.</p>
<p>Majd adjuk meg a gép domain nevét (otthoni számítógép esetén a Windows munkacsoport nevét írjuk ide), a gép nevét, valamint az email címünket</p>
<div id="attachment_1242" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2008/09/apache_server_info.png" rel="lightbox[564]"><img class="size-medium wp-image-1242" src="http://hogyan.org/files/2008/09/apache_server_info-500x377.png" alt="Apache szerver információk megadása" width="500" height="377" /></a>
<p class="wp-caption-text">Apache szerver információk megadása</p>
</div>
<p>A telepítés módjánál válasszuk a Typical opciót, ezutáni lépésben fogadjuk el azt a telepítési helyet amit felajánl, majd végül kattintsunk az Install gombra.</p>
<p>Ha kész a telepítés, kattintsunk a finish gombra. Ekkor már megjelent az Apache ikonja a tálca mellett.</p>
<p>Az Apache szolgáltatást leállítani úgy tudjuk, hogy a tálcán kettőt kattintsunk az ikonjára, majd a Stop gombra.</p>
<h3>PHP telepítése</h3>
<p>Töltsük e le a php.net oldalról a legújabb PHP telepítőt. Jelenleg az 5.2.9 a legutolsó verzió, ennek letöltéséhez kattintsunk ide: <a href="http://hu2.php.net/get/php-5.2.9-1-win32-installer.msi/from/hu.php.net/mirror">php-5.2.9-1-win32-installer.msi</a> (16,9 MiBájt).</p>
<p>Indítsuk el ezután a telepítőt. A PHP telepítése egyszerű. A második lépésben el kell fogadni a licenc feltételeket az I accept&#8230; jelölőnégyzetre kattintva. Majd a harmadik lépésben meg kell adni a telepítés helyét. Én a <strong><span style="color: #003300">C:\PHP5</span></strong> mappába telepítem.</p>
<div id="attachment_1243" class="wp-caption aligncenter" style="width: 509px"><a href="http://hogyan.org/files/2008/09/php_telepites_helye.png" rel="lightbox[564]"><img class="size-full wp-image-1243" src="http://hogyan.org/files/2008/09/php_telepites_helye.png" alt="PHP telepítésének helye" width="499" height="385" /></a>
<p class="wp-caption-text">PHP telepítésének helye</p>
</div>
<p>A következő lépésben lehet kiválasztani, hogy milyen szerverünk van. Itt a listából az Apache 2.2.x module opciót válasszuk.</p>
<div id="attachment_1244" class="wp-caption aligncenter" style="width: 509px"><a href="http://hogyan.org/files/2008/09/server_modul.png" rel="lightbox[564]"><img class="size-full wp-image-1244" src="http://hogyan.org/files/2008/09/server_modul.png" alt="Szerver modul kiválasztása" width="499" height="385" /></a>
<p class="wp-caption-text">Szerver modul kiválasztása</p>
</div>
<p>Következő lépésben mondjuk meg, hogy hol az Apache konfigurációs fáljok mappája. Tallózzuk ki (vagy csak írjuk, másoljuk be) a <span style="color: #003300"><strong>C:\Program Files\Apache Software Foundation\Apache2.2\conf\</strong></span> elérési utat.</p>
<div id="attachment_1245" class="wp-caption aligncenter" style="width: 509px"><a href="http://hogyan.org/files/2008/09/apache_conf_dir.png" rel="lightbox[564]"><img class="size-full wp-image-1245" src="http://hogyan.org/files/2008/09/apache_conf_dir.png" alt="Apache konfigurációs fájlok helyének meghatározása" width="499" height="385" /></a>
<p class="wp-caption-text">Apache konfigurációs fájlok helyének meghatározása</p>
</div>
<p>A következő lépésnél lehet kiválasztani a szükséges PHP modulokat (Extensions). Én a következőket szoktam telepíteni:</p>
<ul>
<li>bzip2</li>
<li>Curl</li>
<li>EXIF</li>
<li>GD2</li>
<li>Gettext</li>
<li>IMAP</li>
<li>LDAP (csak ha kell LDAP támogatás)</li>
<li>Mycript</li>
<li>MySQL</li>
<li>MySQLi (MySQL adatbázis eléréséhez)</li>
<li>XML-RPC</li>
<li>zip</li>
</ul>
<div id="attachment_1247" class="wp-caption aligncenter" style="width: 509px"><a href="http://hogyan.org/files/2008/09/php_modulok_kivalasztasa.png" rel="lightbox[564]"><img class="size-full wp-image-1247" src="http://hogyan.org/files/2008/09/php_modulok_kivalasztasa.png" alt="Telepítendő PHP kiterjesztések (modulok) kiválasztása" width="499" height="385" /></a>
<p class="wp-caption-text">Telepítendő PHP kiterjesztések (modulok) kiválasztása</p>
</div>
<p>Majd végül kattintsunk az Install gombra és ha kész a Finish gombra. Ahhoz, hogy használni tudjuk az Apacheal a PHP-t, a telepítés után újra kell indítani a Windowst.</p>
<p>Valamint be kell állítanunk, hogy php fájlok is lehetnek kezdőlapok.</p>
<p>Ehhez nyissuk meg a C:\Program Files\Apache Software Foundation\Apache2.2\conf mappában lévő httpd.conf fájlt, majd keressük meg a következő részt benne:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">DirectoryIndex</span> index.html index.htm</pre></div></div>

<p>Majd a végére írjuk be az index.php-t is:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">DirectoryIndex</span> index.html index.htm index.php</pre></div></div>

<p><strong>C:\Program Files\Apache Software Foundation\Apache2.2\htdocs</strong> mappa lesz a gyökérkönyvtár (tehát a weboldalra szánt fájlokat a htdocs mappába másoljuk).</p>
<p>Töltsük le a legutolsó phpMyAdmint innét: <a href="http://www.phpmyadmin.net/home_page/downloads.php">http://www.phpmyadmin.net/home_page/downloads.php</a></p>
<p>Majd csomagoljuk ki a fenti mappába.</p>
<p>Végül nyissuk meg a böngészőnkben: <a href="http://localhost/phpMyAdmin-VERZIO-all-languages">http://localhost/phpMyAdmin-VERZIO-all-languages</a> címen ahol a VERZIO a phpmyadmin verziója.</p>

	Címkék: <a href="http://hogyan.org/cimkek/apache" title="apache" rel="tag">apache</a>, <a href="http://hogyan.org/cimkek/beallitasok" title="beállítások" rel="tag">beállítások</a>, <a href="http://hogyan.org/cimkek/mysql" title="mysql" rel="tag">mysql</a>, <a href="http://hogyan.org/cimkek/php" title="php" rel="tag">php</a>, <a href="http://hogyan.org/cimkek/program" title="program" rel="tag">program</a>, <a href="http://hogyan.org/cimkek/szerver" title="szerver" rel="tag">szerver</a>, <a href="http://hogyan.org/cimkek/telepites" title="telepítés" rel="tag">telepítés</a>, <a href="http://hogyan.org/cimkek/windows" title="Windows" rel="tag">Windows</a>, <a href="http://hogyan.org/cimkek/xp" title="XP" rel="tag">XP</a>
]]></content:encoded>
			<wfw:commentRss>http://hogyan.org/apache-php-mysql-windows-xp/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Komplett Ubuntu szerver ISPConfiggal</title>
		<link>http://hogyan.org/ubuntu-server-lamp-mail-ispconfig</link>
		<comments>http://hogyan.org/ubuntu-server-lamp-mail-ispconfig#comments</comments>
		<pubDate>Tue, 07 Apr 2009 06:04:14 +0000</pubDate>
		<dc:creator>charlie</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[courier]]></category>
		<category><![CDATA[hálózat]]></category>
		<category><![CDATA[Intrepid]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[pureftpd]]></category>
		<category><![CDATA[szerver]]></category>
		<category><![CDATA[telepítés]]></category>

		<guid isPermaLink="false">http://hogyan.org/?p=1182</guid>
		<description><![CDATA[A következő leírásban egy tiszta Ubuntu 8.10 Serverre fogok komplett web és mail kiszolgálót telepíteni, ISPConfig 3 társaságában, a könnyebb adminisztrációs végett.
Webkiszolgálónak a szokásos Apache, PHP, MySQL kerül telepítésre, levelezéshez a Postfix, Courier, Squirrelmail (webes mail kliensnek), FTP szervernek a PureFTPd.
A vírusirtásról a Clamav, míg a spam mentességről a Amavisd-new, SpamAssassin lesznek a felelősek.

A leírásban [...]]]></description>
			<content:encoded><![CDATA[<p>A következő leírásban egy tiszta Ubuntu 8.10 Serverre fogok komplett web és mail kiszolgálót telepíteni, <strong><a href="http://www.ispconfig.org">ISPConfig 3</a></strong> társaságában, a könnyebb adminisztrációs végett.</p>
<p>Webkiszolgálónak a szokásos Apache, PHP, MySQL kerül telepítésre, levelezéshez a <a href="http://wiki.hup.hu/index.php/Postfix">Postfix</a>, <a href="http://www.courier-mta.org/">Courier</a>, <a href="http://www.squirrelmail.org/">Squirrelmail</a> (webes mail kliensnek), FTP szervernek a <a href="http://hogyan.org/cimkek/pureftpd">PureFTPd</a>.</p>
<p>A vírusirtásról a <a href="http://wiki.hup.hu/index.php/ClamAV">Clamav</a>, míg a spam mentességről a Amavisd-new, SpamAssassin lesznek a felelősek.</p>
<p><span id="more-1182"></span><br />
A leírásban a szerver IP címe <strong>192.168.1.100</strong> lesz, domain neve pedig <strong>server1.otthon.local</strong></p>
<p>Szükség lesz egy alap Ubuntu 8.10 Server telepítésre. <a href="http://hogyan.org/ubuntu-810-server-telepitese">Erről leírást itt találsz</a>.</p>
<p>Szerezzünk magunknak egy root jogú konzolt a következő paranccsal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-s</span></pre></div></div>

<p>Állítsuk be megfelelően a hálózatot is, valamint frissítsük a rendszert.</p>
<p>Ehhez használjuk a következő parancsokat:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> dist-upgrade</pre></div></div>

<p>Változtassuk meg az alapértelmezett shellt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span></pre></div></div>

<p>Erre az ISPConfig miatt van szükség.</p>
<p>Tiltsuk le, majd távolítsuk el az AppArmor szolgáltatást.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apparmor stop
update-rc.d <span style="color: #660033;">-f</span> apparmor remove
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> remove apparmor apparmor-utils</pre></div></div>

<p>Szinkronizáljuk a gépünk óráját az interneten található időkiszolgálókhoz. Először telepítsük az ehhez szükséges klienst:</p>

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

<h3>Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutils csomagok telepítése</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-<span style="color: #000000;">2</span> libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl maildrop getmail4 rkhunter binutils</pre></div></div>

<p>A MySQL telepítésekor néhány kérdésre válaszolnunk kell:</p>
<ul>
<li> New password for the MySQL &#8220;root&#8221; user: <span style="color: #ff0000">root jelszó</span></li>
<li> Repeat password for the MySQL &#8220;root&#8221; user: <span style="color: #ff0000">root jelszó</span></li>
<li> Create directories for web-based administration? &lt;&#8211; <span style="color: #ff0000">Nem</span></li>
<li> General type of mail configuration: &lt;&#8211; <span style="color: #ff0000">Internet Site</span></li>
<li> System mail name: &lt;&#8211; <span style="color: #ff0000">domain nevünk (server1.otthon.local)</span></li>
<li> SSL certificate required &lt;&#8211; <span style="color: #ff0000">Ok</span></li>
</ul>
<p>Ha kész a telepítés be kell állítanunk, hogy a MySQL minden hálózati interfészen hallgasson</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>my.cnf</pre></div></div>

<p>Keressük meg a következő sort:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">bind-address           = 127.0.0.1</pre></div></div>

<p>Majd rakjunk elé egy # jelet (kikommentezzük).</p>
<p>Indítsuk újra a MySQL szervert</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql restart</pre></div></div>

<p>Majd ellenőrizzük, hogy mindenhol figyel</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-tap</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> mysql</pre></div></div>

<p>Ilyesmit kell látnunk:</p>
<p><code>root@server1:~# netstat -tap | grep mysql<br />
tcp        0      0 *:mysql                 *:*                     LISTEN      10447/mysqld<br />
root@server1:~#</code></p>
<p>A telepítés közben létrejöttek <a href="http://tldp.fsf.hu/HOWTO/Apache-WebDAV-LDAP-HOWTO-hu/ssl.html">SSL tanúsítványok</a>, azonban az ezekben a localhost domain név szerepel. Így ezeket ki kell törölni, majd létrehozni egy helyeset.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>courier
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>courier<span style="color: #000000; font-weight: bold;">/</span>imapd.pem
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>courier<span style="color: #000000; font-weight: bold;">/</span>pop3d.pem</pre></div></div>

<p>Majd módosítsuk az alábbi két fájlt úgy, hogy a CN=localhost sort írjuk át CN=server1.otthon.local (vagy ami a saját domain nevünk) sorra. Egyéb értékeket is módosíthatunk ha tudjuk mik azok.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>courier<span style="color: #000000; font-weight: bold;">/</span>imapd.cnf</pre></div></div>

<p>Majd a következő fájlban is ugyanezeket a módosításokat tegyük meg</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>courier<span style="color: #000000; font-weight: bold;">/</span>pop3d.cnf</pre></div></div>

<p>Hozzuk létre a tanúsítványokat</p>

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

<p>Majd indítsuk újra a Courier-IMAP-SSL és Courier-POP3-SSL szolgáltatásokat</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>courier-imap-ssl restart
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>courier-pop-ssl restart</pre></div></div>

<h3>Amavisd-new, SpamAssassin, és Clamav telepítése</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> amavisd-new spamassassin clamav clamav-daemon zoo <span style="color: #c20cb9; font-weight: bold;">unzip</span> <span style="color: #c20cb9; font-weight: bold;">bzip2</span> arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl <span style="color: #c20cb9; font-weight: bold;">zip</span> libnet-dns-perl</pre></div></div>

<h3>Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, és mcrypt telepítése</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp</pre></div></div>

<p>A <strong><em>Web server to reconfigure automatically</em></strong> kérdésre válasszuk az apache2 opciót.</p>
<p>Engedélyezzük az suexec, rewrite, ssl, actions, és include Apache modulokat</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">a2enmod suexec rewrite ssl actions include</pre></div></div>

<p>Töröljük a phpMyAdminhoz tartozó /etc/phpmyadmin/htpasswd.setup fájlt a biztonság érdekében</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>phpmyadmin<span style="color: #000000; font-weight: bold;">/</span>htpasswd.setup</pre></div></div>

<p>Majd nyissuk meg szerkesztésre az Apache konfigurációs fájlját:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>phpmyadmin<span style="color: #000000; font-weight: bold;">/</span>apache.conf</pre></div></div>

<p>és távolítsuk el a következő részt (töröljük ki)</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">       <span style="color: #adadad; font-style: italic;"># Authorize for setup</span>
       &amp;lt;Files setup.php&amp;gt;
           <span style="color: #adadad; font-style: italic;"># For Apache 1.3 and 2.0</span>
           &amp;lt;IfModule mod_auth.c&amp;gt;
               <span style="color: #00007f;">AuthType</span> Basic
               <span style="color: #00007f;">AuthName</span> <span style="color: #7f007f;">&quot;phpMyAdmin Setup&quot;</span>
               <span style="color: #00007f;">AuthUserFile</span> /etc/phpmyadmin/htpasswd.setup
           &amp;lt;/IfModule&amp;gt;
           <span style="color: #adadad; font-style: italic;"># For Apache 2.2</span>
           &amp;lt;IfModule mod_authn_file.c&amp;gt;
               <span style="color: #00007f;">AuthType</span> Basic
               <span style="color: #00007f;">AuthName</span> <span style="color: #7f007f;">&quot;phpMyAdmin Setup&quot;</span>
               <span style="color: #00007f;">AuthUserFile</span> /etc/phpmyadmin/htpasswd.setup
           &amp;lt;/IfModule&amp;gt;
           <span style="color: #00007f;">Require</span> valid-<span style="color: #00007f;">user</span>
       &amp;lt;/Files&amp;gt;</pre></div></div>

<p>Majd indítsuk újra az Apache kiszolgálót</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<h3>PureFTPd és kvóta telepítése</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> pure-ftpd-common pure-ftpd-mysql quota quotatool</pre></div></div>

<p>Szerkesszük a /etc/default/pure-ftpd-common fájlt</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>pure-ftpd-common</pre></div></div>

<p>Majd a következő két sort keressük meg és módosítsuk az alább látható értékekre</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">STANDALONE_OR_INETD=<span style="color: #0000ff;">standalone</span>
...
VIRTUALCHROOT=true</pre></div></div>

<p>Indítsuk újra a PureFTPd kiszolgálót</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>pure-ftpd-mysql restart</pre></div></div>

<p>nyissuk meg szerkesztésre az /etc/fstab fájlt.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab</pre></div></div>

<p>Itt keressük meg a / partíciónk csatolási sorát, majd adjuk a sor végére a ,usrquota,grpquota opciókat. Itt most a /dev/sda1 utáni sor lesz az.</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># /etc/fstab: static file system information.</span>
<span style="color: #adadad; font-style: italic;">#</span>
proc            /proc           proc    defaults        <span style="color: #ff0000;">0</span>       <span style="color: #ff0000;">0</span>
<span style="color: #adadad; font-style: italic;"># /dev/sda1</span>
UUID=e7f9e640-<span style="color: #ff0000;">1254</span>-462f-b314-6471ce83db4d /               ext3    relatime,errors=remount-ro,usrquota,grpquota <span style="color: #ff0000;">0</span>       <span style="color: #ff0000;">1</span>
<span style="color: #adadad; font-style: italic;"># /dev/sda5</span>
UUID=32b41e4e-4d4a-<span style="color: #ff0000;">4825</span>-<span style="color: #ff0000;">8922</span>-27e8c6aeeb45 <span style="color: #0000ff;">none</span>            swap    sw              <span style="color: #ff0000;">0</span>       <span style="color: #ff0000;">0</span>
/dev/scd0       /media/cdrom0   udf,iso9660 <span style="color: #00007f;">user</span>,noauto,exec,utf8 <span style="color: #ff0000;">0</span>       <span style="color: #ff0000;">0</span></pre></div></div>

<p>Kvóta engedélyezése:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>quota.user <span style="color: #000000; font-weight: bold;">/</span>quota.group
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> <span style="color: #000000; font-weight: bold;">/</span>quota.<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> remount <span style="color: #000000; font-weight: bold;">/</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">quotacheck <span style="color: #660033;">-avugm</span>
quotaon <span style="color: #660033;">-avug</span></pre></div></div>

<h3>MyDNS telepítése</h3>
<p>függőségek telepítése</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">g++</span> libc6 <span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #c20cb9; font-weight: bold;">gawk</span> <span style="color: #c20cb9; font-weight: bold;">make</span> texinfo libmysqlclient15-dev</pre></div></div>

<p>Töltsük le a MyDNS forrását, és telepítsük (sajnos nem elérhető deb csomagban Ubuntu alá)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>heanet.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>mydns-ng<span style="color: #000000; font-weight: bold;">/</span>mydns-1.2.8.27.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz mydns-1.2.8.27.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mydns-1.2.8
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Hozzunk létre egy indító szkriptet a program számára</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mydns</pre></div></div>

<p>A tartalma a következő legyen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># mydns         Start the MyDNS server</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Author:       Philipp Kern &lt;phil@philkern.de&gt;.</span>
<span style="color: #666666; font-style: italic;">#               Based upon skeleton 1.9.4 by Miquel van Smoorenburg</span>
<span style="color: #666666; font-style: italic;">#               &lt;miquels@cistron.nl&gt; and Ian Murdock &lt;imurdock@gnu.ai.mit.edu&gt;.</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span>
&nbsp;
<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #007800;">DAEMON</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mydns
<span style="color: #007800;">NAME</span>=mydns
<span style="color: #007800;">DESC</span>=<span style="color: #ff0000;">&quot;DNS server&quot;</span>
&nbsp;
<span style="color: #007800;">SCRIPTNAME</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Gracefully exit if the package has been removed.</span>
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-x</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
  start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Starting <span style="color: #007800;">$DESC</span>: <span style="color: #007800;">$NAME</span>&quot;</span>
        start-stop-daemon <span style="color: #660033;">--start</span> <span style="color: #660033;">--quiet</span>
                <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #660033;">--</span> <span style="color: #660033;">-b</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;.&quot;</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Stopping <span style="color: #007800;">$DESC</span>: <span style="color: #007800;">$NAME</span>&quot;</span>
        start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--oknodo</span> <span style="color: #660033;">--quiet</span>
                <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;.&quot;</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  reload<span style="color: #000000; font-weight: bold;">|</span>force-reload<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Reloading <span style="color: #007800;">$DESC</span> configuration...&quot;</span>
        start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--signal</span> HUP <span style="color: #660033;">--quiet</span>
                <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;done.&quot;</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  restart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Restarting <span style="color: #007800;">$DESC</span>: <span style="color: #007800;">$NAME</span>&quot;</span>
        start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--oknodo</span>
                <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span>
        <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
        start-stop-daemon <span style="color: #660033;">--start</span> <span style="color: #660033;">--quiet</span>
                <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #660033;">--</span> <span style="color: #660033;">-b</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;.&quot;</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: <span style="color: #007800;">$SCRIPTNAME</span> {start|stop|restart|reload|force-reload}&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Tegyük futtathatóvá, és adjuk hozzá a rendszerindító szkriptek közé</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mydns
update-rc.d mydns defaults</pre></div></div>

<h3>Vlogger és Webalizer telepítése</p>

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

</h3>
<h3>Jailkit telepítése</h3>
<p>A Jailkitre azért van szükség, hogy be tudjuk zárni megadott helyre az SSH felhasználókat.</p>
<p>Ezt mindenképp az ISPConfig telepítése előtt kell telepítenünk, utólag már nem lehet!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential <span style="color: #c20cb9; font-weight: bold;">autoconf</span> automake1.9 libtool <span style="color: #c20cb9; font-weight: bold;">flex</span> <span style="color: #c20cb9; font-weight: bold;">bison</span></pre></div></div>

<p>Töltsük le a forrását, és telepítsük</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>olivier.sessink.nl<span style="color: #000000; font-weight: bold;">/</span>jailkit<span style="color: #000000; font-weight: bold;">/</span>jailkit-2.5.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz jailkit-2.5.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> jailkit-<span style="color: #000000;">2.5</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> jailkit-<span style="color: #000000;">2.5</span><span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<h3>fail2ban telepítése</h3>
<p>Ez egy opcionális kiegészítő. Ha telepítjük, akkor az ISPConfig ki tudja tiltani azokat az IP címeket, ahonnét jelszópróbálkozások történnek.</p>

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

<h3>SquirrelMail webmail telepítése</h3>

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

<p>rakjunk be az apache által látott helyre egy linket</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>squirrelmail<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>webmail</pre></div></div>

<p>Majd állítsuk be</p>

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

<p>A megjelenő menünél nyomjunk egy D betűt, majd enter (<em>Set pre-defined settings for specific IMAP servers</em> opcióhoz).</p>
<p>A következő opciónál írjuk be, hogy: <strong>courier</strong><br />
majd enter, és ezután mikor kiírja, hogy <strong><em>Press any key to continue&#8230;</em></strong> nyomjunk le egy billentyűt.</p>
<p>A főmenüben nyomjunk <strong>S</strong> betűt a mentéshez, majd Q a kilépéshez.</p>
<p>Mostmár elérjük a SquirrelMail felületét a http://server1.otthon.local/webmail vagy http://192.168.1.100/webmail címen (természetesen ha otthon más domainünk vagy ip címünk van, akkor azon).</p>
<h3>ISPConfig 3 telepítése</h3>
<p>Töltsük le a legutolsó verziót és telepítsük azt.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>downloads.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>ispconfig<span style="color: #000000; font-weight: bold;">/</span>ISPConfig-3.0.1.1.tar.gz?<span style="color: #007800;">use_mirror</span>=
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz ISPConfig-<span style="color: #000000; font-weight: bold;">*</span>.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> ispconfig3_install<span style="color: #000000; font-weight: bold;">/</span>install<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Ha <a href="http://hu.wikipedia.org/wiki/Subversion">SVN</a>-ből szeretnénk telepíteni:<br />
Telepítsük az ahhoz szükséges programot</p>

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

<p>Majd szedjük le az ISPConfigot</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>svn.ispconfig.org<span style="color: #000000; font-weight: bold;">/</span>ispconfig3<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> trunk<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Telepítsük az ISPConfigot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">php <span style="color: #660033;">-q</span> install.php</pre></div></div>

<p>Ilyet fogunk látni. Ahol ki van emelve, azt nekünk kell megadni.</p>
<blockquote><p><span class="system">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
_____ ___________   _____              __ _<br />
|_   _/  ___| ___  /  __             / _(_)<br />
| |  `&#8211;.| |_/ / | /  / ___  _ __ | |_ _  __ _<br />
| |  `&#8211;.   __/  | |    / _ | &#8216;_ |  _| |/ _` |<br />
_| |_/__/ / |     | __/ (_) | | | | | | | (_| |<br />
___/____/_|      ____/___/|_| |_|_| |_|__, |<br />
__/ |<br />
|___/<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p>&gt;&gt; Initial configuration</p>
<p>Operating System: Debian Lenny/Sid or compatible</p>
<p>Following will be a few questions for primary configuration so be careful.<br />
Default values are in [brackets] and can be accepted with &lt;ENTER&gt;.<br />
Tap in &#8220;quit&#8221; (without the quotes) to stop the installer.</p>
<p>Select language (en,de) [en]: <span style="color: #ff0000"><span class="highlight">&lt;&#8211; ENTER</span></span></p>
<p><span class="system">Installation mode (standard,expert) [standard]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">ENTER</span></span></p>
<p><span class="system">Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [server1.example.com]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">ENTER</span></span></p>
<p><span class="system">MySQL server hostname [localhost]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">ENTER</span></span></p>
<p><span class="system">MySQL root username [root]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">ENTER</span></span></p>
<p><span class="system">MySQL root password []:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">MySQL root jelszó</span></span></p>
<p><span class="system">MySQL database to create [dbispconfig]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">ENTER</span></span></p>
<p><span class="system">MySQL charset [utf8]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">ENTER</span></span></p>
<p><span class="system">Generating a 2048 bit RSA private key<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.+++<br />
.+++<br />
writing new private key to &#8217;smtpd.key&#8217;<br />
&#8212;&#8211;<br />
You are about to be asked to enter information that will be incorporated<br />
into your certificate request.<br />
What you are about to enter is what is called a Distinguished Name or a DN.<br />
There are quite a few fields but you can leave some blank<br />
For some fields there will be a default value,<br />
If you enter &#8216;.&#8217;, the field will be left blank.<br />
&#8212;&#8211;<br />
Country Name (2 letter code) [AU]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">HU, majd ENTER</span></span><br />
<span class="system">State or Province Name (full name) [Some-State]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">Megye neve</span></span><br />
<span class="system">Locality Name (eg, city) []:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">Város neve</span></span><br />
<span class="system">Organization Name (eg, company) [Internet Widgits Pty Ltd]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">domain név</span></span><br />
<span class="system">Organizational Unit Name (eg, section) []:</span> <span class="highlight">&lt;&#8211; ENTER</span><br />
<span class="system">Common Name (eg, YOUR name) []:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">név</span></span><br />
<span class="system">Email Address []:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">email cím</span></span><br />
<span class="system">Configuring Jailkit<br />
Configuring SASL<br />
Configuring PAM<br />
Configuring Courier<br />
Configuring Spamassassin<br />
Configuring Amavisd<br />
Configuring Getmail<br />
Configuring Pureftpd<br />
Configuring MyDNS<br />
Configuring Apache<br />
Configuring Firewall<br />
Installing ISPConfig<br />
ISPConfig Port [8080]:</span> <span class="highlight">&lt;&#8211; <span style="color: #ff0000">ENTER</span></span></p>
<p><span class="system">Configuring DBServer<br />
Installing Crontab<br />
no crontab for root<br />
no crontab for getmail<br />
Restarting services &#8230;<br />
* Stopping MySQL database server mysqld<br />
&#8230;done.<br />
* Starting MySQL database server mysqld<br />
&#8230;done.<br />
* Checking for corrupt, not cleanly closed and upgrade needing tables.<br />
* Stopping Postfix Mail Transport Agent postfix<br />
&#8230;done.<br />
* Starting Postfix Mail Transport Agent postfix<br />
&#8230;done.<br />
* Stopping SASL Authentication Daemon saslauthd<br />
&#8230;done.<br />
* Starting SASL Authentication Daemon saslauthd<br />
&#8230;done.<br />
Stopping amavisd: amavisd-new.<br />
Starting amavisd: amavisd-new.<br />
* Stopping ClamAV daemon clamd<br />
&#8230;done.<br />
* Starting ClamAV daemon clamd<br />
LibClamAV Warning: ***********************************************************<br />
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***<br />
LibClamAV Warning: *** DON&#8217;T PANIC! Read http://www.clamav.net/support/faq ***<br />
LibClamAV Warning: ***********************************************************<br />
&#8230;done.<br />
* Stopping Courier authentication services authdaemond<br />
&#8230;done.<br />
* Starting Courier authentication services authdaemond<br />
&#8230;done.<br />
* Stopping Courier IMAP server&#8230;<br />
&#8230;done.<br />
* Starting Courier IMAP server&#8230;<br />
&#8230;done.<br />
* Stopping Courier IMAP-SSL server&#8230;<br />
&#8230;done.<br />
* Starting Courier IMAP-SSL server&#8230;<br />
&#8230;done.<br />
* Stopping Courier POP3 server&#8230;<br />
&#8230;done.<br />
* Starting Courier POP3 server&#8230;<br />
&#8230;done.<br />
* Stopping Courier POP3-SSL server&#8230;<br />
&#8230;done.<br />
* Starting Courier POP3-SSL server&#8230;<br />
&#8230;done.<br />
* Restarting web server apache2<br />
&#8230; waiting    &#8230;done.<br />
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -E -u 1000 -O clf:/var/log/pure-ftpd/transfer.log -b -A -B<br />
Installation completed.<br />
root@server1:/tmp/ispconfig3_install/install#</span></p></blockquote>
<p>Ezután már elérjük az ISPConfig admin felületét a következő címen: http://server1.otthon.local:8080/ vagy http://192.168.1.100:8080/ Tehát a 8080-as porton fog futni.</p>
<p>Bejelentkezéshez használjuk az <strong>admin</strong> felhasználónevet és <strong>admin</strong> jelszót.</p>
<p>Most már készen áll a rendszer a használatra.</p>

	Címkék: <a href="http://hogyan.org/cimkek/apache" title="apache" rel="tag">apache</a>, <a href="http://hogyan.org/cimkek/courier" title="courier" rel="tag">courier</a>, <a href="http://hogyan.org/cimkek/halozat" title="hálózat" rel="tag">hálózat</a>, <a href="http://hogyan.org/cimkek/intrepid" title="Intrepid" rel="tag">Intrepid</a>, <a href="http://hogyan.org/cimkek/mysql" title="mysql" rel="tag">mysql</a>, <a href="http://hogyan.org/cimkek/php" title="php" rel="tag">php</a>, <a href="http://hogyan.org/cimkek/postfix" title="postfix" rel="tag">postfix</a>, <a href="http://hogyan.org/cimkek/pureftpd" title="pureftpd" rel="tag">pureftpd</a>, <a href="http://hogyan.org/cimkek/szerver" title="szerver" rel="tag">szerver</a>, <a href="http://hogyan.org/cimkek/telepites" title="telepítés" rel="tag">telepítés</a>, <a href="http://hogyan.org/cimkek/ubuntu" title="Ubuntu" rel="tag">Ubuntu</a>
]]></content:encoded>
			<wfw:commentRss>http://hogyan.org/ubuntu-server-lamp-mail-ispconfig/feed</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Torrent kliens Ubuntu Server alatt</title>
		<link>http://hogyan.org/ubuntu-server-rtorrent-rtgui</link>
		<comments>http://hogyan.org/ubuntu-server-rtorrent-rtgui#comments</comments>
		<pubDate>Wed, 18 Feb 2009 19:22:57 +0000</pubDate>
		<dc:creator>charlie</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Intrepid]]></category>
		<category><![CDATA[parancssor]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[szerver]]></category>
		<category><![CDATA[telepítés]]></category>
		<category><![CDATA[torrent]]></category>

		<guid isPermaLink="false">http://hogyan.org/?p=920</guid>
		<description><![CDATA[A korábban telepített (és internetmegosztásra beállított) Ubuntu szerverünket használhatjuk torrent kliensként is. Miért jó ez? Elég ha csak egy gép megy, nem kell a saját gépünket járatni a letöltések miatt, valamint akár többen is tudjuk használni.
Ebben a leírásban telepíteni fogjuk az rTorrent nevű parancssoros torrent klienst, valamint a hozzá kapcsolódó rtGui webes felületet, hogy böngészőnkből [...]]]></description>
			<content:encoded><![CDATA[<p>A korábban telepített (és internetmegosztásra beállított) Ubuntu szerverünket használhatjuk torrent kliensként is. Miért jó ez? Elég ha csak egy gép megy, nem kell a saját gépünket járatni a letöltések miatt, valamint akár többen is tudjuk használni.</p>
<p>Ebben a leírásban telepíteni fogjuk az rTorrent nevű parancssoros torrent klienst, valamint a hozzá kapcsolódó rtGui webes felületet, hogy böngészőnkből tudjuk a letöltéseket kezelni.</p>
<p>Ez az rtorrent és rtgui páros ideális akkor, ha csak egymagunk, vagy csak otthoni célból szeretnénk a szervert használni, mivel a webes felület nem rendelkezik jogosultság kezeléssel.</p>
<p><span id="more-920"></span></p>
<p>Először telepítsük az Apache kiszolgálót, valamint hozzá a PHP5 csomagot és magát az rTorrent klienst:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5 php5-xmlrpc libapache2-mod-scgi rtorrent <span style="color: #660033;">-y</span></pre></div></div>

<p>Nyissuk meg szerkesztésre az Apache alapértelmezett weboldalához tartozó konfigurációs fájlt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-enabled<span style="color: #000000; font-weight: bold;">/</span>000-default</pre></div></div>

<p>Majd a fájl legvégén, de még az &lt;/VirtualHost&gt; sor előtt másoljuk be a következő két sort:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> scgi_module /usr/lib/apache2/modules/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:<span style="color: #ff0000;">5000</span></pre></div></div>

<p>Így fog kinézni a konfigurációs fájl vége:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">        <span style="color: #00007f;">Deny</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
        <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> 127.0.0.0/255.0.0.0 ::<span style="color: #ff0000;">1</span>/<span style="color: #ff0000;">128</span>
    &lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
&nbsp;
    <span style="color: #adadad; font-style: italic;"># Added for rtGui</span>
    <span style="color: #00007f;">LoadModule</span> scgi_module /usr/lib/apache2/modules/mod_scgi.so
    SCGIMount /RPC2 127.0.0.1:<span style="color: #ff0000;">5000</span>
&nbsp;
&lt;/<span style="color: #000000; font-weight:bold;">VirtualHost</span>&gt;</pre></div></div>

<p>A kilépéshez nyomjuk le a CTRL+X billentyűkombinációt, majd egy Y (vagy ha magyar, akkor I) betű, majd egy ENTER leütésével erősítsük meg a fájl mentését.</p>
<p>Indítsuk újra az Apache kiszolgálót:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> apache2ctl restart</pre></div></div>

<p>Most menjünk a home mappánkban:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~</pre></div></div>

<p>Majd töltsük le az rTorrent beállításait tartalmazó fájlt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>hogyan.org<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span><span style="color: #000000; font-weight: bold;">/</span>02<span style="color: #000000; font-weight: bold;">/</span>.rtorrent.rc</pre></div></div>

<p>Ezután nyissuk meg szerkesztésre:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> ~<span style="color: #000000; font-weight: bold;">/</span>.rtorrent.rc</pre></div></div>

<p>Itt a következő sorokat módosítsuk (amelyik sor előtt # jel van, azt a sort a program nem veszi figyelembe):</p>
<ul>
<li><strong>download_rate = 0</strong> Mennyi kbájt/sec sebességgel tölthet le maximálisan (0 esetén nincs korlát)</li>
<li><strong>upload_rate = 50</strong> Feltöltés maximális sebessége kbájt/secben. ADSL esetén a papír szerinti sebesség 80%-t álítsuk be.</li>
<li><strong>max_uploads = 15</strong> Egyszerre hány torrentet tölthet fel a program</li>
<li><strong>port_range = 55500-55600</strong> Ezen porttartományban figyel az rtorrent (ezt kell beforwaldonunk a szerver felé, vagy ezeket kell megnyitni a tűzfalon)</li>
</ul>
<p>Hozzuk létre a /home mappa alá szükséges mappákat:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>Downloading <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>Downloading<span style="color: #000000; font-weight: bold;">/</span>rtorrent.session <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>Complete <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>TorrentFiles <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>TorrentFiles<span style="color: #000000; font-weight: bold;">/</span>Auto</pre></div></div>

<p>Majd adjuk annak a felhasználónak a tulajdonába, akinek a nevében az rtorrent futni fog (alapértelmezetten ez az a felhasználó lesz, akivel beléptünk a szerverre), valamint adjunk 777 írási jogot (bárki írhatja, erre azért van szükség, hogy az Apache írhassa a mappát) az Auto mappára::</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> charlie <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>Downloading <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>Downloading<span style="color: #000000; font-weight: bold;">/</span>rtorrent.session <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>Complete <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>TorrentFiles <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>TorrentFiles<span style="color: #000000; font-weight: bold;">/</span>Auto <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">777</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>TorrentFiles<span style="color: #000000; font-weight: bold;">/</span>Auto</pre></div></div>

<p>Végül hozzuk létre az rtorrent log fájlját:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>rtorrent.log <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Torrents<span style="color: #000000; font-weight: bold;">/</span>rtorrent.log</pre></div></div>

<p>indítsuk el az rtorrentet:</p>

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

<p>Ha sikeresen elindult, ilyesmit fogunk látni:</p>
<div id="attachment_921" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2009/02/rtorrent.png" rel="lightbox[920]"><img class="size-medium wp-image-921" title="rtorrent" src="http://hogyan.org/files/2009/02/rtorrent-500x319.png" alt="rtorrent" width="500" height="319" /></a>
<p class="wp-caption-text">rtorrent</p>
</div>
<p>CTRL+Q billentyűkombinációval léphetünk ki a programból.</p>
<p>Töltsük le az rtGui-t:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rtgui.googlecode.com<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>rtgui-0.2.6.tgz</pre></div></div>

<p>Csomagoljuk ki:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf ~<span style="color: #000000; font-weight: bold;">/</span>rtgui-<span style="color: #000000; font-weight: bold;">*</span>.tgz <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www</pre></div></div>

<p>Töltsük le a konfigurációs fájlt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>rtgui <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>hogyan.org<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span><span style="color: #000000; font-weight: bold;">/</span>02<span style="color: #000000; font-weight: bold;">/</span>config.conf <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> config.conf config.php</pre></div></div>

<p>Indítsuk el megint az rtorrent programot, majd a kedvenc böngészőnket asztali gépünkön, és a következő URL-t adjuk meg: http://a-szerver-IP-címe/rtgui (a korábbi telepítést és beállítást használva: <a href="http://192.168.1.1/rtgui">http://192.168.1.1/rtgui</a>)</p>
<div id="attachment_922" class="wp-caption aligncenter" style="width: 510px"><a href="http://hogyan.org/files/2009/02/rtgui.png" rel="lightbox[920]"><img class="size-medium wp-image-922" title="rtgui" src="http://hogyan.org/files/2009/02/rtgui-500x249.png" alt="rtGui Firefox webböngészőben" width="500" height="249" /></a>
<p class="wp-caption-text">rtGui Firefox webböngészőben</p>
</div>
<p>Most állítsuk be, hogy az rtorrent szolgáltatásként fusson, így automatikusan elinduljon újraindítás után.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">crontab <span style="color: #660033;">-e</span></pre></div></div>

<p>Ha először indítjuk, akkor ki kell választanunk, hogy melyik szövegszerkesztőt szeretnénk használni. Válasszuk a nano programot, amihez nyomjuk le a hozzá tartozó sorszámot, majd egy entert, mivel még nincs létrehozva contrab fájl.</p>
<p>Ezt másoljuk be egy üres sorba:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">@</span>reboot <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-d</span> <span style="color: #660033;">-m</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rtorrent</pre></div></div>

<p>Lépjünk ki és mentsük a módosításokat.</p>
<p>A letöltött tartalmat a szerver /home/Torrents/Complete mappában találjuk. Az /home/Torrents/TorrentFiles/Auto mapába ha bemásolunk egy torrent fájlt, a program azonnal elkezdi letölteni.</p>

	Címkék: <a href="http://hogyan.org/cimkek/apache" title="apache" rel="tag">apache</a>, <a href="http://hogyan.org/cimkek/intrepid" title="Intrepid" rel="tag">Intrepid</a>, <a href="http://hogyan.org/cimkek/parancssor" title="parancssor" rel="tag">parancssor</a>, <a href="http://hogyan.org/cimkek/php" title="php" rel="tag">php</a>, <a href="http://hogyan.org/cimkek/program" title="program" rel="tag">program</a>, <a href="http://hogyan.org/cimkek/szerver" title="szerver" rel="tag">szerver</a>, <a href="http://hogyan.org/cimkek/telepites" title="telepítés" rel="tag">telepítés</a>, <a href="http://hogyan.org/cimkek/torrent" title="torrent" rel="tag">torrent</a>, <a href="http://hogyan.org/cimkek/ubuntu" title="Ubuntu" rel="tag">Ubuntu</a>
]]></content:encoded>
			<wfw:commentRss>http://hogyan.org/ubuntu-server-rtorrent-rtgui/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>LAMP szerver Ubuntu 7.10 alatt</title>
		<link>http://hogyan.org/lamp-ubuntu-710</link>
		<comments>http://hogyan.org/lamp-ubuntu-710#comments</comments>
		<pubDate>Sun, 13 Jan 2008 11:59:37 +0000</pubDate>
		<dc:creator>charlie</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Gutsy]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[szerver]]></category>

		<guid isPermaLink="false">http://hogyan.org/lamp-ubuntu-710</guid>
		<description><![CDATA[A leírás feltételezi, hogy a szervert már előtte megfelelően (a saját szájízünk szerint) telepítettük és  megfelelően beállítottuk. A szerveren root jogokkal kell rendelkeznünk, így a legegyszerűbb ha a sudo -s paranccsal szerzünk egy root jogú konzolt.
MySQL
Telepítsük a MySQL-t

apt-get install mysql-server mysql-client libmysqlclient15-dev

A &#8220;New password for the MySQL &#8220;root&#8221; user:&#8221; kérdésre adjuk meg a MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>A leírás feltételezi, hogy a szervert már előtte megfelelően (a saját szájízünk szerint) telepítettük és  megfelelően beállítottuk. A szerveren root jogokkal kell rendelkeznünk, így a legegyszerűbb ha a sudo -s paranccsal szerzünk egy root jogú konzolt.</p>
<h3>MySQL</h3>
<p>Telepítsük a MySQL-t</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server mysql-client libmysqlclient15-dev</pre></div></div>

<p>A &#8220;<strong><em><span style="color: #008000">New password for the MySQL &#8220;root&#8221; user:</span></em></strong>&#8221; kérdésre adjuk meg a MySQL root felhasználó jelszavát (<em>ennek nem kell megegyeznie a rendszer root felhasználónak jelszavával</em>)<br />
<span id="more-34"></span><br />
Majd állítsuk be a MySQL-t:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">medit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>my.cnf</pre></div></div>

<p>Állítsuk be, hogy a hibaüzeneteket magyarul mondja, valamint, hogy csak a helyi gépen lehessen elérni:</p>
<blockquote><p>[...]<br />
language        = /usr/share/mysql/hungarian<br />
[...]<br />
bind-address            = 127.0.0.1</p></blockquote>
<p>Indítsük újra a MySQL-t:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql restart</pre></div></div>

<p>Majd győződjünk meg róla, hogy fut:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-tap</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> mysql</pre></div></div>

<p>Valami hasonlót kell látnunk:</p>
<blockquote><p>root@artemisz:~# netstat -tap | grep mysql<br />
tcp        0      0 localhost:mysql         *:*                     LISTEN     2842/mysqld<br />
root@artemisz:~#</p></blockquote>
<h3>Apache2, PHP5</h3>
<p>Most telepítsük az Apache-ot és PHP-t:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 apache2-mpm-prefork apache2-utils libexpat1 ssl-cert php5-common php5-mysql libapache2-mod-php5 php5 php5-gd</pre></div></div>

<p>Nem szükséges az összes Apache modul engedélyezése, nálam a következők vannak engedélyezve:</p>
<blockquote><p>root@artemisz:/etc/apache2/mods-enabled# ls -al<br />
alias.conf -&gt; /etc/apache2/mods-available/alias.conf<br />
alias.load -&gt; /etc/apache2/mods-available/alias.load<br />
auth_basic.load -&gt; /etc/apache2/mods-available/auth_basic.load<br />
authn_dbd.load -&gt; /etc/apache2/mods-available/authn_dbd.load<br />
authn_dbm.load -&gt; /etc/apache2/mods-available/authn_dbm.load<br />
authn_file.load -&gt; /etc/apache2/mods-available/authn_file.load<br />
authz_dbm.load -&gt; /etc/apache2/mods-available/authz_dbm.load<br />
authz_groupfile.load -&gt; /etc/apache2/mods-available/authz_groupfile.load<br />
authz_host.load -&gt; /etc/apache2/mods-available/authz_host.load<br />
authz_owner.load -&gt; /etc/apache2/mods-available/authz_owner.load<br />
authz_user.load -&gt; /etc/apache2/mods-available/authz_user.load<br />
autoindex.conf -&gt; /etc/apache2/mods-available/autoindex.conf<br />
autoindex.load -&gt; /etc/apache2/mods-available/autoindex.load<br />
dir.conf -&gt; /etc/apache2/mods-available/dir.conf<br />
dir.load -&gt; /etc/apache2/mods-available/dir.load<br />
env.load -&gt; /etc/apache2/mods-available/env.load<br />
include.load -&gt; /etc/apache2/mods-available/include.load<br />
mime.conf -&gt; /etc/apache2/mods-available/mime.conf<br />
mime.load -&gt; /etc/apache2/mods-available/mime.load<br />
hp5.conf -&gt; /etc/apache2/mods-available/php5.conf<br />
php5.load -&gt; /etc/apache2/mods-available/php5.load<br />
rewrite.load -&gt; /etc/apache2/mods-available/rewrite.load<br />
setenvif.conf -&gt; /etc/apache2/mods-available/setenvif.conf<br />
setenvif.load -&gt; /etc/apache2/mods-available/setenvif.load<br />
vhost_alias.load -&gt; /etc/apache2/mods-available/vhost_alias.load<br />
root@artemisz:/etc/apache2/mods-enabled#</p></blockquote>
<p>A rendelkezésre álló modulok a <strong><em><span style="color: #800000">/etc/apache2/mods-available/</span></em></strong> mappában vannak, így ha valamelyiket engedélyezni szeretnénk, csak hozzunk létre egy symlinket rá az<strong><em> <span style="color: #800000">/etc/apache2/mods-enabled</span></em></strong> mappába (vagy használhatjuk az <span style="color: #008000">a2enmod</span> parancsot is, <span style="color: #008000">a2enmod modulnév</span> formában)<br />
Állítsük be a PHP-t, ehhez a <span style="color: #800000"><strong><em>/etc/php5/apache2/php.ini</em></strong></span> fájlt kell szerkeszteni:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">editor <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div>

<p>Az alapértelmezett beállítások többnyire jók, csak néhány dolgot kell beállítani:</p>
<blockquote><p>[...]<br />
safe_mode = On<br />
[...]<br />
disable_functions = phpinfo,shell_exec, system ;Letiltott funkciok<br />
[...]<br />
max_execution_time = 90 ;a php szkriptek futasanak maximalis ideje<br />
[...]<br />
memory_limit = 300M ;Maximum memória mennyiség amit egy szkript hasznalhat<br />
[...]<br />
upload_max_filesize = 2M ;Mekkora fajlt lehet feltolteni weben keresztul</p></blockquote>
<p>Most állítsuk be az virtuális oldalt. Ehhez hozzunk létre egy fájlt a <span style="color: #800000"><em><strong>/etc/apache2/sites-available</strong></em></span> mappában, amit ha engedélyezni akarunk, linkeljük a <span style="color: #800000"><strong><em>/etc/apache2/sites-enabled</em></strong></span> mappába. Itt egy példa a konfigurációs fájlra:</p>
<blockquote><p>&lt;virtualhost&gt;<br />
ServerAdmin valaki@domain.tld<br />
ServerName domain.tld<br />
DocumentRoot /var/www/domain.tld/<br />
&lt;directory&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
&lt;/directory&gt;<br />
&lt;directory&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride All<br />
Order allow,deny<br />
allow from all<br />
&lt;/directory&gt;</p>
<p>ErrorLog /var/log/apache2/domain.tld.error.log<br />
LogLevel warn</p>
<p>CustomLog /var/log/apache2/domain.tld.access.log combined<br />
ServerSignature Email</p>
<p>php_admin_value doc_root /var/www/domain.tld/<br />
php_admin_value open_basedir /var/www/domain.tld/<br />
php_admin_value include_path /var/www/domain.tld/<br />
&lt;/virtualhost&gt;</p></blockquote>
<p>Indítsuk újra az apache-ot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>


	Címkék: <a href="http://hogyan.org/cimkek/apache" title="apache" rel="tag">apache</a>, <a href="http://hogyan.org/cimkek/gutsy" title="Gutsy" rel="tag">Gutsy</a>, <a href="http://hogyan.org/cimkek/linux" title="Linux" rel="tag">Linux</a>, <a href="http://hogyan.org/cimkek/mysql" title="mysql" rel="tag">mysql</a>, <a href="http://hogyan.org/cimkek/php" title="php" rel="tag">php</a>, <a href="http://hogyan.org/cimkek/szerver" title="szerver" rel="tag">szerver</a>, <a href="http://hogyan.org/cimkek/ubuntu" title="Ubuntu" rel="tag">Ubuntu</a>
]]></content:encoded>
			<wfw:commentRss>http://hogyan.org/lamp-ubuntu-710/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Helyi Yum tároló beállítása Fedora 8 alatt</title>
		<link>http://hogyan.org/helyi-yum-tarolo-fedora8</link>
		<comments>http://hogyan.org/helyi-yum-tarolo-fedora8#comments</comments>
		<pubDate>Sun, 06 Jan 2008 19:04:54 +0000</pubDate>
		<dc:creator>charlie</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[kliens]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rendszer]]></category>
		<category><![CDATA[szerver]]></category>

		<guid isPermaLink="false">http://hogyan.org/helyi-yum-tarolo</guid>
		<description><![CDATA[Ebben a leírásban a példaként használt hosztnév server1.example.com, IP cím 192.168.0.100. Ezeket a saját gépednek megfelelően kell majd beírnod.
Apache telepítése
Telepítsük az apache kiszolgálót:

yum install httpd

Ezután készítsünk egy rendszer linket, hogy az Apache automatikusan elinduljon a rendszer indulásakor


chkconfig --levels 235 httpd on

Indítsuk el:

/etc/init.d/httpd start

Tárolók elkészítése
Először telepítsük a createrepo segédprogramot:

yum install createrepo

Én a /var/www/html/yum/base/8/i386 mappában fogom tárolni [...]]]></description>
			<content:encoded><![CDATA[<p>Ebben a leírásban a példaként használt hosztnév <em>server1.example.com</em>, IP cím <em>192.168.0.100</em>. Ezeket a saját gépednek megfelelően kell majd beírnod.</p>
<h3>Apache telepítése</h3>
<p>Telepítsük az apache kiszolgálót:</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> httpd</pre></div></div>

<p>Ezután készítsünk egy rendszer linket, hogy az Apache automatikusan elinduljon a rendszer indulásakor<br />
<span id="more-19"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">chkconfig <span style="color: #660033;">--levels</span> <span style="color: #000000;">235</span> httpd on</pre></div></div>

<p>Indítsuk el:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd start</pre></div></div>

<h3>Tárolók elkészítése</h3>
<p>Először telepítsük a createrepo segédprogramot:</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> createrepo</pre></div></div>

<p>Én a <strong><font color="#008000"><em>/var/www/html/yum/base/8/i386</em></font></strong> mappában fogom tárolni az i386-os RPM csomagokat, és a <strong><font color="#008000"><em>/var/www/html/yum/updates/8/i386</em></font></strong> mappában a frissítéseket</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>yum<span style="color: #000000; font-weight: bold;">/</span>base<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>yum<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386</pre></div></div>

<p>Most töltsük fel tartalommal a /var/www/html/yum/base/8/i386 mappát. A legegyszerűbb, ha a berakjuk a gépbe a Fedora 8 DVD-t, csatlakoztatjuk, majd felmásoljuk a tartalmát</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cdrom <span style="color: #000000; font-weight: bold;">/</span>mnt
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>Packages
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>yum<span style="color: #000000; font-weight: bold;">/</span>base<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt</pre></div></div>

<p>A DVD-n a legalapvetőbb csomagok találhatóak csak meg. Ha az összes elérhető csomagot el szeretnéd tárolni helyileg, akkor az rsync segítségével le kell tölteni a Fedora 8 tükör, Everything mappájából.Menj a <a href="http://mirrors.fedoraproject.org/mirrorlists/publiclist/Fedora/8">http://mirrors.fedoraproject.org/mirrorlists/publiclist/Fedora/8</a> címre, keresd meg azokat a tükröket amik támogatják az rsync-et, és töltsd le a tartalmukat (ez sokáig el fog tartani!):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">-avrt</span> rsync:<span style="color: #000000; font-weight: bold;">//</span>ftp-stud.hs-esslingen.de<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>Everything<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>Packages<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>yum<span style="color: #000000; font-weight: bold;">/</span>base<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386</pre></div></div>

<p><strong><em> (Figyelj arra, hogy minden elérési út végén ott legyen a /, mivel a<br />
rsync://ftp-stud.hs-esslingen.de/fedora/linux/releases/8/Everything/i386/os/Packages/, nem egyenlő a  rsync://ftp-stud.hs-esslingen.de/fedora/linux/releases/8/Everything/i386/os/Packages -val!)</em></strong><br />
Majd futtassuk a <font color="#000080"><strong><em>createrepo</em></strong></font> programot</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">createrepo <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>yum<span style="color: #000000; font-weight: bold;">/</span>base<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386</pre></div></div>

<p>Ez létrehozza a repodata mappát a <em><strong><font color="#008000">/var/www/html/yum/base/8/i386</font></strong></em> mappába.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>yum<span style="color: #000000; font-weight: bold;">/</span>base<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>repodata<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<blockquote><p>[root@server1 /]# ls -l /var/www/html/yum/base/8/i386/repodata/<br />
total 9268<br />
-rw-r&#8211;r&#8211; 1 root root 2227275 2007-12-18 21:11 filelists.xml.gz<br />
-rw-r&#8211;r&#8211; 1 root root 6487453 2007-12-18 21:11 other.xml.gz<br />
-rw-r&#8211;r&#8211; 1 root root  747714 2007-12-18 21:11 primary.xml.gz<br />
-rw-r&#8211;r&#8211; 1 root root     951 2007-12-18 21:11 repomd.xml<br />
[root@server1 /]#</p></blockquote>
<p>Most töltsük le a frissítéseket a <strong><em><font color="#008000">/var/www/html/yum/updates/8/i386</font></em></strong> mappába</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">-avrt</span> rsync:<span style="color: #000000; font-weight: bold;">//</span>ftp-stud.hs-esslingen.de<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--exclude</span>=debug<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>yum<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">/</span>i386</pre></div></div>

<p>Ha azt szeretnénk, hogy a helyi tükör adatai mindig frissek legyenek, ütemezzük be a crontab segítségével. Például, minden második nap 04:23-kor töltse le a gép a frissítéseket:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">crontab <span style="color: #660033;">-e</span></pre></div></div>

<blockquote><p>23 4 */2 * * /usr/bin/rsync -avrt rsync://ftp-stud.hs-esslingen.de/fedora/linux/updates/8/i386/ &#8211;exclude=debug/ /var/www/html/yum/updates/8/i386</p></blockquote>
<p>A helyi tükör már készen áll a használatra</p>
<h3>Kliensek beállítása</h3>
<p>Ha azt szeretnénk, hogy a Fedora a frissítéseket a helyi tükörről vegye, akkor az /etc/yum.conf fájlt kell módosítanunk:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>yum.conf</pre></div></div>

<p>Keressük meg ezt a két sort:</p>
<blockquote><p># PUT YOUR REPOS HERE OR IN separate files named file.repo<br />
# in /etc/yum.repos.d</p></blockquote>
<p>és írjuk be utána a következőket:</p>
<blockquote><p> [base-local]<br />
name=Fedora $releasever &#8211; $basearch<br />
failovermethod=priority<br />
baseurl=http://192.168.0.100/yum/base/$releasever/$basearch<br />
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&amp;arch=$basearch<br />
enabled=1<br />
gpgcheck=0[updates-local]<br />
name=Fedora $releasever &#8211; $basearch &#8211; Updates<br />
failovermethod=priority<br />
baseurl=http://192.168.0.100/yum/updates/$releasever/$basearch/<br />
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&amp;arch=$basearch<br />
enabled=1<br />
gpgcheck=0</p></blockquote>
<p>Mostantól a frissítéseket a helyi szerveren (192.168.0.100) fogja keresni a rendszer</p>

	Címkék: <a href="http://hogyan.org/cimkek/apache" title="apache" rel="tag">apache</a>, <a href="http://hogyan.org/cimkek/fedora" title="Fedora" rel="tag">Fedora</a>, <a href="http://hogyan.org/cimkek/kliens" title="kliens" rel="tag">kliens</a>, <a href="http://hogyan.org/cimkek/linux" title="Linux" rel="tag">Linux</a>, <a href="http://hogyan.org/cimkek/rendszer" title="rendszer" rel="tag">rendszer</a>, <a href="http://hogyan.org/cimkek/szerver" title="szerver" rel="tag">szerver</a>
]]></content:encoded>
			<wfw:commentRss>http://hogyan.org/helyi-yum-tarolo-fedora8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
