<?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>Linux Ask! &#187; Servers</title>
	<atom:link href="http://www.linuxask.com/topics/servers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxask.com</link>
	<description>Linux Ask! is a Q &#38; A web site specific for Linux related questions such as how to use common Linux commands.</description>
	<lastBuildDate>Wed, 08 Sep 2010 16:01:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Enable gzip compression in Nginx</title>
		<link>http://www.linuxask.com/questions/enable-gzip-compression-in-nginx</link>
		<comments>http://www.linuxask.com/questions/enable-gzip-compression-in-nginx#comments</comments>
		<pubDate>Sat, 14 Aug 2010 13:13:50 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2074</guid>
		<description><![CDATA[Enable gzip compression in Nginx
Answer:
Enabling gzip compression for text based output such as HTML can greatly improve the response of user.
If you are using nginx, it is easy by adding the following lines in your nginx.conf
gzip  on;
gzip_min_length  1000;
gzip_proxied     expired no-cache no-store private auth;
gzip_types text/plain text/html text/css application/json application/x-javascript text/javascript [...]


Related posts:<ol><li><a href='http://www.linuxask.com/questions/turn-on-content-compression-in-apache' rel='bookmark' title='Permanent Link: Turn on content compression in Apache'>Turn on content compression in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/adding-ssl-suport-in-nginx' rel='bookmark' title='Permanent Link: Adding SSL suport in Nginx'>Adding SSL suport in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/installing-nginx-in-ubuntu' rel='bookmark' title='Permanent Link: Installing Nginx in Ubuntu'>Installing Nginx in Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Enable gzip compression in Nginx</p>
<p><strong>Answer:</strong></p>
<p>Enabling <strong>gzip compression</strong> for text based output such as HTML can <a href="http://googlecode.blogspot.com/2009/11/use-compression-to-make-web-faster.html">greatly improve the response of user</a>.</p>
<p>If you are using <strong>nginx</strong>, it is easy by adding the following lines in your <strong>nginx.conf</strong></p>
<pre><code>gzip  on;
gzip_min_length  1000;
gzip_proxied     expired no-cache no-store private auth;
gzip_types text/plain text/html text/css application/json application/x-javascript text/javascript text/xml application/xml;
</code></pre>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/turn-on-content-compression-in-apache' rel='bookmark' title='Permanent Link: Turn on content compression in Apache'>Turn on content compression in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/adding-ssl-suport-in-nginx' rel='bookmark' title='Permanent Link: Adding SSL suport in Nginx'>Adding SSL suport in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/installing-nginx-in-ubuntu' rel='bookmark' title='Permanent Link: Installing Nginx in Ubuntu'>Installing Nginx in Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/enable-gzip-compression-in-nginx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check which Apache modules are loaded</title>
		<link>http://www.linuxask.com/questions/check-which-apache-modules-are-loaded</link>
		<comments>http://www.linuxask.com/questions/check-which-apache-modules-are-loaded#comments</comments>
		<pubDate>Sat, 03 Jul 2010 04:07:03 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1821</guid>
		<description><![CDATA[Check which Apache modules are loaded
Answer:
To check which Apache  modules are loaded, in RHEL/Fedora/CentOS, type
# httpd -M
In Debian/Ubuntu
# sudo apache2ctl -M 


Related posts:How to tell if Apache 2 is using prefork or worker MPM?
Remove default Fedora/RHEL/CentOS default Apache welcome page
Install GD Library for PHP on Linux



Related posts:<ol><li><a href='http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm' rel='bookmark' title='Permanent Link: How to tell if Apache 2 is using prefork or worker MPM?'>How to tell if Apache 2 is using prefork or worker MPM?</a></li>
<li><a href='http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page' rel='bookmark' title='Permanent Link: Remove default Fedora/RHEL/CentOS default Apache welcome page'>Remove default Fedora/RHEL/CentOS default Apache welcome page</a></li>
<li><a href='http://www.linuxask.com/questions/install-gd-library-for-php-on-linux' rel='bookmark' title='Permanent Link: Install GD Library for PHP on Linux'>Install GD Library for PHP on Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Check which Apache modules are loaded</p>
<p><strong>Answer:</strong></p>
<p>To check which <strong>Apache </strong> modules are loaded, in <strong>RHEL/Fedora/CentOS</strong>, type</p>
<p><code># httpd -M</code></p>
<p>In <strong>Debian/Ubuntu</strong></p>
<p><code># sudo apache2ctl -M </code></p>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm' rel='bookmark' title='Permanent Link: How to tell if Apache 2 is using prefork or worker MPM?'>How to tell if Apache 2 is using prefork or worker MPM?</a></li>
<li><a href='http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page' rel='bookmark' title='Permanent Link: Remove default Fedora/RHEL/CentOS default Apache welcome page'>Remove default Fedora/RHEL/CentOS default Apache welcome page</a></li>
<li><a href='http://www.linuxask.com/questions/install-gd-library-for-php-on-linux' rel='bookmark' title='Permanent Link: Install GD Library for PHP on Linux'>Install GD Library for PHP on Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/check-which-apache-modules-are-loaded/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to deny access for Subversion (svn) related files in Apache?</title>
		<link>http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache</link>
		<comments>http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache#comments</comments>
		<pubDate>Mon, 07 Jun 2010 04:50:27 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1698</guid>
		<description><![CDATA[How to deny access for Subversion (svn) related files in Apache?
Answer:
To deny access for Subversion (svn) related files under Apache, add the following lines to the Apache configuration (httpd.conf)
&#60;DirectoryMatch .*\.svn/.*&#62;
    Deny From All
&#60;/DirectoryMatch&#62;

And restart Apache to take effect.
# apachectl -k graceful


Related posts:Turn on expire headers in Apache
Enable Server Side Includes in Apache
Disable [...]


Related posts:<ol><li><a href='http://www.linuxask.com/questions/turn-on-expire-headers-in-apache' rel='bookmark' title='Permanent Link: Turn on expire headers in Apache'>Turn on expire headers in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/enable-server-side-includes-in-apache' rel='bookmark' title='Permanent Link: Enable Server Side Includes in Apache'>Enable Server Side Includes in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/disable-x-powered-by-and-server-headers-in-apachephp' rel='bookmark' title='Permanent Link: Disable X-Powered-By and Server headers in Apache/PHP'>Disable X-Powered-By and Server headers in Apache/PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How to deny access for Subversion (svn) related files in Apache?</p>
<p><strong>Answer:</strong></p>
<p>To deny access for <strong>Subversion (svn)</strong> related files under Apache, add the following lines to the Apache configuration (<strong>httpd.conf</strong>)</p>
<pre><code>&lt;DirectoryMatch .*\.svn/.*&gt;
    Deny From All
&lt;/DirectoryMatch&gt;
</code></pre>
<p>And restart Apache to take effect.</p>
<p><code># apachectl -k graceful</code></p>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/turn-on-expire-headers-in-apache' rel='bookmark' title='Permanent Link: Turn on expire headers in Apache'>Turn on expire headers in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/enable-server-side-includes-in-apache' rel='bookmark' title='Permanent Link: Enable Server Side Includes in Apache'>Enable Server Side Includes in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/disable-x-powered-by-and-server-headers-in-apachephp' rel='bookmark' title='Permanent Link: Disable X-Powered-By and Server headers in Apache/PHP'>Disable X-Powered-By and Server headers in Apache/PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tell if Apache 2 is using prefork or worker MPM?</title>
		<link>http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm</link>
		<comments>http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm#comments</comments>
		<pubDate>Thu, 15 Apr 2010 14:32:41 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1592</guid>
		<description><![CDATA[How to tell if Apache 2 is using prefork or worker MPM?
Answer:
If you are running in Red Hat Linux/ Fedora/ CentOS
# httpd -V
....
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
...

If you are running in [...]


Related posts:<ol><li><a href='http://www.linuxask.com/questions/remove-default-debianubuntu-default-apache-welcome-page' rel='bookmark' title='Permanent Link: Remove default Debian/Ubuntu default Apache welcome page'>Remove default Debian/Ubuntu default Apache welcome page</a></li>
<li><a href='http://www.linuxask.com/questions/check-which-apache-modules-are-loaded' rel='bookmark' title='Permanent Link: Check which Apache modules are loaded'>Check which Apache modules are loaded</a></li>
<li><a href='http://www.linuxask.com/questions/best-way-to-kill-all-child-processes-forked-by-a-given-program' rel='bookmark' title='Permanent Link: Best way to kill all child processes forked by a given program'>Best way to kill all child processes forked by a given program</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How to tell if Apache 2 is using prefork or worker MPM?</p>
<p><strong>Answer:</strong></p>
<p>If you are running in Red Hat Linux/ Fedora/ CentOS</p>
<pre><code># httpd -V
....
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
...
</code></pre>
<p>If you are running in Debian/ Ubuntu, you can use <strong>apache2 -V</strong>, which get the same output as above.</p>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/remove-default-debianubuntu-default-apache-welcome-page' rel='bookmark' title='Permanent Link: Remove default Debian/Ubuntu default Apache welcome page'>Remove default Debian/Ubuntu default Apache welcome page</a></li>
<li><a href='http://www.linuxask.com/questions/check-which-apache-modules-are-loaded' rel='bookmark' title='Permanent Link: Check which Apache modules are loaded'>Check which Apache modules are loaded</a></li>
<li><a href='http://www.linuxask.com/questions/best-way-to-kill-all-child-processes-forked-by-a-given-program' rel='bookmark' title='Permanent Link: Best way to kill all child processes forked by a given program'>Best way to kill all child processes forked by a given program</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Nginx in Ubuntu</title>
		<link>http://www.linuxask.com/questions/installing-nginx-in-ubuntu</link>
		<comments>http://www.linuxask.com/questions/installing-nginx-in-ubuntu#comments</comments>
		<pubDate>Sat, 10 Apr 2010 05:53:47 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1543</guid>
		<description><![CDATA[Installing Nginx in Ubuntu
Answer:
1. Using aptitude 
# sudo aptitude install nginx
2. Start it
# sudo /etc/init.d/nginx start
3. Stop it
# sudo /etc/init.d/nginx stop
4. Restart it
# sudo /etc/init.d/nginx restart


Related posts:Install APC for PHP on Ubuntu
Adding SSL suport in Nginx
How to install SSH server in Ubuntu?



Related posts:<ol><li><a href='http://www.linuxask.com/questions/install-apc-for-php-on-ubuntu' rel='bookmark' title='Permanent Link: Install APC for PHP on Ubuntu'>Install APC for PHP on Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/adding-ssl-suport-in-nginx' rel='bookmark' title='Permanent Link: Adding SSL suport in Nginx'>Adding SSL suport in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-install-ssh-server-in-ubuntu' rel='bookmark' title='Permanent Link: How to install SSH server in Ubuntu?'>How to install SSH server in Ubuntu?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Installing Nginx in Ubuntu</p>
<p><strong>Answer:</strong></p>
<p>1. Using <strong>aptitude </strong></p>
<p><code># sudo aptitude install nginx</code></p>
<p>2. Start it</p>
<p><code># sudo /etc/init.d/nginx start</code></p>
<p>3. Stop it</p>
<p><code># sudo /etc/init.d/nginx stop</code></p>
<p>4. Restart it</p>
<p><code># sudo /etc/init.d/nginx restart</code></p>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/install-apc-for-php-on-ubuntu' rel='bookmark' title='Permanent Link: Install APC for PHP on Ubuntu'>Install APC for PHP on Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/adding-ssl-suport-in-nginx' rel='bookmark' title='Permanent Link: Adding SSL suport in Nginx'>Adding SSL suport in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-install-ssh-server-in-ubuntu' rel='bookmark' title='Permanent Link: How to install SSH server in Ubuntu?'>How to install SSH server in Ubuntu?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/installing-nginx-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding SSL suport in Nginx</title>
		<link>http://www.linuxask.com/questions/adding-ssl-suport-in-nginx</link>
		<comments>http://www.linuxask.com/questions/adding-ssl-suport-in-nginx#comments</comments>
		<pubDate>Tue, 30 Mar 2010 13:20:13 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1515</guid>
		<description><![CDATA[Adding SSL suport in Nginx
Answer:
Assume you have got your certificate file (server.crt) from a CA, and you also have a private key (server.key).
1. Compile Nginx to support SSL
# ./configure --with-http_ssl_module
2. Add the following line in nginx.conf
server {
    server_name YOUR_DOMAINNAME_HERE;
    listen 443;
    ssl on;
    [...]


Related posts:<ol><li><a href='http://www.linuxask.com/questions/how-many-worker_processes-should-i-use-in-nginx' rel='bookmark' title='Permanent Link: How many worker_processes should I use in Nginx?'>How many worker_processes should I use in Nginx?</a></li>
<li><a href='http://www.linuxask.com/questions/installing-nginx-in-ubuntu' rel='bookmark' title='Permanent Link: Installing Nginx in Ubuntu'>Installing Nginx in Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/enable-gzip-compression-in-nginx' rel='bookmark' title='Permanent Link: Enable gzip compression in Nginx'>Enable gzip compression in Nginx</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Adding SSL suport in Nginx</p>
<p><strong>Answer:</strong></p>
<p>Assume you have got your certificate file (<strong>server.crt</strong>) from a <a href="http://en.wikipedia.org/wiki/Certificate_authority">CA</a>, and you also have a private key (<strong>server.key</strong>).</p>
<p>1. Compile Nginx to support SSL</p>
<p><code># ./configure --with-http_ssl_module</code></p>
<p>2. Add the following line in <strong>nginx.conf</strong></p>
<pre><code>server {
    server_name YOUR_DOMAINNAME_HERE;
    listen 443;
    ssl on;
    ssl_certificate /usr/local/nginx/conf/server.crt;
    ssl_certificate_key /usr/local/nginx/conf/server.key;
}

</code></pre>
<p>3. Restart Nginx</p>
<p>Reference: <a href="http://wiki.nginx.org/NginxHttpSslModule">http://wiki.nginx.org/NginxHttpSslModule</a></p>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/how-many-worker_processes-should-i-use-in-nginx' rel='bookmark' title='Permanent Link: How many worker_processes should I use in Nginx?'>How many worker_processes should I use in Nginx?</a></li>
<li><a href='http://www.linuxask.com/questions/installing-nginx-in-ubuntu' rel='bookmark' title='Permanent Link: Installing Nginx in Ubuntu'>Installing Nginx in Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/enable-gzip-compression-in-nginx' rel='bookmark' title='Permanent Link: Enable gzip compression in Nginx'>Enable gzip compression in Nginx</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/adding-ssl-suport-in-nginx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How many worker_processes should I use in Nginx?</title>
		<link>http://www.linuxask.com/questions/how-many-worker_processes-should-i-use-in-nginx</link>
		<comments>http://www.linuxask.com/questions/how-many-worker_processes-should-i-use-in-nginx#comments</comments>
		<pubDate>Wed, 10 Mar 2010 05:55:17 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1545</guid>
		<description><![CDATA[How many worker_processes should I use in Nginx?
Answer:
In the Nginx configuration (nginx.conf), the default worker_processes is 1.
e.g.
worker_processes  1;

However, as nowadays most servers are multi-core/multi-processor machine, it is a waste to only use 1 worker process.
The recommended worker_processes is equal to the number of CPU cores, e.g. if you have a dual Quad Core server, [...]


Related posts:<ol><li><a href='http://www.linuxask.com/questions/adding-ssl-suport-in-nginx' rel='bookmark' title='Permanent Link: Adding SSL suport in Nginx'>Adding SSL suport in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/enable-gzip-compression-in-nginx' rel='bookmark' title='Permanent Link: Enable gzip compression in Nginx'>Enable gzip compression in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/add-custom-http-header-by-nginx' rel='bookmark' title='Permanent Link: Add custom HTTP header by nginx'>Add custom HTTP header by nginx</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How many worker_processes should I use in Nginx?</p>
<p><strong>Answer:</strong></p>
<p>In the <strong>Nginx</strong> configuration (nginx.conf), the default <strong>worker_processes</strong> is 1.</p>
<p>e.g.</p>
<pre><code>worker_processes  1;
</code></pre>
<p>However, as nowadays most servers are multi-core/multi-processor machine, it is a waste to only use 1 worker process.</p>
<p>The recommended <strong>worker_processes </strong>is equal to the number of CPU cores, e.g. if you have a dual Quad Core server, you should set to 8.</p>
<pre><code>worker_processes  8;
</code></pre>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/adding-ssl-suport-in-nginx' rel='bookmark' title='Permanent Link: Adding SSL suport in Nginx'>Adding SSL suport in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/enable-gzip-compression-in-nginx' rel='bookmark' title='Permanent Link: Enable gzip compression in Nginx'>Enable gzip compression in Nginx</a></li>
<li><a href='http://www.linuxask.com/questions/add-custom-http-header-by-nginx' rel='bookmark' title='Permanent Link: Add custom HTTP header by nginx'>Add custom HTTP header by nginx</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-many-worker_processes-should-i-use-in-nginx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove default Debian/Ubuntu default Apache welcome page</title>
		<link>http://www.linuxask.com/questions/remove-default-debianubuntu-default-apache-welcome-page</link>
		<comments>http://www.linuxask.com/questions/remove-default-debianubuntu-default-apache-welcome-page#comments</comments>
		<pubDate>Sun, 14 Feb 2010 09:34:06 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1305</guid>
		<description><![CDATA[Remove default Debian/Ubuntu default Apache welcome page
Answer:
To remove the Apache default welcome page under Debian/Ubuntu,
1. Remove the welcome page configuration
# a2dissite default
2. Restart Apache
# sudo /etc/init.d/apache2 restart 
That's all.


Related posts:Remove default Fedora/RHEL/CentOS default Apache welcome page
Set the default index page for Apache
Install APC for PHP on Ubuntu



Related posts:<ol><li><a href='http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page' rel='bookmark' title='Permanent Link: Remove default Fedora/RHEL/CentOS default Apache welcome page'>Remove default Fedora/RHEL/CentOS default Apache welcome page</a></li>
<li><a href='http://www.linuxask.com/questions/set-the-default-index-page-for-apache' rel='bookmark' title='Permanent Link: Set the default index page for Apache'>Set the default index page for Apache</a></li>
<li><a href='http://www.linuxask.com/questions/install-apc-for-php-on-ubuntu' rel='bookmark' title='Permanent Link: Install APC for PHP on Ubuntu'>Install APC for PHP on Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Remove default Debian/Ubuntu default Apache welcome page</p>
<p><strong>Answer:</strong></p>
<p>To remove the Apache default welcome page under Debian/Ubuntu,</p>
<p>1. Remove the welcome page configuration</p>
<pre><code># a2dissite default</code></pre>
<p>2. Restart Apache</p>
<pre><code># sudo /etc/init.d/apache2 restart </code></pre>
<p>That's all.</p>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page' rel='bookmark' title='Permanent Link: Remove default Fedora/RHEL/CentOS default Apache welcome page'>Remove default Fedora/RHEL/CentOS default Apache welcome page</a></li>
<li><a href='http://www.linuxask.com/questions/set-the-default-index-page-for-apache' rel='bookmark' title='Permanent Link: Set the default index page for Apache'>Set the default index page for Apache</a></li>
<li><a href='http://www.linuxask.com/questions/install-apc-for-php-on-ubuntu' rel='bookmark' title='Permanent Link: Install APC for PHP on Ubuntu'>Install APC for PHP on Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/remove-default-debianubuntu-default-apache-welcome-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent PHP script from running in Apache</title>
		<link>http://www.linuxask.com/questions/how-to-prevent-php-script-from-running-in-apache</link>
		<comments>http://www.linuxask.com/questions/how-to-prevent-php-script-from-running-in-apache#comments</comments>
		<pubDate>Sun, 14 Feb 2010 04:52:51 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1276</guid>
		<description><![CDATA[How to prevent PHP script from running in Apache
Answer:
If you have a PHP script and want it run under in command line only, not in the web server context, you can use the following method.
&#60;?php

if ( php_sapi_name() != "cli" ) {
    print "This script must be run from the command line\n";
  [...]


Related posts:<ol><li><a href='http://www.linuxask.com/questions/prevent-go-way-ssh-session-killing-still-running-job' rel='bookmark' title='Permanent Link: Prevent go way SSH session killing still running job'>Prevent go way SSH session killing still running job</a></li>
<li><a href='http://www.linuxask.com/questions/apache-restart-explained' rel='bookmark' title='Permanent Link: Apache restart explained'>Apache restart explained</a></li>
<li><a href='http://www.linuxask.com/questions/disable-sending-php-version-information-by-apachemod_php' rel='bookmark' title='Permanent Link: Disable sending PHP version information by Apache/mod_php'>Disable sending PHP version information by Apache/mod_php</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How to prevent PHP script from running in Apache</p>
<p><strong>Answer:</strong></p>
<p>If you have a PHP script and want it run under in command line only, not in the web server context, you can use the following method.</p>
<pre><code>&lt;?php

if ( php_sapi_name() != "cli" ) {
    print "This script must be run from the command line\n";
    exit();
}
</code></pre>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/prevent-go-way-ssh-session-killing-still-running-job' rel='bookmark' title='Permanent Link: Prevent go way SSH session killing still running job'>Prevent go way SSH session killing still running job</a></li>
<li><a href='http://www.linuxask.com/questions/apache-restart-explained' rel='bookmark' title='Permanent Link: Apache restart explained'>Apache restart explained</a></li>
<li><a href='http://www.linuxask.com/questions/disable-sending-php-version-information-by-apachemod_php' rel='bookmark' title='Permanent Link: Disable sending PHP version information by Apache/mod_php'>Disable sending PHP version information by Apache/mod_php</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-prevent-php-script-from-running-in-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Server Side Includes in Apache</title>
		<link>http://www.linuxask.com/questions/enable-server-side-includes-in-apache</link>
		<comments>http://www.linuxask.com/questions/enable-server-side-includes-in-apache#comments</comments>
		<pubDate>Sun, 14 Feb 2010 04:33:35 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1270</guid>
		<description><![CDATA[Enable Server Side Includes in Apache
Answer:
Server Side Includes (SSI) is a simple mechanism that allow you to add dynamic elements into your HTML file without playing with complicated scripting languages such as PHP or Perl.
To enable it under Apache, add the following lines to the Apache configuration (httpd.conf)
&#60;IfModule mod_include.c&#62;

    AddType text/html .shtml
 [...]


Related posts:<ol><li><a href='http://www.linuxask.com/questions/how-to-enable-server-side-includes-ssi' rel='bookmark' title='Permanent Link: How to enable Server Side Includes (SSI)'>How to enable Server Side Includes (SSI)</a></li>
<li><a href='http://www.linuxask.com/questions/turn-on-expire-headers-in-apache' rel='bookmark' title='Permanent Link: Turn on expire headers in Apache'>Turn on expire headers in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/disable-x-powered-by-and-server-headers-in-apachephp' rel='bookmark' title='Permanent Link: Disable X-Powered-By and Server headers in Apache/PHP'>Disable X-Powered-By and Server headers in Apache/PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Enable Server Side Includes in Apache</p>
<p><strong>Answer:</strong></p>
<p><strong>Server Side Includes (SSI</strong>) is a simple mechanism that allow you to add dynamic elements into your HTML file without playing with complicated scripting languages such as PHP or Perl.</p>
<p>To enable it under Apache, add the following lines to the Apache configuration (<strong>httpd.conf</strong>)</p>
<pre><code>&lt;IfModule mod_include.c&gt;

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml

&lt;/IfModule&gt;
</code></pre>
<p>Restart Apache to take effect</p>
<p><code># apachectl -k graceful </code></p>
<p>Now all yout <strong>.shtml</strong> files be will parsed and SSI related tags will be evaluated.</p>
<p>To see what SSI directives you can use, check out the following document:</p>
<p><a href="http://httpd.apache.org/docs/2.2/mod/mod_include.html"><strong>http://httpd.apache.org/docs/2.2/mod/mod_include.html</strong></a> </p>


<p>Related posts:<ol><li><a href='http://www.linuxask.com/questions/how-to-enable-server-side-includes-ssi' rel='bookmark' title='Permanent Link: How to enable Server Side Includes (SSI)'>How to enable Server Side Includes (SSI)</a></li>
<li><a href='http://www.linuxask.com/questions/turn-on-expire-headers-in-apache' rel='bookmark' title='Permanent Link: Turn on expire headers in Apache'>Turn on expire headers in Apache</a></li>
<li><a href='http://www.linuxask.com/questions/disable-x-powered-by-and-server-headers-in-apachephp' rel='bookmark' title='Permanent Link: Disable X-Powered-By and Server headers in Apache/PHP'>Disable X-Powered-By and Server headers in Apache/PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/enable-server-side-includes-in-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
