<?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>service command &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/service-command/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Fri, 30 Dec 2011 16:57:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>Linux Start / Stop / Restart Apache Server</title>
		<link>https://lifelinux.com/linux-start-stop-restart-apache-server/</link>
					<comments>https://lifelinux.com/linux-start-stop-restart-apache-server/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Fri, 30 Dec 2011 16:51:21 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[/etc/init.d/httpd]]></category>
		<category><![CDATA[apache httpd server]]></category>
		<category><![CDATA[configuration error]]></category>
		<category><![CDATA[fedora linux]]></category>
		<category><![CDATA[restart apache web server]]></category>
		<category><![CDATA[restart httpd]]></category>
		<category><![CDATA[server service]]></category>
		<category><![CDATA[service command]]></category>
		<category><![CDATA[stop apache web server]]></category>
		<category><![CDATA[stop httpd]]></category>
		<category><![CDATA[syntax check]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1282</guid>

					<description><![CDATA[<p>I&#8217;m using Apache server in CentOS / RHEL / Debian / Ubuntu and I&#8217;d like to start, stop or restart my apache server after making some changes to configuration settings. How do I start/stop/restart apache server ? CentOS / RHEL If you are using CentOS / RHEL then type the following commands Start Apache server [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/linux-start-stop-restart-apache-server/">Linux Start / Stop / Restart Apache Server</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>I&#8217;m using Apache server in CentOS / RHEL / Debian / Ubuntu and I&#8217;d like to start, stop or restart my apache server after making some changes to configuration settings. How do I start/stop/restart apache server ?<span id="more-1282"></span></p>
<h2>CentOS / RHEL</h2>
<p>If you are using CentOS / RHEL then type the following commands</p>
<p><strong>Start Apache server</strong></p>
<pre>
# service httpd start
</pre>
<p><strong>Stop Apache server</strong></p>
<pre>
# service httpd stop
</pre>
<p><strong>Restart Apache server</strong></p>
<pre>
# service httpd start
</pre>
<p>You can also use following commands:</p>
<pre>
# /etc/init.d/httpd start
# /etc/init.d/httpd stop
# /etc/init.d/httpd restart
</pre>
<p>Please note that restart option is a shorthand way of stopping and then starting the Apache Server. You need to restart server whenever you make changes to configuration settings. It is also good idea to check configuration error before typing restart option:</p>
<pre>
# httpd -t
</pre>
<p>Sample outputs</p>
<pre>
Syntax OK
</pre>
<h2>Debian / Ubuntu</h2>
<p>If you are using Debian / Ubuntu then type the following commands</p>
<p><strong>Start Apache server</strong></p>
<pre>
# service apache2 start
</pre>
<p><strong>Stop Apache server</strong></p>
<pre>
# service apache2 stop
</pre>
<p><strong>Restart Apache server</strong></p>
<pre>
# service apache2 start
</pre>
<p>You can also use following commands:</p>
<pre>
# /etc/init.d/apache2 start
# /etc/init.d/apache2 stop
# /etc/init.d/apache2 restart
</pre>
<g:plusone href="https://lifelinux.com/linux-start-stop-restart-apache-server/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/linux-start-stop-restart-apache-server/">Linux Start / Stop / Restart Apache Server</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/linux-start-stop-restart-apache-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Memcache PHP Extension</title>
		<link>https://lifelinux.com/how-to-install-memcache-php-extension/</link>
					<comments>https://lifelinux.com/how-to-install-memcache-php-extension/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 10:08:43 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[/etc/sysconfig/memcached]]></category>
		<category><![CDATA[centos memcached]]></category>
		<category><![CDATA[chkconfig command]]></category>
		<category><![CDATA[EPEL repo]]></category>
		<category><![CDATA[fedora memcached]]></category>
		<category><![CDATA[Linux memcached]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[memcached-selinux]]></category>
		<category><![CDATA[memcached-tool command]]></category>
		<category><![CDATA[php-pecl-memcache]]></category>
		<category><![CDATA[redhat memcached]]></category>
		<category><![CDATA[rhel memcached]]></category>
		<category><![CDATA[service command]]></category>
		<category><![CDATA[yum command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=983</guid>

					<description><![CDATA[<p>Memcache extension provides handy procedural and object oriented interface to memcached, highly effective caching daemon, which was especially designed to decrease database load in dynamic web applications. This article will explain how to install the memcache PHP extension on Centos/RedHat/Fedora. The first, download the latest &#038; stable package from http://pecl.php.net/package/memcache. Type the following command # [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-install-memcache-php-extension/">How To Install Memcache PHP Extension</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>Memcache</strong> extension provides handy procedural and object oriented interface to memcached, highly effective caching daemon, which was especially designed to decrease database load in dynamic web applications. This article will explain how to install the memcache PHP extension on Centos/RedHat/Fedora.<span id="more-983"></span></p>
<p>The first, download the latest &#038; stable package from http://pecl.php.net/package/memcache. Type the following command</p>
<pre>
# wget http://pecl.php.net/get/memcache-2.2.6.tgz
</pre>
<p>Extract memcache-2.2.6.tgz</p>
<pre>
# tar zxvf memcache-2.2.6.tgz
</pre>
<p>To install memcache extension, you need to install the php-devel package that matches the version of php that you are currently running. Example, i&#8217;m using PHP 5.3 then enter</p>
<pre>
# yum install php53-devel
</pre>
<p>Run the phpize command to prepare the build environment for a PHP extension</p>
<pre>
# phpize
</pre>
<p>Sample output</p>
<pre>
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
</pre>
<p>Configure &#038; Install memcache extension. Type the following command</p>
<pre>
# ./configure
# make
# make install
</pre>
<p>If your get the following error message when run ./configure</p>
<pre>
checking for the location of ZLIB... no
checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
</pre>
<p>Then type the following command to fix it</p>
<pre>
# yum install zlib zlib-devel
</pre>
<p>Finally, use the following command to add memcache extension to php.ini</p>
<pre>
# echo "extension=memcache.so" >> /etc/php.ini
</pre>
<g:plusone href="https://lifelinux.com/how-to-install-memcache-php-extension/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-install-memcache-php-extension/">How To Install Memcache PHP Extension</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-install-memcache-php-extension/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Enable/Disable Firewall On Centos / RedHat / Fedora</title>
		<link>https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/</link>
					<comments>https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 18 May 2011 05:34:36 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[administration tool]]></category>
		<category><![CDATA[boot time]]></category>
		<category><![CDATA[chkconfig command]]></category>
		<category><![CDATA[disable firewall]]></category>
		<category><![CDATA[firewall service]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[packet filtering]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[service command]]></category>
		<category><![CDATA[system tool]]></category>
		<category><![CDATA[system v]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=590</guid>

					<description><![CDATA[<p>Iptables should be installed by default on all CentOS 3.x, 4.x and 5.x installations. You can check to see if iptables is installed on your system by: # rpm -q iptables Sample output iptables-1.3.5-5.3.el5_4.1 How to enable firewall Login as root and type the following command # /etc/init.d/iptables start # chkconfig iptables on If you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/">How To Enable/Disable Firewall On Centos / RedHat / Fedora</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>Iptables</strong> should be installed by default on all CentOS 3.x, 4.x and 5.x installations. You can check to see if iptables is installed on your system by:</p>
<pre>
# rpm -q iptables
</pre>
<p><span id="more-590"></span><br />
Sample output</p>
<pre>
iptables-1.3.5-5.3.el5_4.1
</pre>
<h3>How to enable firewall</h3>
<p>Login as root and type the following command</p>
<pre>
# /etc/init.d/iptables start
# chkconfig iptables on
</pre>
<p>If you are using IPv6, enter:</p>
<pre>
# /etc/init.d/ip6tables start
# chkconfig ip6tables on
</pre>
<p>And to see if iptables is actually running, we can check that the iptables modules are loaded, type the following command</p>
<pre>
# lsmod | grep ip_tables
</pre>
<p>Something look like:</p>
<pre>
ip_tables              29288  1 iptable_filter
x_tables               29192  6 ip6t_REJECT,ip6_tables,ipt_REJECT,xt_state,xt_tcpudp,ip_tables
</pre>
<h3>How to disable firewall</h3>
<p>Login as root and type the following command</p>
<pre>
# /etc/init.d/iptables stop
# chkconfig iptables off
</pre>
<p>If you are using IPv6, enter:</p>
<pre>
# /etc/init.d/ip6tables stop
# chkconfig ip6tables off
</pre>
<g:plusone href="https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/">How To Enable/Disable Firewall On Centos / RedHat / Fedora</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
