<?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>Vicky's server guides</title>
	<atom:link href="http://www.vickysguide.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vickysguide.com</link>
	<description>Linux server administration tips and tricks</description>
	<lastBuildDate>Sun, 28 Mar 2010 18:30:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rkhunter installation</title>
		<link>http://www.vickysguide.com/rkhunter-installation/</link>
		<comments>http://www.vickysguide.com/rkhunter-installation/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 18:30:12 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[backdoor]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[rkhunter]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[trojan]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/rkhunter-installation/</guid>
		<description><![CDATA[Rkhunter is an intrustion detection program for Linux OS which has been widely used by many server administrators. Sometimes there is a false alarm but most of the time you need to check the problematic areas Rkhunter points out. NEW: November 30th 2009 &#8211; Rkhunter v.1.3.6. is available and this how-to is updated. Use these [...]]]></description>
			<content:encoded><![CDATA[<p>Rkhunter is an intrustion detection program for Linux OS which has been widely used by many server administrators. Sometimes there is a false alarm but most of the time you need to check the problematic areas Rkhunter points out.</p>
<p><span style="color: #ff0000;">NEW: November 30th 2009 &#8211; Rkhunter v.1.3.6. is available and this how-to is updated. </span></p>
<p><span id="more-8"></span></p>
<p>Use these commands to install it:</p>
<p>wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.6/rkhunter-1.3.6.tar.gz?use_mirror=freefr</p>
<p>tar xvfz rkhunter*<br />
cd rkhunter-1.3.6<br />
./installer.sh &#8211;layout oldschool &#8211;install</p>
<p><span style="color: #ff0000;"><strong>note the installation difference</strong></span> &#8211; my command uses old format for installing rkhunter. If you do not have rkhunter installed or want it to be installed elsewhere follow the install script instructions and using &#8220;&#8211;layout default&#8221; may be good option.</p>
<p>Also, you will need to edit the config file because it is different than previous version. Do so by using this command:</p>
<p>cp /etc/rkhunter.conf /usr/local/etc/rkhunter.conf</p>
<p>It worked for me. Inspect the config file before usage.</p>
<p>After successful installation you can remove this rkhunter-1.3.6 directory.</p>
<p>At this time it is a good idea to create a cron job task to run Rkhunter regularly with email to root mailbox.</p>
<p>crontab -e</p>
<p>and insert these lines in there:</p>
<p><code>10 0 * * * /usr/local/bin/rkhunter –-update &gt; /dev/null 2&gt;&amp;1 # updates Rkhunter’s database<br />
25 0 * * * /usr/local/bin/rkhunter -c –-nocolors –-cronjob –-report-mode –-createlogfile –-skip-keypress –-quiet # runs it in cronjob mode</code></p>
<p>That&#8217;s it! Enjoy this fine piece of software <img src='http://www.vickysguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Here is the changelog for version 1.3.6: (date is in European format)</p>
<p>* 1.3.6 (30/11/2009)</p>
<p>New:<br />
- Added ZK rootkit check.<br />
- German translation provided.<br />
- Added the IGNORE_PRELINK_DEP_ERR option to the configuration file. This<br />
option can be used when a persistent prelink dependency error occurs.<br />
Further details of its use are in the configuration file.<br />
- Added CX rootkit check.<br />
- Added the USER_FILEPROP_FILES_DIRS configuration option. This allows<br />
users to add further files and directories to the file properties<br />
check. Details are in the configuration file. The installer program<br />
will automatically add the configuration file pathname to this option.<br />
- Added the EPOCH_DATE_CMD configuration option. In the file properties<br />
test any modification date/times will now be displayed in human-readable<br />
format as well as the number of epoch seconds. This option can be used<br />
to specify the command to use if the &#8216;date&#8217; or &#8216;perl&#8217; commands cannot<br />
convert epoch seconds.<br />
- Added the COPY_LOG_ON_ERROR configuration option. When set this will<br />
take a copy of the log file if any errors or warnings have occurred.<br />
- Added the WEBCMD configuration option. This allows users to specify<br />
the command used to download data file updates from the Internet.<br />
- It is now possible to put configuration changes into a local config<br />
file. This file, called &#8216;rkhunter.conf.local&#8217;, must be in the same<br />
directory as the main configuration file. Rkhunter will look for<br />
configuration options in the main config file, and then in the local<br />
config file if it exists. As before, for options allowed only once,<br />
the last one seen is used. For options allowed more than once, all<br />
options from both files will be used.<br />
- Added the SHARED_LIB_WHITELIST configuration option to allow the<br />
whitelisting of preloaded shared libraries.<br />
- Made some minor changes to enable support for SliTaz Linux.<br />
- Added the WARN_ON_OS_CHANGE and UPDT_ON_OS_CHANGE configuration<br />
options. During the file properties check there are some O/S tests<br />
performed to see if the O/S has changed since the last run of<br />
&#8216;rkhunter &#8211;propupd&#8217;. By default if something has changed, then a<br />
warning is shown. If the WARN_ON_OS_CHANGE option is unset, then no<br />
warnings will be shown. If the UPDT_ON_OS_CHANGE option is set, and<br />
the O/S has changed, then rkhunter will automatically update the file<br />
properties file (in effect, it will run &#8216;rkhunter &#8211;propupd&#8217;).<br />
- The installer now has a &#8216;&#8211;overwrite/-o&#8217; option. When used this will<br />
overwrite the existing configuration file. This allows a site to check<br />
the new config file (at least once) for changes, and then modify their<br />
own &#8216;rkhunter.conf.local&#8217; file as required. This option can then be<br />
used to have the installer overwrite the default config file. It saves<br />
having to move the new default config file into place on each computer.<br />
- Locking is now possible when rkhunter runs. This prevents RKH running<br />
more than once and corrupting any modified files such as the log file,<br />
or the file properties file. New configuration options have been added<br />
to handle the locking, and the configuration file contains details of<br />
how the locking works. The default is not to use locking.<br />
- Added support for hash functions SHA224, SHA256, SHA384 and SHA512 using<br />
perl modules Digest-SHA-PurePerl or SHA256, both available at CPAN.<br />
- Added the UPDATE_LANG configuration option. This can be set to those<br />
language files the user wants to be updated when the &#8216;&#8211;update&#8217; option is<br />
used. Since most sites may only use one language, this can reduce the<br />
network bandwidth used. The default is to update all the languages. The<br />
configured default language, and English (en), are always updated.<br />
- Added the ALLOWPROMISCIF configuration option. This can be used to<br />
specify network interfaces which are allowed to be in promiscuous mode.<br />
- Added the SCANROOTKITMODE configuration option. If set to &#8220;THOROUGH&#8221; then<br />
the scanrootkit function will search for filenames in all directories.<br />
While still not optimal this is one step away from the rigidity of<br />
searching only in known locations. Enabling this feature implies you have<br />
the knowledge to interprete results properly.<br />
- Added OSX rootkit check.<br />
- Added weaponX rootkit check.<br />
- Added the PKGMGR_NO_VRFY configuration option. This allows specified<br />
files to be exempt from the package manager verification process. Now<br />
that users can include their own files into the file properties check,<br />
it is possible that changed packaged files will cause a warning to be<br />
issued. This option allows those files to skip the package manager<br />
verification, and be treated as non-packaged files.<br />
- Added cb rootkit check.<br />
- Added Fu rootkit check.<br />
- Added ld-linuxv.so.1 LD_PRELOAD check.<br />
- Added Adore Rootkit aka strings.o rootkit aka Dextenea check.<br />
- Added iLLogiC rootkit check.<br />
- Added &#8216;Spanish&#8217; rootkit check.<br />
- Added Xzibit rootkit check.<br />
- Added trNkit rootkit check.</p>
<p>Changes:<br />
- Removed the &#8216;os_specific&#8217; test for OpenBSD. The *BSD test is currently<br />
only applicable to NetBSD and FreeBSD.<br />
- Updated the ENYE LKM check.<br />
- The &#8216;&#8211;debug&#8217; option no longer needs to be the first option on the<br />
command line.<br />
- Improved support for MAC&#8217;s now using the bash shell by default. Include<br />
logging of whether 64-bit is available.<br />
- When uninstalling rkhunter, old versions of the document directory<br />
(usually /usr/local/share/doc/rkhunter-*) will now be removed.<br />
- The warnings from the passwd and group file changes tests are now<br />
more specific about what has changed.<br />
- Small change to the detection of Source Mage Linux.<br />
- Renamed part of the &#8216;shared_libs&#8217; test to display that it is checking<br />
for preloaded libraries, rather than just the preload file. The pathname<br />
of the preload file is now logged, and any found shared library files are<br />
now logged as a warning.<br />
- The SYSLOG_CONFIG_FILE configuration option can now take the value of<br />
&#8216;NONE&#8217; to indicate that there is no syslog configuration file, despite<br />
the fact that syslogd may be running.<br />
- Some tests will now show their result as &#8216;Whitelisted&#8217;. If a test uses a<br />
configuration option, and this has been set, and the test passes &#8211; giving<br />
a green result &#8211; then it will now be shown as &#8216;Whitelisted&#8217;. The user can<br />
now see that a test has either passed correctly &#8211; an &#8216;OK&#8217; or &#8216;Not found&#8217;<br />
type result &#8211; or has passed because the test requirements have been<br />
whitelisted. It is for the user to investigate if this is correct or not.<br />
(This change does not currently apply to all relevant tests.)<br />
Additionally, the configuration option WHITELISTED_IS_WHITE can be set<br />
if the &#8216;Whitelisted&#8217; result is to be shown in white rather than green.<br />
For color set two users this will be shown in black.<br />
- Improved the O/S name detection slightly for those systems which only<br />
provide a version number.<br />
- Rkhunter now ensures that the output from the &#8216;lsattr&#8217; command, or<br />
&#8216;ls -lno&#8217; on *BSD systems, and the &#8216;file&#8217; command is valid. That is, it<br />
produces something on stdout. If it doesn&#8217;t, then the &#8216;immutable&#8217; and/or<br />
&#8216;scripts&#8217; test is skipped.<br />
- Changed the RPM spec file so as not to verify the checksum, size and mtime<br />
of the database files and the i18n files. These files may be changed by<br />
rkhunter itself.<br />
- The installer now uses the &#8216;default&#8217; layout by default. It is no longer<br />
necessary to specify the layout at all if the default is to be used.<br />
The &#8216;&#8211;layout&#8217; option no longer needs to be the first option specified<br />
if it is used.<br />
- Improved Fleakit Linux Rootkit checks.<br />
- Improved SHV4 Rootkit checks.<br />
- Improved beX2 Rootkit check.<br />
- Improved Phalanx2 Rootkit check to include Phalanx version 2.3d as reported<br />
in ticket 2839813, including a PHALANX2_DIRTEST configuration option which<br />
enables scanning for directory names and accepts the value &#8217;0&#8242; for default<br />
directory names to search for and &#8217;1&#8242; for scanning the /etc and /usr<br />
directories for directory names ending in &#8216;.p2&#8242; at the expense of a slightly<br />
longer running time. Absence of the configuration option selects value &#8217;0&#8242;.<br />
- Improved Ambient (ark) Rootkit check.<br />
- Improved BOBkit Rootkit check.<br />
- Improved Dica-Kit Rootkit check.<br />
- Improved Evil strings test.<br />
- Improved Possible rootkit files and directories test.<br />
- Improved Suspicious startup file strings test.<br />
- Improved Suspicious open files test.<br />
- Improved Known bad Linux kernel modules test.<br />
- Improved Dreams Rootkit check.<br />
- Improved Universal Rootkit (URK) check.<br />
- Improved FreeBSD Rootkit (FBRK) check and removed standalone ImperialS version.</p>
<p>Bugfixes:<br />
- When using the Korn shell the application check could give a spurious<br />
error printing out &#8216;-1&#8242;.<br />
- The debug code only partially worked when using the Korn shell.<br />
- Fixed the option parsing in the configuration file such that leading<br />
and trailing whitespace are now correctly removed.<br />
- When displaying the list of checked rootkit names, the list was supposed<br />
to be sorted.<br />
- If the &#8216;&#8211;list&#8217; option was used more than once with the same argument<br />
(e.g. &#8216;&#8211;list tests &#8211;list tests&#8217;), it displayed the wrong information.<br />
- The rootkit strings check wasn&#8217;t logging a warning for the particular<br />
string found. It was, however, displaying an overall test failure<br />
warning on the screen though.<br />
- The rootkit file whitelisting wasn&#8217;t applied to the startup script<br />
malware check. Also the summary wasn&#8217;t showing if any possible rootkits<br />
had been found or not.<br />
- If the &#8216;&#8211;propupd&#8217; option was used with either of the &#8216;&#8211;enable/&#8211;disable&#8217;<br />
command-line options, then the file properties would not be stored.<br />
However, if, for example, the &#8216;hashes&#8217; test was enabled, then only these<br />
would be stored. In all cases the relevant test was not run after the<br />
file properties were obtained, unless the &#8216;&#8211;check&#8217; option was also used.<br />
- The installer now uses a basic &#8216;echo&#8217; command. Hopefully it should work<br />
on all UNIX/Linux systems, and avoid any further &#8220;-e&#8221;&#8216;s being displayed.<br />
- Changed how rkhunter detects the Korn shell, and added a test to see if<br />
the &#8216;echo -e&#8217; command works or not. As with the installer, this should<br />
allow rkhunter to work on all UNIX/Linux systems, and avoid any further<br />
&#8220;-e&#8221;&#8216;s being displayed.<br />
- When converting the case of characters, unpredictable results could<br />
occur when other languages were specified (via LANG). We now use character<br />
classes rather than the &#8216;a-z&#8217; and &#8216;A-Z&#8217; ranges.<br />
- For the &#8216;ports&#8217; test ensure that only local ports are checked. Also if a<br />
port is whitelisted, the result will say so.<br />
- Using &#8216;&#8211;hash MD5 &#8211;propupd&#8217; on a prelinked system caused an error.<br />
- If a non-existent syslog config file was put into the RKH configuration<br />
file, then rkhunter incorrectly said that it was found.<br />
- If the use of prelinking changed, and the &#8216;hashes&#8217; test was disabled, then<br />
rkhunter correctly logged a warning (of an O/S change) but did not display<br />
it unless the &#8216;&#8211;rwo&#8217; option was used. It now displays the warning whether<br />
&#8216;&#8211;rwo&#8217; is used or not.<br />
- The &#8216;group_accounts&#8217; test now checks /etc/passwd, as well as the shadow<br />
file, for passwordless accounts.<br />
- If the passwd file did not exist, then a warning of this was logged three<br />
times. It is now logged once as a warning, and as an info message for the<br />
other times.<br />
- It was possible for the network ports test to incorrectly display a warning<br />
due to an uninitialised variable.<br />
- The SSH configuration file tests now allow for leading spaces/tabs.<br />
- When using the &#8216;&#8211;debug&#8217; option, and running the &#8216;suspscan&#8217; test, the debug<br />
file itself could be logged as suspicious. It is now skipped from the test.<br />
- Ensure the /proc/ksyms or /proc/kallsyms file is readable before using it.<br />
- If the mirrors.dat file has been locally modified to provide a mirror, then<br />
the installer will no longer overwrite the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/rkhunter-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lynis &#8211; security and system auditing tool</title>
		<link>http://www.vickysguide.com/lynis-security-and-system-auditing-tool/</link>
		<comments>http://www.vickysguide.com/lynis-security-and-system-auditing-tool/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 18:15:01 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[linux security]]></category>
		<category><![CDATA[lynis]]></category>
		<category><![CDATA[scanner]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/lynis-security-and-system-auditing-tool/</guid>
		<description><![CDATA[Michael Boelen, the author of RKHUNTER rootkit checker has made another nice auditing tool &#8211; Lynis. It works on many Linux/Debian/MacOS/BSD systems and provides you the admin important information about system configuration and security issues. Update: On 15th December 2009 there was version 1.2.9 released. I updated this how-toa bit late, but better than never [...]]]></description>
			<content:encoded><![CDATA[<p>Michael Boelen, the author of RKHUNTER rootkit checker has made another nice auditing tool &#8211; Lynis. It works on many Linux/Debian/MacOS/BSD systems and provides you the admin important information about system configuration and security issues.</p>
<p><span style="color: #ff0000;">Update: On 15th December 2009 there was version 1.2.9 released. I updated this how-toa bit late, but better than never <img src='http://www.vickysguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</span></p>
<p><span id="more-16"></span></p>
<p>The installation is very simple.</p>
<p>cd /root/<br />
wget http://www.rootkit.nl/files/lynis-1.2.9.tar.gz<a href="http://www.rootkit.nl/files/lynis-1.0.8.tar.gz"><br />
</a>tar xvfz lynis-1.2.9.tar.gz<br />
rm -f lynis-1.2.9.tar.gz<br />
cd lynis-1.2.9</p>
<p>now run &#8220;./lynis&#8221; to see all available options.</p>
<p>I prefer running it &#8220;./lynis -c -Q&#8221; so it does complete scan and does not wait after every page for my keypress. There is summary at the end of the scan which gives you info about warnings. I advise you to check all the things it reports. It is very nice tool and I will definitely monitor its future development.</p>
<p>Here is the changelog for version 1.2.9:</p>
<pre>New:
 - Support for Squid3
 - Added Squid unsafe ports check [SQD-3624]
 - Added Squid configuration file permission check [SQD-3613]
 - Added Squid test: reply_body_max_size option [SQD-3630]
 - Added /etc/init.d/rc and /etc/init.d/rcS to umask test [AUTH-9328]
 - Check PHP option allow_url_include [PHP-2378]

 Changes:
 - Extended possible Squid configuration file locations
 - Added additional sysctl keys to default profile
 - Fixed typo in squid.conf checks
 - Improved descriptions, logging and reporting for several tests
 - Corrected /etc/security/limits.conf path in test [KRNL-5820]
 - Updated man page, limited lines to 80 chars
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/lynis-security-and-system-auditing-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install GD without recompiling Apache</title>
		<link>http://www.vickysguide.com/install-gd-without-recompiling-apache/</link>
		<comments>http://www.vickysguide.com/install-gd-without-recompiling-apache/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 11:11:30 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[Cpanel/WHM]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[GD]]></category>
		<category><![CDATA[re-compile]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=81</guid>
		<description><![CDATA[If you need to enable GD to your php installation and do not want to recompile whole Apache then there is easy solution. You just execute command  /scripts/installgd  as root on your cPanel server and you are set.]]></description>
			<content:encoded><![CDATA[<p>If you need to enable GD to your php installation and do not want to recompile whole Apache then there is easy solution.</p>
<p>You just execute command  /scripts/installgd  as root on your cPanel server and you are set.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/install-gd-without-recompiling-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable PhpMyAdmin import zip files</title>
		<link>http://www.vickysguide.com/enable-phpmyadmin-import-zip-files/</link>
		<comments>http://www.vickysguide.com/enable-phpmyadmin-import-zip-files/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 01:05:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel/WHM]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[zip import]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=75</guid>
		<description><![CDATA[To enable phpmyadmin at cpanel server to import zipped mysql dumps you need to reconfigure internal cpanel php installation.. Edit /var/cpanel/easy/apache/profile/makecpphp.profile.yaml Change: Cpanel::Easy::PHP5::Zip: 0=0 To: Cpanel::Easy::PHP5::Zip: 1 Save the file Run `/scripts/makecpphp` before running the last command make sure the file /var/cpanel/easy/apache/profile/makecpphp.profile.yaml is chattr +i.]]></description>
			<content:encoded><![CDATA[<p>To enable phpmyadmin at cpanel server to import zipped mysql dumps you need to reconfigure internal cpanel php installation..</p>
<p>Edit /var/cpanel/easy/apache/profile/makecpphp.profile.yaml<br />
Change: Cpanel::Easy::PHP5::Zip: 0=0<br />
To: Cpanel::Easy::PHP5::Zip: 1<br />
Save the file<br />
Run `/scripts/makecpphp`</p>
<p>before running the last command make sure the file /var/cpanel/easy/apache/profile/makecpphp.profile.yaml is chattr +i.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/enable-phpmyadmin-import-zip-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My nginx installation procedure</title>
		<link>http://www.vickysguide.com/my-nginx-installation-procedure/</link>
		<comments>http://www.vickysguide.com/my-nginx-installation-procedure/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 16:47:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=72</guid>
		<description><![CDATA[I really started to like nginx web server, and here is my procedure step by step how to install this server on CentOS 5.4 yum install gcc pcre-devel openssl-devel wget http://nginx.org/download/nginx-0.7.65.tar.gz &#38;&#38; tar xvfz nginx-0.7.65.tar.gz ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module make make install ln -s /usr/local/nginx/conf /etc/nginx ln -s /usr/local/nginx/logs /var/log/nginx ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx Then grab [...]]]></description>
			<content:encoded><![CDATA[<p>I really started to like nginx web server, and here is my procedure step by step how to install this server on CentOS 5.4</p>
<p><code>yum install gcc pcre-devel openssl-devel<br />
wget http://nginx.org/download/nginx-0.7.65.tar.gz &amp;&amp; tar xvfz nginx-0.7.65.tar.gz<br />
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module<code><br />
make<br />
make install<br />
ln -s /usr/local/nginx/conf  /etc/nginx<br />
ln -s /usr/local/nginx/logs  /var/log/nginx<br />
ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx</code></code></p>
<p>Then grab this init script for red hat from http://wiki.nginx.org/RedHatNginxInitScript and put it in /etc/init.d/nginx file. Chmod 755 the file and you are ready.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/my-nginx-installation-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mytop error &#8220;long&#124;!&#8221;</title>
		<link>http://www.vickysguide.com/mytop-error-long/</link>
		<comments>http://www.vickysguide.com/mytop-error-long/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 23:34:31 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[mytop]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=69</guid>
		<description><![CDATA[If you run mytop on RHEL server (or CentOS 5.x) you may get error message saying Error in option spec: &#8220;long&#124;!&#8221; You should edit file /usr/bin/mytop and comment out this line &#8220;long&#124;!&#8221; =&#62; \$config{long_nums}, after that, run mytop and all should work fine. Enjoy!]]></description>
			<content:encoded><![CDATA[<p>If you run mytop on RHEL server (or CentOS 5.x) you may get error message saying</p>
<p>Error in option spec: &#8220;long|!&#8221;</p>
<p>You should edit file /usr/bin/mytop and comment out this line</p>
<p>&#8220;long|!&#8221; =&gt; \$config{long_nums},</p>
<p>after that, run mytop and all should work fine.</p>
<p>Enjoy! <img src='http://www.vickysguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/mytop-error-long/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audit still logging even when stoped</title>
		<link>http://www.vickysguide.com/audit-still-logging-even-when-stoped/</link>
		<comments>http://www.vickysguide.com/audit-still-logging-even-when-stoped/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 17:36:08 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[auditd]]></category>
		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=61</guid>
		<description><![CDATA[I had strange problem on one of my CentOS 5.4 servers. I stoped auditd service and disables SElinux, the server, however, was still logging all those annoying things like Nov 10 18:27:01 server kernel: type=1105 audit(1257874021.909:87975): user pid=27986 uid=0 auid=0 msg=&#8217;PAM: session open acct=&#8221;root&#8221; : exe=&#8221;/usr/sbin/crond&#8221; (hostname=?, addr=?, terminal=cron res=success)&#8217; Nov 10 18:27:02 server kernel: [...]]]></description>
			<content:encoded><![CDATA[<p>I had strange problem on one of my CentOS 5.4 servers. I stoped auditd service and disables SElinux, the server, however, was still logging all those annoying things like</p>
<p>Nov 10 18:27:01 server kernel: type=1105 audit(1257874021.909:87975): user pid=27986 uid=0 auid=0 msg=&#8217;PAM: session open acct=&#8221;root&#8221; : exe=&#8221;/usr/sbin/crond&#8221; (hostname=?, addr=?, terminal=cron res=success)&#8217;<br />
Nov 10 18:27:02 server kernel: type=1104 audit(1257874022.828:87976): user pid=27986 uid=0 auid=0 msg=&#8217;PAM: setcred acct=&#8221;root&#8221; : exe=&#8221;/usr/sbin/crond&#8221; (hostname=?, addr=?, terminal=cron res=success)&#8217;</p>
<p>into /var/log/messages log, filling it up with garbage.</p>
<p>After some time spent investigating I  fixed it. I edited /etc/audit/audit.rules  and replaced line</p>
<blockquote><p>-D</p></blockquote>
<p>with this line</p>
<blockquote><p>-e 0</p></blockquote>
<p>After that I started auditd service, stopped it and no more logs in /var/log/messages</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/audit-still-logging-even-when-stoped/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show line numbers in vi or vim</title>
		<link>http://www.vickysguide.com/show-line-numbers-in-vi-or-vim/</link>
		<comments>http://www.vickysguide.com/show-line-numbers-in-vi-or-vim/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 14:19:00 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[show line numbers]]></category>
		<category><![CDATA[vi/vim]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=58</guid>
		<description><![CDATA[Have you ever wondered how to show line numbers in vi or vim while editing file? I do that always when I patch some software or install MODs that come with &#8220;go to line xxx and rewrite this&#8230;&#8221;. And the solution is really simple. In vi/vim type :set number to show line numbers and :set [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wondered how to show line numbers in vi or vim while editing file? I do that always when I patch some software or install MODs that come with &#8220;go to line xxx and rewrite this&#8230;&#8221;. And the solution is really simple.</p>
<p>In vi/vim type <strong>:set number</strong> to show line numbers and <strong>:set nonumber</strong> to hide line numbers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/show-line-numbers-in-vi-or-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EnsimX maintenance mode</title>
		<link>http://www.vickysguide.com/ensimx-maintenance-mode/</link>
		<comments>http://www.vickysguide.com/ensimx-maintenance-mode/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 17:42:11 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[Ensim]]></category>
		<category><![CDATA[maintenance mode]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=55</guid>
		<description><![CDATA[After OS upgrades and updates it is needed to run EnsimX through maintenance mode. Here is info how to do it: /usr/local/sbin/set_maintenance /usr/local/sbin/set_pre_maintenance /usr/local/sbin/set_post_maintenance /etc/init.d/epld restart If you encounter any problems you can exit the maintenance mode by issuing this command: /usr/local/sbin/exit_post_maintenance]]></description>
			<content:encoded><![CDATA[<p>After OS upgrades and updates it is needed to run EnsimX through maintenance mode. Here is info how to do it:</p>
<p><strong>/usr/local/sbin/set_maintenance<br />
/usr/local/sbin/set_pre_maintenance<br />
/usr/local/sbin/set_post_maintenance<br />
/etc/init.d/epld restart</strong></p>
<p>If you encounter any problems you can exit the maintenance mode by issuing this command:</p>
<p><strong>/usr/local/sbin/exit_post_maintenance</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/ensimx-maintenance-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vhimport failing to restore site backup</title>
		<link>http://www.vickysguide.com/vhimport-failing-to-restore-site-backup/</link>
		<comments>http://www.vickysguide.com/vhimport-failing-to-restore-site-backup/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 11:22:23 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[Ensim]]></category>
		<category><![CDATA[vhimport]]></category>
		<category><![CDATA[X11 rename]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=53</guid>
		<description><![CDATA[When you experience error during EnsimX import script like this: Unknown Error: Traceback (most recent call last): File &#8220;vhbackuplib.py&#8221;, line 54, in call_backend_import File &#8220;virtualhosting/virthost.py&#8221;, line 4575, in vhimport File &#8220;virtualhosting/virthost.py&#8221;, line 4730, in __do_import File &#8220;virtualhosting/virthost.py&#8221;, line 5030, in __site_import File &#8220;virtualhosting/virthost.py&#8221;, line 3300, in handle_remaining_files File &#8220;virtualhosting/virthost.py&#8221;, line 3380, in link OSError: [Errno [...]]]></description>
			<content:encoded><![CDATA[<p>When you experience error during EnsimX import script like this:</p>
<blockquote><p>Unknown Error: Traceback (most recent call last):<br />
File &#8220;vhbackuplib.py&#8221;, line 54, in call_backend_import<br />
File &#8220;virtualhosting/virthost.py&#8221;, line 4575, in vhimport<br />
File &#8220;virtualhosting/virthost.py&#8221;, line 4730, in __do_import<br />
File &#8220;virtualhosting/virthost.py&#8221;, line 5030, in __site_import<br />
File &#8220;virtualhosting/virthost.py&#8221;, line 3300, in handle_remaining_files<br />
File &#8220;virtualhosting/virthost.py&#8221;, line 3380, in link<br />
OSError: [Errno 17] File exists</p></blockquote>
<p>the cause may be in X11 symlink on OS other than FC6. The cure is as follows:</p>
<blockquote><p>mv /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/X11{,XTEMP}<br />
vhimport site_backup.tar.gz<br />
mv /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/XTEMP{,X11}</p></blockquote>
<p>Basicaly what is does it renames /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/X11 and after the restore is successful it renames it back to original name.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/vhimport-failing-to-restore-site-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
