<?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>x83.net &#187; Centos</title>
	<atom:link href="http://www.x83.net/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nginx + php 5.2.17 + php-fpm</title>
		<link>http://www.x83.net/nginx-php-5-2-17-php-fpm/</link>
		<comments>http://www.x83.net/nginx-php-5-2-17-php-fpm/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 12:30:17 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[5.2.17]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-fpm]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=778</guid>
		<description><![CDATA[Download the needed packages and store them in /usr/src: http://us.php.net/distributions/php-5.2.17.tar.gz http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz http://nginx.org/download/nginx-1.1.0.tar.gz Then run : tar -xvzf php-5.2.17.tar.gz gzip -cd php-5.2.17-fpm-0.5.14.diff.gz &#124; sudo patch -d php-5.2.17 -p1 cd php-5.2.17 ./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --enable-pdo --with-curl --disable-debug --with-pic --disable-rpath --enable-inline-optimization --with-bz2 --enable-xml --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-pcre-regex --with-gd --without-pdo-sqlite [...]]]></description>
			<content:encoded><![CDATA[<p>Download the needed packages and store them in /usr/src:</p>
<p>http://us.php.net/distributions/php-5.2.17.tar.gz</p>
<p>http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz</p>
<p>http://nginx.org/download/nginx-1.1.0.tar.gz</p>
<p>Then run :</p>
<p><code>tar -xvzf php-5.2.17.tar.gz<br />
gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | sudo patch -d php-5.2.17 -p1<br />
cd php-5.2.17<br />
./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --enable-pdo --with-curl --disable-debug --with-pic --disable-rpath --enable-inline-optimization --with-bz2 --enable-xml --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-pcre-regex --with-gd --without-pdo-sqlite --with-pdo-mysql --without-sqlite --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-mysql --enable-bcmath --enable-calendar --enable-exif --enable-ftp  --with-gettext --with-imap --with-mysqli --with-openssl --with-kerberos --with-imap-ssl --enable-dbase --with-gmp --enable-shmop --enable-wddx</p>
<p>make all install</code></p>
<p>Note that you can add &#8211;<strong>prefix </strong> to install the binaries in a different location than the default one.</p>
<p>After compilation is done :</p>
<p><code>strip /usr/local/bin/php-cgi<br />
cp sapi/cgi/fpm/php-fpm /etc/init.d/<br />
chmod +x /etc/init.d/php-fpm</p>
<p>cp /usr/src/php-5.2.17/php.ini-recommended /usr/local/lib/php.ini<br />
mkdir /etc/php/<br />
ln -s /usr/local/lib/php.ini /etc/php/php.ini<br />
ln -s /usr/local/etc/php-fpm.conf /etc/php/php-fpm.conf<br />
</code></p>
<p>Make sure you edit <strong>/etc/php/php-fpm.conf</strong> and set the proper user/group (and permissions if its the case).</p>
<p>Then compile Nginx:</p>
<p><code>tar zxvf nginx-1.1.0.tar.gz<br />
./configure --sbin-path=/usr/local/sbin --with-http_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module<br />
make &#038;&#038; sudo make install<br />
</code></p>
<p>The same you can modify the <strong>&#8211;prefix</strong>  here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/nginx-php-5-2-17-php-fpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk 10 nginx reverse proxy configuration in front of Apache</title>
		<link>http://www.x83.net/plesk-10-nginx-reverse-proxy-configuration-in-front-of-apache/</link>
		<comments>http://www.x83.net/plesk-10-nginx-reverse-proxy-configuration-in-front-of-apache/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 12:40:14 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpdmng]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[plesk 10]]></category>
		<category><![CDATA[reverse proxy]]></category>
		<category><![CDATA[websrvmng]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=769</guid>
		<description><![CDATA[Plesk 10 nginx reverse proxy configuration On older Plesk version ( websrvmng &#8211;set-http-port &#8211;port=8080 Starting with Plesk 10 this is not so easy since you have to edit a php file called /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php. In my case instead of : domain-&#62;physicalHosting-&#62;ipAddress-&#62;address ?&#62;:server-&#62;webserver-&#62;httpsPort : $VAR-&#62;server-&#62;webserver-&#62;httpPort ?&#62;&#62; ServerName "domain-&#62;asciiName ?&#62;:server-&#62;webserver-&#62;httpsPort : $VAR-&#62;server-&#62;webserver-&#62;httpPort ?&#62;" I&#8217;ve set : &#160; &#60;VirtualHost [...]]]></description>
			<content:encoded><![CDATA[<p>Plesk 10 nginx reverse proxy configuration</p>
<p>On older Plesk version (</p>
<p><strong>websrvmng &#8211;set-http-port &#8211;port=8080</strong></p>
<p>Starting with Plesk 10 this is not so easy since you have to edit a php file called <em>/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php</em>. In my case instead of :</p>
<p><code>domain-&gt;physicalHosting-&gt;ipAddress-&gt;address ?&gt;:<!--?php echo $OPT['ssl'] ? $VAR--->server-&gt;webserver-&gt;httpsPort : $VAR-&gt;server-&gt;webserver-&gt;httpPort ?&gt;&gt;<br />
ServerName "<!--?php echo $VAR--->domain-&gt;asciiName ?&gt;:<!--?php echo $OPT['ssl'] ? $VAR--->server-&gt;webserver-&gt;httpsPort : $VAR-&gt;server-&gt;webserver-&gt;httpPort ?&gt;"</code></p>
<p>I&#8217;ve set :</p>
<p>&nbsp;</p>
<p>&lt;VirtualHost &lt;?php echo $OPT['ipAddress']-&gt;escapedAddress ?&gt;:&lt;?php echo $OPT['ssl'] ? 8043 : 8080 ?&gt;&gt;<br />
ServerName &#8220;&lt;?php echo $VAR-&gt;domain-&gt;asciiName ?&gt;:&lt;?php echo $OPT['ssl'] ? 8043 : 8080 ?&gt;&#8221;</p>
<p><span style="font-family: monospace;"><br />
</span></p>
<p>Where 8043 will be the new https port and 8080 will be the http port.</p>
<p>After this change I had to run :</p>
<p><strong>/usr/local/psa/admin/bin/httpdmng &#8211;reconfigure-all</strong></p>
<p>Note that this is only for Plesk 10.x. On 9.x we used to have</p>
<p><strong>/usr/local/psa/admin/sbin/websrvmng &#8211;reconfigure-all</strong></p>
<p>After this make sure that the Apache server has set in its configuration files (/etc/httpd/conf/httpd.conf) Listen 8080 instead of Listen 80. Same thing for the /etc/httpd/conf.d/ssl.conf file, Listen 8043 instead of Listen 443.</p>
<p>Then you need to install nginx (yum install nginx) and download this zip file that these guys provided <a title="zip" href="http://www.grafxsoftware.com/download/nginx/nginx_setup.zip">http://www.grafxsoftware.com/download/nginx/nginx_setup.zip</a>. Furthermore you can check their <a title="Howto" href="http://www.grafxsoftware.com/faq.php/HOW-TO-configure-PLESK-with-NGinx-proxy-reverse/1/1/">http://www.grafxsoftware.com/faq.php/HOW-TO-configure-PLESK-with-NGinx-proxy-reverse/1/1/</a>.</p>
<p>Once downloaded run:</p>
<p><strong>sh generate_nginx_conf.sh</strong></p>
<p>Verify with &#8220;nginx -t&#8221; that there isn&#8217;t any error and finally restart the involved services :</p>
<p><strong>service httpd restart<br />
service nginx restart</strong></p>
<p>Make sure that 8043 and 8080 accept connections. (Note that its not necessary to change the https port).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/plesk-10-nginx-reverse-proxy-configuration-in-front-of-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centos 6.0 XenServer templates</title>
		<link>http://www.x83.net/centos-6-0-xenserver-templates/</link>
		<comments>http://www.x83.net/centos-6-0-xenserver-templates/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 20:43:18 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[6]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[xenserver]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=759</guid>
		<description><![CDATA[To add templates for CentOS 6.0 you can use the RHEL 6.0 templates: For CentOS 32 bit run: xe vm-clone uuid=`xe template-list name-label=Red\ Hat\ Enterprise\ Linux\ 6\ \(32-bit\) &#8211;minimal` new-name-label=&#8221;CentOS 6.0 (32-bit)&#8221; For CentOS 64 bit run: xe vm-clone uuid=`xe template-list name-label=Red\ Hat\ Enterprise\ Linux\ 6\ \(64-bit\) &#8211;minimal` new-name-label=&#8221;CentOS 6.0 (64-bit)&#8221;]]></description>
			<content:encoded><![CDATA[<p>To add templates for CentOS 6.0 you can use the RHEL 6.0 templates:</p>
<p>For CentOS 32 bit run:</p>
<p><strong>xe vm-clone uuid=`xe template-list name-label=Red\ Hat\ Enterprise\ Linux\ 6\ \(32-bit\) &#8211;minimal` new-name-label=&#8221;CentOS 6.0 (32-bit)&#8221;</strong></p>
<p>For CentOS 64 bit run:</p>
<p><strong>xe vm-clone uuid=`xe template-list name-label=Red\ Hat\ Enterprise\ Linux\ 6\ \(64-bit\) &#8211;minimal` new-name-label=&#8221;CentOS 6.0 (64-bit)&#8221; </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/centos-6-0-xenserver-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centos 6 released</title>
		<link>http://www.x83.net/centos-6-released/</link>
		<comments>http://www.x83.net/centos-6-released/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 19:45:17 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[6]]></category>
		<category><![CDATA[released]]></category>
		<category><![CDATA[rhel]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=748</guid>
		<description><![CDATA[Finally after almost one hear since RHEL 6.0 was released now Centos 6.0 is available to download. Check Release notes : http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.0 and official announcement: http://lists.centos.org/pipermail/centos-announce/2011-July/017645.html]]></description>
			<content:encoded><![CDATA[<p>Finally after almost one hear since RHEL 6.0 was released now Centos 6.0 is available to download.</p>
<p>Check Release notes : <a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.0" title="Centos 6 Release Notes" target="_blank">http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.0</a></p>
<p>and official announcement:</p>
<p><a href="http://lists.centos.org/pipermail/centos-announce/2011-July/017645.html" title="Official Announcement" target="_blank">http://lists.centos.org/pipermail/centos-announce/2011-July/017645.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/centos-6-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing mod_suphp</title>
		<link>http://www.x83.net/installing-mod_suphp/</link>
		<comments>http://www.x83.net/installing-mod_suphp/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 22:32:21 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[mod_suphp]]></category>
		<category><![CDATA[suphp]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=715</guid>
		<description><![CDATA[Usually if you add a simple VirtualHost and set the DocumentRoot into on /home/ then its possible for some files not to be owned by that (e.g: uploaded images via web interface, php sessions..etc). A solution for this problem is to install mod_suphp which will make Apache to write in /home/ with permissions. To install [...]]]></description>
			<content:encoded><![CDATA[<p>Usually if you add a simple VirtualHost and set the <strong>DocumentRoot </strong>into on /home/<user> then its possible for some files not to be owned by that <user> (e.g: uploaded images via web interface, php sessions..etc).</p>
<p>A solution for this problem is to install mod_suphp which will make Apache to write in /home/<user> with <user> permissions. To install mod_suphp :</p>
<p><code> Download http://www.suphp.org/download/suphp-0.7.1.tar.gz<br />
tar zxvf suphp-0.7.1.tar.gz<br />
cd suphp-0.7.1<br />
yum install httpd-devel<br />
./configure --with-apxs=/usr/sbin/apxs --with-apache-user=httpd --with-logfile=/var/log/httpd/suphp.log --with-setid-mode=paranoid --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-php=/usr/bin/php-cgi --enable-SUPHP_USE_USERGROUP=yes<br />
make<br />
make install<br />
cd /etc/httpd/conf.d/<br />
mv php.conf php.conf.bk<br />
</code></p>
<p>Then create <strong>suphp.conf </strong>and put in it:<br />
<code><br />
LoadModule suphp_module modules/mod_suphp.so<br />
suPHP_Engine on<br />
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml<br />
<Directory /><br />
    suPHP_AddHandler application/x-httpd-php5<br />
</Directory></code></p>
<p>Then create <strong>/etc/suphp.conf</strong> and put in it:</p>
<p><code>; This file is parse anew by suPHP for each request<br />
; rather than being loaded once.</p>
<p>[global]<br />
;Path to logfile<br />
logfile=/var/log/httpd/suphp.log</p>
<p>;Loglevel<br />
loglevel=info</p>
<p>;User Apache is running as<br />
; MANDATORY<br />
webserver_user=apache</p>
<p>; Path all scripts have to be in<br />
; This works as a prefix when a trailing slash is not specified.<br />
; e.g. /home will match /home /home2 /home3 etc While /home/ will only match /home/<br />
;<br />
; Changing this to a more specific path will improve security<br />
docroot=/</p>
<p>;Path to chroot() to before executing script<br />
;chroot=/home</p>
<p>; Security options<br />
allow_file_group_writeable=true<br />
allow_file_others_writeable=true<br />
allow_directory_group_writeable=true<br />
allow_directory_others_writeable=true</p>
<p>; Check whether script is within DOCUMENT_ROOT<br />
; Does NOT perform this check on included scripts.<br />
; i.e. include_once("/test3.php"); works even though it's in the root directory<br />
;<br />
; Changing this to true will improve security but make all php userdir requests fail<br />
check_vhost_docroot=false</p>
<p>; Allow the user and group specified by a ~userdir request to override the<br />
; suPHP_UserGroup directive inside the source virtualhost<br />
;<br />
; Changing this to false will improve security but make some types of php userdir<br />
; requests fail<br />
;userdir_overrides_usergroup=true</p>
<p>; suPHP Paranoid mode checks that the target script UID and GID match<br />
; the UID and GID of the user running the script.  To disable these<br />
; checks change the following values to false.  Without these checks, mod_suphp<br />
; is effectively running in "Force" mode.<br />
;paranoid_uid_check=true<br />
;paranoid_gid_check=true</p>
<p>;Send minor error messages to browser<br />
errors_to_browser=false</p>
<p>;PATH environment variable<br />
env_path="/bin:/usr/bin"</p>
<p>;Umask to set, specify in octal notation<br />
umask=0022</p>
<p>; Minimum UID<br />
;min_uid=100</p>
<p>; Minimum GID<br />
;min_gid=100</p>
<p>; Normally suPHP only displays the PHP binary in process lists (ps aux).<br />
; Setting this option to 'true' will cause suPHP to display both the<br />
; PHP binary and the script filename.<br />
;full_php_process_display=true</p>
<p>[handlers]<br />
;Handler for php-scripts<br />
application/x-httpd-php="php:/usr/bin/php-cgi"<br />
application/x-httpd-php4="php:/usr/php4/bin/php-cgi"<br />
application/x-httpd-php5="php:/usr/bin/php-cgi"</p>
<p>;Handler for CGI-scripts<br />
;x-suphp-cgi="execute:!self"</p>
<p>[phprc_paths]<br />
;Uncommenting these will force all requests to that handler to use the php.ini<br />
;in the specified directory regardless of suPHP_ConfigPath settings.<br />
;application/x-httpd-php=/usr/local/lib/<br />
;application/x-httpd-php4=/usr/local/php4/lib/<br />
;application/x-httpd-php5=/usr/local/lib/</code></p>
<p>After this make sure that the VirtualHost contains :</p>
<p><code><br />
<IfModule mod_suphp.c><br />
                 suPHP_UserGroup user user<br />
    </IfModule></p>
<p>    <IfModule !mod_disable_suexec.c><br />
                SuexecUserGroup user user<br />
</IfModule></code></p>
<p>Also /etc/httpd/conf/httpd.conf should contain:</p>
<p><code>DirectoryIndex index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html<br />
</code></p>
<p>Finally do a <strong>service httpd restart</strong></p>
<p>Check /var/log/httpd/suphp.log and error_log for possible errors. In my case I noticed this:</p>
<blockquote><p>&#8220;[Fri Apr 22 14:36:55 2011] [warn] Mismatch between target UID (501) and UID (48) of file &#8220;/home/arpart/public_html/index.php&#8221;</p></blockquote>
<p>Which means that some files were not owned by <user>. Use <strong>chown -R user.user /home/user</strong> to fix the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/installing-mod_suphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yum and RPM Tricks</title>
		<link>http://www.x83.net/yum-and-rpm-tricks/</link>
		<comments>http://www.x83.net/yum-and-rpm-tricks/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 20:06:48 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpm2cpio]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=701</guid>
		<description><![CDATA[This applies to Centos 5.6 but most likely it works on any rpm based distro. 1. It happened many times to mess the permissions of a file and services not to work properly. In order to get fixed I run : rpm -qf /path/to/file rpm -ql Lists all files from a package. This should show [...]]]></description>
			<content:encoded><![CDATA[<p>This applies to Centos 5.6 but most likely it works on any rpm based distro.</p>
<p>1. It happened many times to mess the permissions of a file and services not to work properly. In order to get fixed I run :</p>
<p><code>rpm -qf /path/to/file</code></p>
<p><code>rpm -ql
<package)name></code>  Lists all files from a package.</p>
<p>This should show the package that contains the modified file. Then I run :</p>
<p><code>rpm --setperms
<packagename></code></p>
<p>Also this command should show a list of modified files within a package:</p>
<p><code>rpm -V
<packagename></code></p>
<p>2. To view the Changelog:</p>
<p><code>rpm -q --changelog
<packagename> | less</code></p>
<p>3. View package based on repo:</p>
<p><code>rpm -qa release="*rf*"</code></p>
<p>4. Extract just one File:</p>
<p><code>rpm2cpio logrotate-1.0-1.i386.rpm |cpio -ivd etc/logrotate.conf</code></p>
<p>5. Query Package Install Order and Dates</p>
<p><code>rpm -qa --last >~/RPMS_by_Install_Date</code></p>
<p>6. Query Available Packages from a Repo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/yum-and-rpm-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting a PPTP VPN in CentOS 5.6</title>
		<link>http://www.x83.net/setting-a-pptp-centos5-6/</link>
		<comments>http://www.x83.net/setting-a-pptp-centos5-6/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 18:39:35 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[poptop]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=699</guid>
		<description><![CDATA[Scenario: &#160; Setting a PPTP VPN in Centos. I&#8217;m using the following commands in order to set the VPN: &#160; &#160; yum remove -y pptpd ppp iptables --flush POSTROUTING --table nat iptables --flush FORWARD rm -rf /etc/pptpd.conf rm -rf /etc/ppp rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm yum --enablerepo=poptop-stable install pptpd mknod /dev/ppp c 108 0 echo 1 > [...]]]></description>
			<content:encoded><![CDATA[<p>Scenario:</p>
<p>&nbsp;</p>
<p>Setting a PPTP VPN in Centos. I&#8217;m using the following commands in order to set the VPN:</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><code>yum remove -y pptpd ppp<br />
iptables --flush POSTROUTING --table nat<br />
iptables --flush FORWARD<br />
rm -rf /etc/pptpd.conf<br />
rm -rf /etc/ppp</p>
<p>rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm<br />
yum --enablerepo=poptop-stable install pptpd</p>
<p>mknod /dev/ppp c 108 0<br />
echo 1 > /proc/sys/net/ipv4/ip_forward<br />
echo "mknod /dev/ppp c 108 0" >> /etc/rc.local<br />
echo "echo 1 > /proc/sys/net/ipv4/ip_forward" >> /etc/rc.local<br />
echo "localip 172.16.36.1" >> /etc/pptpd.conf<br />
echo "remoteip 172.16.36.2-254" >> /etc/pptpd.conf<br />
echo "ms-dns 8.8.8.8" >> /etc/ppp/options.pptpd<br />
echo "ms-dns 8.8.4.4" >> /etc/ppp/options.pptpd</p>
<p>pass=`openssl rand 6 -base64`<br />
if [ "$1" != "" ]<br />
then pass=$1<br />
fi<br />
read -p "User: " user<br />
echo "${user} pptpd ${pass} *" >> /etc/ppp/chap-secrets</p>
<p>iptables -t nat -A POSTROUTING -s 172.16.36.0/24 -j SNAT --to-source `ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk 'NR==1 { print $1}'`<br />
iptables -A FORWARD -p tcp --syn -s 172.16.36.0/24 -j TCPMSS --set-mss 1356<br />
service iptables save</p>
<p>chkconfig iptables on<br />
chkconfig pptpd on<br />
service iptables start<br />
service pptpd start</p>
<p>echo "VPN username is ${user}, VPN password is ${pass}"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/setting-a-pptp-centos5-6/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Centos 5.6 templates for XenServer 5.5/5.6</title>
		<link>http://www.x83.net/centos-5-6-templates-for-xenserver-5-55-6/</link>
		<comments>http://www.x83.net/centos-5-6-templates-for-xenserver-5-55-6/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 07:47:45 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[xenserver 5.6]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=686</guid>
		<description><![CDATA[As you probably know already CentOS 5.6 is out (http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6 ) and since Xenserver 5.5/5.6 is missing this templates I had to add them manually.  I&#8217;m using this script that clones the CentOS 5.3 template. &#160; #!/bin/bash CENTOS=$(xe template-list name-label=CentOS\ 5.3 --minimal) if [[ -z $CENTOS ]] ; then echo "Cant find CentOS 5.3 32bit [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably know already CentOS 5.6 is out (<a title="CentOS 5.6 Release notes" href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6" target="_blank">http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6</a> ) and since Xenserver 5.5/5.6 is missing this templates I had to add them manually.  I&#8217;m using this script that clones the CentOS 5.3 template.</p>
<p>&nbsp;</p>
<p><code><br />
#!/bin/bash</code></p>
<p><code> </code></p>
<p><code>CENTOS=$(xe template-list name-label=CentOS\ 5.3 --minimal)<br />
if [[ -z $CENTOS ]] ; then<br />
echo "Cant find CentOS 5.3 32bit template, are you on XenServer 5.5 or higher?"<br />
exit 1<br />
fi</code></p>
<p><code>distro="CentOS 5.6"<br />
arches=("32-bit" "64-bit")</p>
<p>for arch in ${arches[@]} ; do<br />
echo "Attempting $distro ($arch)"<br />
if [[ -n $(xe template-list name-label="$distro ($arch)" params=uuid --minimal) ]] ; then<br />
echo "$distro ($arch)" already exists, Skipping<br />
else</p>
<p></code></p>
<p>&nbsp;</p>
<p><code>NEWUUID=$(xe vm-clone uuid=$CENTOS new-name-label="$distro ($arch)")<br />
xe template-param-set uuid=$NEWUUID other-config:install-methods=http,ftp,nfs \<br />
other-config:default_template=true<br />
echo "Success"<br />
fi<br />
done<br />
echo "Done"<br />
</code></p>
<p>&nbsp;</p>
<div id="_mcePaste" class="mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6</div>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/centos-5-6-templates-for-xenserver-5-55-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install FFmpeg and FFmpeg-php on Centos 5 and Plesk</title>
		<link>http://www.x83.net/install-ffmpeg-and-ffmpeg-php-on-centos-5-and-plesk/</link>
		<comments>http://www.x83.net/install-ffmpeg-and-ffmpeg-php-on-centos-5-and-plesk/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 18:49:58 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[ffmpeg-php]]></category>
		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=445</guid>
		<description><![CDATA[Run : rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2 cd /usr/src Download http://garr.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2 tar jxvf ffmpeg-php-0.6.0.tbz2 cd ffmpeg-php-0.6.0 phpize ./configure make make install Edit /etc/php.ini and add : extension=ffmpeg.so and then: service httpd restart]]></description>
			<content:encoded><![CDATA[<p>Run :</p>
<blockquote><p>rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2<br />
cd /usr/src<br />
Download http://garr.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2<br />
tar jxvf ffmpeg-php-0.6.0.tbz2<br />
cd ffmpeg-php-0.6.0<br />
phpize<br />
./configure<br />
make<br />
make install</p>
<p>Edit /etc/php.ini and add : </p>
<p>extension=ffmpeg.so</p>
<p>and then:</p>
<p>service httpd restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/install-ffmpeg-and-ffmpeg-php-on-centos-5-and-plesk/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Error compiling PHP on CentOS 64 bit</title>
		<link>http://www.x83.net/error-compiling-php-on-centos-64-bit/</link>
		<comments>http://www.x83.net/error-compiling-php-on-centos-64-bit/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 18:33:42 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=411</guid>
		<description><![CDATA[In order to compile PHP on 64 bit you need to use the option --with-libdir=lib64 otherwise you will stay forever with the following error checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error [...]]]></description>
			<content:encoded><![CDATA[<p>In order to compile PHP on 64 bit you need to use the option <code>--with-libdir=lib64</code> otherwise you will stay forever with the following error</p>
<blockquote><p><code>checking for MySQL support... yes<br />
checking for specified location of the MySQL UNIX socket... no<br />
checking for MySQL UNIX socket location... no<br />
checking for mysql_close in -lmysqlclient... no<br />
checking for mysql_error in -lmysqlclient... no<br />
configure: error: mysql configure failed. Please check config.log for  more information.</code></p></blockquote>
<p>Other possible reasons are :<br />
1. missing the libtool-ltdl-devel package<br />
2. missing the ncurses-devel<br />
3. missing mysql-devel package</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/error-compiling-php-on-centos-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

