<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom"  xmlns:media="http://search.yahoo.com/mrss/">
<channel>
	<title><![CDATA[esenola: Linux Konuları]]></title>
	<link>https://esenola.com/groups/profile/9320/linux-konulari</link>
	<atom:link href="https://esenola.com/groups/profile/9320/linux-konulari" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://esenola.com/discussion/view/9323/apache-crashes-your-web-site-is-down-and-the-errorlog-says-permission-denied-apache2-could-not-open-error-log-file</guid>
	<pubDate>Fri, 10 May 2019 20:39:52 +0200</pubDate>
	<link>https://esenola.com/discussion/view/9323/apache-crashes-your-web-site-is-down-and-the-errorlog-says-permission-denied-apache2-could-not-open-error-log-file</link>
	<title><![CDATA[Apache Crashes: Your web site is down and the Error.log says: Permission denied apache2: could not open error log file]]></title>
	<description><![CDATA[<p>&nbsp;</p><p>If all of a sudden your websites are inaccessible, there can be several reasons for this. This article addresses one specific error message as mentioned in the title. Actually the text in the title is not the complete error message but it contains a fair amount of keywords in the message.</p><p>When your site(s) are down, you can follow the following procedure for troubleshooting:</p><p>1- Is Apache httpd server up and running?</p><p>You can check this with the following command line comman:</p><p>(Debian Linux): service apache2 status</p><p>2- If the Apache httpd server is down, try starting it.</p><p>You can start the server with the following command line command:</p><p>(Debian Linux):&nbsp; /etc/init.d/apache2 start</p><p>3- If the Apache httpd server starts, then check if your sites are up. If they are up, probably your problem is resolved.</p><p>4- If the Apache httpd server is still down, then check the htppd log files.</p><p>First check the Apache httpd main log file. Where it is located depends on your Linux flavour (Pardus, Debian etc). E.g. for Debian it is at /var/log/apache2 directory.</p><p>The main Apache httpd error.log file usually will have an indication about the cause of the problem. If not, and if you are using a virtual host setup (done via ispconfig or so), you may want to check the error logs of the individual virtual hosts.</p><p>5- And the httpd main error.log file says it cannot write into a virtual host error log file.</p><p>It says something like Permission denied apache2: could not open error log file.</p><p>Most likely, the error.log file will be indicating the name of the website whose error log it cannot access, even if it is in the form of a directory path or so. But if there is no such info for some reason, then you will need to find out which web site is causing the problem. An easy way to find tis out is:</p><p>a- Disable all website (virtual hosts)</p><p>You do this with the a2dissite command line command (just replace the virtual-host with each virtual host you have):</p><p>a2dissite <em>virtual-host</em></p><p>b- Try starting Apache httpd server</p><p>Check that the Apache httpd server has started. If it has not, then stop reading this article and do a search on internet. Yo will not find your solution in this article.</p><p>c- If the Apache httpd server has successfully started,</p><p>then one by one enable the virtual hosts (vhost) with the following command:</p><p>a2ensite <em>virtual-host</em></p><p>and after each site check to see that Apache the httpd server is still up. If it came down, it means that you found your problematic website (at least the first problematic one!).</p><p>6- Once you found your problematic site, now investigate the cause of the problem</p><p>Well, there can be several reasons for this:</p><p>a- The error.log file or its directory does not exist or the path is wrong.</p><p>Then it is pretty normal that Apache httpd cannot acces it, right? Correct it and start the httpd server.</p><p>b- Check the ownership and the access rights attributes of the error log file and its directories. Compare these attributes with those of another site that you know works. Is there something which stands out? Then change it (with chown and chmod commands) and try starting Apache httpd server.</p><p>c- Another problem can be the Immutable flag of the error.log file. This file attribute is pretty usable against the hacker attacks to change the source code on your website. It ensures that nobody, not even the root user can modify/delete a file whose immutabe fiag is set. And only the root user can set or reset the immutable flag. The problem is: sometimes the (root) user sets this flag inadvertently also for the files which are meant to be modified like an error.log file. This happens when the user sets the flag using a wild card.</p><p>Best way to check is via the command line command:</p><p>lsattr error.log</p><p>If the immutable flag is set, then you will see a plus (+) sign in the output. Or to make sure that it is not set, just run the following flag to reset it:</p><p>chattr -i error.log</p><p>You might think that you have never done such an operation in that particular directory. But in the world of Linux symlinks, you can&#39;t be so sure!</p>]]></description>
	<dc:creator>Germencikli</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://esenola.com/discussion/view/9322/apache-cokmesi-errorlog-daki-ileti-permission-denied-apache2-could-not-open-error-log-file</guid>
	<pubDate>Fri, 10 May 2019 20:14:18 +0200</pubDate>
	<link>https://esenola.com/discussion/view/9322/apache-cokmesi-errorlog-daki-ileti-permission-denied-apache2-could-not-open-error-log-file</link>
	<title><![CDATA[Apache Çökmesi: Error.log &#039;daki ileti: Permission denied apache2: could not open error log file]]></title>
	<description><![CDATA[<p>&nbsp;</p><p>İnternet siteleriniz birden bire erişilmez duruma geldiyse, Apache httpd sunucusunun ana g&uuml;nl&uuml;ğ&uuml;ne (log) baktığınızda</p><p><em><strong>Error.log &#39;daki ileti: Permission denied apache2: could not open error log file&nbsp; exiting</strong></em></p><p>gibisinden (tam bir t&uuml;mce olarak değil ama bu s&ouml;zc&uuml;klerden bir ka&ccedil;ı) s&ouml;zc&uuml;kler g&ouml;r&uuml;yorsanız, bunun birka&ccedil; nedeni olabilir.</p><p>&Ouml;ncelikle, birden &ccedil;ok site barındıran konaklarda (&quot;host&quot;larda) Apache httpd genelde her bir site i&ccedil;in ayrı bir sanal konak (virtual host) kullanır. Dolayısı ile Apache ana g&uuml;nl&uuml;ğ&uuml;ndeki sorun bilgisinde belirli bir sanal konağın g&uuml;nl&uuml;ğ&uuml;ne ulaşamamaktan s&ouml;zediyor olacaktır. Ancak belirli bir siteden s&ouml;zetmiyorsa, o zaman hangi sitenin bu sorunu yarattığını bulmanız gerekecek. Bunu yapmanın en kolay yolu, &ouml;nce t&uuml;m siteleri (sanal konakları) edilgen duruma getirmek, sonra da birer birer etkin duruma getirip sitelerinizin hala erişilir olup olmadığına bakmak.</p><p>Bunu şu sorun giderme y&ouml;nergesiyle yapabilirsiniz:</p><p>1- &Ouml;nce sitelerinizi (sanal konaklarınızı) şu komutla edilgen duruma getirin.</p><p>a2dissite *</p><p>Bu durumda t&uuml;m sitelerinizin erişilmez olması beklenen bir durumdur. &Ccedil;&uuml;nk&uuml; t&uuml;m sitelerinizin yayınını durdurdunuz.</p><p>2- İlk &ouml;nce Apache httpd sunucusunu <a href="https://esenola.com/discussion/view/9321/apache-cokmesi-ornek-bir-sorun-cozme-yonergesi"><em>Apache &ccedil;&ouml;kmesi: &Ouml;rnek bir sorun &ccedil;&ouml;zme y&ouml;nergesi</em></a> yazısında belirtilen komutla başlatmayı deneyin. Sonra da yine o yazıda belirtilen komutla, Apache httpd sunucusun başlayıp başlamadığını yoklayın.&nbsp; Başlamıyorsa hemen bu yazıyı okumayı durdurup, internette arama yapın, &ccedil;&uuml;nk&uuml; &ccedil;&ouml;z&uuml;m&uuml;n&uuml;z&uuml; burada bulamayacaksınız.&nbsp;</p><p>3- Apache httpd sunucusu beklenir bi&ccedil;imde &ccedil;alışıyorsa, o zaman tek tek sitelerinizi erişilir duruma getirin. Bunu tek tek yapın. Bunun i&ccedil;in şu komutu kullanın ( sanal-konak olan yere ger&ccedil;ek sanal konak adını yazacaksınız):</p><p>a2ensite <em>sanal-konak</em></p><p>Her birinden sonra Apache&#39;nin &ccedil;alışır durumda olup olmadığını denetleyin. Eğer Apache g&ouml;&ccedil;t&uuml;yse, aradığınız sorunlu siteyi (sanak konağı) buldunuz demektir (en azından, birincisini buldunuz. &Ccedil;&uuml;nk&uuml; birden &ccedil;ok sorunlu site olabilir).</p><p>4- Şimdi. sorunlu siteyi buldunuz. Apache httpd ana g&uuml;nl&uuml;ğ&uuml;nde belrtildiği gibi, Apache bir bi&ccedil;imde bu sanal konağın g&uuml;nl&uuml;ğ&uuml;ne yazamıyor, g&uuml;nl&uuml;ğe erişemiyor.</p><p>Bunun birka&ccedil; nedeni olabilir:</p><p>a- G&uuml;nl&uuml;k ger&ccedil;ekten var mı?</p><p>Apache httpd sunucunun olmayan bir g&uuml;nl&uuml;ğe ulaşması olanaksız. O y&uuml;zden &ouml;nce ger&ccedil;ekten o g&uuml;nl&uuml;k ya da o g&uuml;nl&uuml;ğ&uuml;n dizininin, yolunun olup olmadığını yoklayın.</p><p>b- Apache&#39;nin erişememekten yakındığı g&uuml;nl&uuml;k ger&ccedil;ekten de varsa, o zaman Linux&#39;un &uuml;nl&uuml; erişim yetkilerini, iyelik durumlarını yoklamanız gerekecek. G&uuml;nl&uuml;k dizininin, g&uuml;nl&uuml;ğ&uuml;n erişim yetkilerinde, iyesini (sahibini/owner&#39;ını) &ouml;teki &ccedil;alışır sanal konaklarla karşılaştırın. Sıradışı bir durum var mı? Varsa d&uuml;zeltip Apache httpd&#39;yi yeniden başlatmayı deneyin. ldığında sıradışı g&ouml;z&uuml;ken bir durum var mı?</p><p>c- &quot;Değiştirilemez bayrağı&quot; (Immutable flag) etkin mi?</p><p>Linux&#39;da her k&uuml;t&uuml;k (file) i&ccedil;in onun değiştirilebilir ya da değiştirilemez olmasını belirleyebilirsiniz. Bu da &quot;değiştirilemez bayrağı&quot;nı etkin duruma getirip getirmemekle olan birşey. Bu işlevin nedeni, k&ouml;t&uuml; ama&ccedil;lı bilgisayar korsanlara karşı kaynak kodları korumak. Ancak &ouml;zellikle yanlışlıkla error.log g&uuml;nl&uuml;ğ&uuml;n&uuml; de &quot;değiştirilemez&quot; olarak yaptıysanız, Apache httpd de g&uuml;nl&uuml;ğ&uuml;n i&ccedil;ine yazamayacağı i&ccedil;in t&uuml;m sorunu yaratıyor olabilir.</p><p>Bunu lsattr (&ouml;zellikleri g&ouml;ster) komutu ile yapabilirsiniz: &Ouml;rneğin:</p><p>lsattr error.log</p><p>Eğer gelen sonu&ccedil;ta bir artı (+) simgesi varsa, bu bayrak etkin demektir. Bunu aşağıdaki komut ile etkisiz duruma getirin:</p><p>chattr -i error.log</p><p>Bu arada &quot;yahu ben o dizinde hi&ccedil;bir değişiklik yapmamıştım&quot; vb diye d&uuml;ş&uuml;nmeyin. Bu Linux. Bir yerlerden oraya bir symlink bağlantısı olabilir...</p><p>&nbsp;</p>]]></description>
	<dc:creator>Germencikli</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://esenola.com/discussion/view/9321/apache-cokmesi-ornek-bir-sorun-cozme-yonergesi</guid>
	<pubDate>Fri, 10 May 2019 19:29:06 +0200</pubDate>
	<link>https://esenola.com/discussion/view/9321/apache-cokmesi-ornek-bir-sorun-cozme-yonergesi</link>
	<title><![CDATA[Apache çökmesi: Örnek bir sorun çözme yönergesi]]></title>
	<description><![CDATA[<p>&nbsp;</p><p>Sorun: Birden bire konağınızdaki t&uuml;m siteleriniz erişilmez oldu.</p><p>Bu durumda ş&ouml;yle bir denetim y&ouml;nergesi izlenebilir:</p><p>1- Apache httpd sunucusunun &ccedil;alışır durumda mı?</p><p>Birden bire t&uuml;m sitelerin &ccedil;&ouml;kmesi genel bir sorunun belirtisi olmalı. Apache httpd sunucusunun &ccedil;alışır durumda olup olmadığını bir yoklayın. Bunu komut y&uuml;zleminde ş&ouml;yle yapabilirsiniz:</p><p>(Debian Linux&#39;da): service apache2 status</p><p>2- Eğer Apache httpd sunucusu &ccedil;alışmıyorsa, bir başlatmayı deneyin.</p><p>Bunu şu komutla yapabilirsiniz:</p><p>(Debian Linux&#39;da):&nbsp; /etc/init.d/apache2 start</p><p>Eğer Apache httpd sunucusu ayağa kalktıysa, sitelerinizin &ccedil;alışır durumda olup olmadığını denetleyin. &Ccedil;alışıyorsa, sorun &ccedil;&ouml;z&uuml;lm&uuml;ş demektir.</p><p>3- Eğer Apache httpd sunucusu komutla başlatılamıyorsa...</p><p>Neden başlamadığını araştırmak gerek. Bunun i&ccedil;in Apache httpd sorun g&uuml;nl&uuml;ğ&uuml;ne (error log) bakmanız gerekecek. Genellikle orada sorunun neden kaynaklandığı konusunda bir belirti bulacaksınız. B&uuml;y&uuml;k olasılıkla sorunun nedeni burada belirtilecektir. Olur da burada bulamazsanız, (sanal konak -virtual host- yapılanması durumunda) her site i&ccedil;in ayrı sorun g&uuml;nl&uuml;ğ&uuml;ne de bakabilirsiniz.</p><p>&nbsp;</p><p>&nbsp;</p>]]></description>
	<dc:creator>Germencikli</dc:creator>
</item>

</channel>
</rss>