<?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>cpanel nginx kurulumu - Zafer Melih UNUTMAZ</title>
	<atom:link href="https://zafer.win/tag/cpanel-nginx-kurulumu/feed/" rel="self" type="application/rss+xml" />
	<link>https://zafer.win</link>
	<description>Bir Kenarda Dursun</description>
	<lastBuildDate>Mon, 28 Aug 2017 21:25:27 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>cPanel Nginx Kurulumu</title>
		<link>https://zafer.win/45/cpanel-nginx-kurulumu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cpanel-nginx-kurulumu</link>
					<comments>https://zafer.win/45/cpanel-nginx-kurulumu/#comments</comments>
		
		<dc:creator><![CDATA[Zafer Melih UNUTMAZ]]></dc:creator>
		<pubDate>Sat, 06 May 2017 11:46:21 +0000</pubDate>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cpanel nginx]]></category>
		<category><![CDATA[cpanel nginx kurulumu]]></category>
		<category><![CDATA[nginx hatası]]></category>
		<category><![CDATA[nginx kurulumu]]></category>
		<guid isPermaLink="false">https://zafer.win/?p=45</guid>

					<description><![CDATA[<p>Nginx Apache ye oranla sunucu yükünü hafifleten ve popüler bir bir web sunucusu.Tabi nginx nimetleri saymakla bitmez ancak biz bu yazıda cpanel/whm üzerine problemsiz nginx&#8230;</p>
<p>The post <a href="https://zafer.win/45/cpanel-nginx-kurulumu/">cPanel Nginx Kurulumu</a> first appeared on <a href="https://zafer.win">Zafer Melih UNUTMAZ</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Nginx Apache ye oranla sunucu yükünü hafifleten ve popüler bir bir web sunucusu.Tabi nginx nimetleri saymakla bitmez ancak biz bu yazıda cpanel/whm üzerine problemsiz nginx kurulumunu yapacağız.</p>
<p>Başlayalım</p>
<p><code><br />
cd /usr/local/src<br />
wget http://nginxcp.com/latest/nginxadmin.tar<br />
tar xf nginxadmin.tar<br />
cd publicnginx<br />
./nginxinstaller install<br />
</code></p>
<p>Kurulum sırasında yeni bir key isterse whm panelden <strong>Setup Remote Access Key</strong> e girerek yeni bir key oluşturarark nginxinstaller dosyasını tekrar çalıştırın.</p>
<p>İşlem tamamlanacaktır ve whm panelde plugins menüsü altında nginx den yeni web sunucunuzu devreye alabilirsiniz.</p>
<p>Muhtemel çıkabilecek hatalar da var tabi</p>
<p><strong>WHM is configured to disallow execution of unregistered applications when logged in as root or a reseller with the “all” ACL. To enable this functionality you must do one of the following: Register this addon using /usr/local/cpanel/bin/register_appconfig (http:// docs. cpanel .net/twiki/bin/view/SoftwareDevelopmentKit/AppConfig), Enable the “Allow apps that have not registered with AppConfig to be run when logged in as root or a reseller with the “all” ACL in WHM” option in “Tweak Settings”, or add permit_unregistered_apps_as_root=1 to /var/cpanel/cpanel.config, and run /usr/local/cpanel/etc/init/startcpsrvd</strong></p>
<p>Böyle bir hata alırsanız Tweak Settings Menüsünden Allow apps that have not registered with AppConfig to be run when logged in as root or a reseller with the “all” ACL in WHM bölümünü off konuma getirin sorun çözülecektir.</p>
<p><strong>Internal Server Error</strong></p>
<p>500</p>
<p>No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi): The subprocess reported error number 2 when it ended.</p>
<p>Bu şekilde bir hata alırsanız sebebi cpanelin whmlib desteğini kaldırmasıdır.</p>
<p><code>nano /usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi</code></p>
<p>Burada yer alan <strong>use whmlib;</strong> satırını başına # koyarak <strong>#use whmlib;</strong> şekline getirirseniz bu sorun da ortadan kalkacaktır.</p>
<p>Ayarlarınızı tamaladıktan sonra <code>/usr/local/cpanel/etc/init/startcpsrvd</code> komutu ile servisi başlatın.</p>
<p>Unutmadan ekleyelim /tmp dizinini düzenli temizlemek için aşağıdaki işlemi de uygulayınız.</p>
<p><code>yum -y install tmpwatch<br />
Kurulumdan sonra<br />
crontab -e<br />
En alta ekleyiniz<br />
0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client</code></p>
<p>&nbsp;</p>
<p>Karşılaşılan Bir Diğer Hata</p>
<blockquote><p>Welcome to the Nginx Admin installer&#8230;&#8230;Starting Install<br />
Please Wait &#8230;&#8230;.<br />
Generating vhosts&#8230;<br />
Installing WHM interface&#8230;<br />
cp: cannot create regular file &#8216;/var/cpanel/apps/nginxcp.conf&#8217;: No such file or directory<br />
Installing mod_remoteip&#8230;<br />
RemoteIP module not found at: /home/cpeasyapache/src/httpd-2.4/modules/metadata<br />
[root@server publicnginx]# mkdir -p /home/cpeasyapache/src/httpd-2.4/modules/metadata</p></blockquote>
<p>Çözümü İçin</p>
<blockquote><p> mkdir -p /home/cpeasyapache/src/httpd-2.4/modules/metadata</p>
<p>Dizini Oluşturun ve Nginx Installer ı Tekarar Çalıştırınız</p></blockquote>
<p>Bir Hata Daha</p>
<blockquote><p>cp: cannot stat `/var/cpanel/templates/apache2/vhost.default&#8217;: No such file or directory<br />
cp: cannot stat `/var/cpanel/templates/apache2/ssl_vhost.default&#8217;: No such file or directory<br />
sed: can&#8217;t read /var/cpanel/templates/apache2/vhost.local: No such file or directory<br />
sed: can&#8217;t read /var/cpanel/templates/apache2/ssl_vhost.local: No such file or directory</p></blockquote>
<p>Çözüm İçin</p>
<blockquote><p>cp /var/cpanel/templates/apache2_4/* /var/cpanel/templates/apache2</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Herkese İyi Çalışmalar Dilerim.</p><p>The post <a href="https://zafer.win/45/cpanel-nginx-kurulumu/">cPanel Nginx Kurulumu</a> first appeared on <a href="https://zafer.win">Zafer Melih UNUTMAZ</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://zafer.win/45/cpanel-nginx-kurulumu/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
