<?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>Unix Surgeon &#187; lamp server</title>
	<atom:link href="http://www.unixsurgeon.com/kb/category/lamp-server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install NginX on cPanel WHM/Cpanel Server</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html#comments</comments>
		<pubDate>Mon, 06 Feb 2012 10:42:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginxadmin]]></category>
		<category><![CDATA[nginxcp]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=351</guid>
		<description><![CDATA[Install NginxAdmin to WHM/Cpanel for Optimize Performance.
Diffrence between nginx &#38; apache :-
Apache is a process-based server, while nginx is an event-based web server.Nginx known as &#8220;engineX&#8221; probably the best-known asynchronous server and Apache is undoubtedly the best known process-based server.
The main advantage of the asynchronous approach is scalability. In a process-based server, each simultaneous connection [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install NginxAdmin to WHM/Cpanel for Optimize Performance.</strong></p>
<p><strong>Diffrence between nginx &amp; apache :-</strong></p>
<p>Apache is a process-based server, while nginx is an event-based web server.Nginx known as &#8220;engineX&#8221; probably the best-known asynchronous server and Apache is undoubtedly the best known process-based server.</p>
<p>The main advantage of the asynchronous approach is scalability. In a process-based server, each simultaneous connection requires a thread which incurs significant overhead. An asynchronous server, on the other hand, is event-driven and handles requests in a single (or at least, very few) threads.</p>
<p>While a process-based server can often perform on par with an asynchronous server under light loads, under heavier loads they usually consume far too much RAM which significantly degrades performance. Also, they degrade much faster on less powerful hardware or in a resource-restricted environment such as a VPS.</p>
<p>Pulling numbers from thin air for illustrative purposes, serving 10,000 simultaneous connections would probably only cause Nginx to use a few megabytes of RAM whereas Apache would probably consume hundreds of megabytes (if it could do it at all).</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Nginx+cPanel+Apache= Performance boosted secured hosting server</strong></p>
<p><strong>How NginxAdmin will help your cPanel server to increase the performance ?</strong></p>
<p>NginxAdmin is WHM interface of Nginx installer for cPanel server. This plugin will increase your server performance and decrease the server Apache Load. So you can host more websites in a cPanel server than usual.Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.Unlike traditional servers, Nginx doesn&#8217;t rely on threads to handle requests. Instead it uses a much more scalable event-driven architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.</p>
<p>Even if you don&#8217;t expect to handle thousands of simultaneous requests, you can still benefit from Nginx&#8217;s high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>To install copy and execute following lines :-</strong></p>
<p># cd /usr/local/src<br />
# wget http://nginxcp.com/nginxadmin2.8-stable.tar<br />
# tar -xvf nginxadmin2.8-stable.tar<br />
# cd publicnginx<br />
# ./nginxinstaller install<br />
# /etc/init.d/httpd restart</p>
<p><strong>Troubleshooting Installation:-</strong></p>
<p>If you receive any pyaml related error or the following error</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Welcome to the Nginx Admin installer&#8230;&#8230;Starting Install<br />
Generating vhosts&#8230;<br />
Traceback (most recent call last):<br />
File &#8220;/scripts/createvhosts.py&#8221;, line 2, in ?<br />
import yaml<br />
File &#8220;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&#8221;, line 26<br />
SyntaxError: &#8216;yield&#8217; not allowed in a &#8216;try&#8217; block with a &#8216;finally&#8217; clause<br />
Installing WHM interface&#8230;<br />
deploying booster rockets<br />
Traceback (most recent call last):<br />
File &#8220;/usr/local/src/publicnginx/nginxinstaller2&#8243;, line 9, in ?<br />
import createvhosts<br />
File &#8220;/usr/local/src/publicnginx/createvhosts.py&#8221;, line 2, in ?<br />
import yaml<br />
File &#8220;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&#8221;, line 26<br />
SyntaxError: &#8216;yield&#8217; not allowed in a &#8216;try&#8217; block with a &#8216;finally&#8217; clause<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Then run execute following commands &#8230;.<br />
<strong>For i686 architecture :-</strong></p>
<p># easy_install Pyyaml==3.09<br />
# rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg</p>
<p><strong>For x86_64 architecture :-</strong></p>
<p># easy_install Pyyaml==3.09<br />
# rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Then Again run the following commands :-<br />
</strong><br />
# ./nginxinstaller install<br />
# /etc/init.d/httpd restart</p>
<p>Now Nginx run on the port no:80 and apache run on the port no.8081.You can manage the nginx through WHM &gt;&gt; Main &gt;&gt; Nginx Admin</p>
<p><img class="alignnone" title="nginxadmin" src="http://unixsurgeon.com/images/nginx.png" alt="" width="656" height="341" /></p>
<p><strong>To uninstall nginx use following :-</strong></p>
<p>#  cd /usr/local/src<br />
#  wget http://nginxcp.com/nginxadmin2.8-stable.tar<br />
#  tar xf nginxadmin2.8-stable.tar<br />
#  cd publicnginx<br />
#  ./nginxinstaller uninstall</p>
<p><strong>Enjoy Linux&#8230;!!!!</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto install Nginx on Centos.</title>
		<link>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html</link>
		<comments>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 04:41:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=337</guid>
		<description><![CDATA[Today we are going to install Nginx on Centos. Nginx (pronounced “Engine X”) is a lightweight web server that offers speed and flexibility without all of the extra features that larger web servers like Apache offer. Although it is a free and open source application, CentOS does not offer the latest version in its default [...]]]></description>
			<content:encoded><![CDATA[<p>Today we are going to install Nginx on Centos. Nginx (pronounced “Engine X”) is a lightweight web server that offers speed and flexibility without all of the extra features that larger web servers like Apache offer. Although it is a free and open source application, CentOS does not offer the latest version in its default YUM repository. To install it, you need to add the EPEL (Extra Packages for Enterprise Linux) repository, which is part of the Fedora Project.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>First of all installing the EPEL repository:-</strong></p>
<p>[p-root@unixsurgeon ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm</p>
<p>Retrieving http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm<br />
warning: /var/tmp/rpm-xfer.toDVXj: Header V3 DSA signature: NOKEY, key ID 217521f6<br />
Preparing…                ########################################### [100%]<br />
1:epel-release              ########################################### [100%]</p>
<p><strong>Install nginx:-</strong></p>
<p>[p-root@unixsurgeon ~]# yum install nginx</p>
<p>It will install nginx and ask gpg-key for EPEL, accept with yes option.</p>
<p><strong>Now start your nginx web server.</strong></p>
<p>[p-root@unixsurgeon ~]# service nginx start</p>
<p>Starting nginx:                                            [  OK  ]</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The default document root of nginx server :- /usr/share/nginx/html<br />
And the config file path is :-  /etc/nginx/nginx.conf<br />
Now open your browser and type 127.0.0.1 , it will open your default nginx page like below:-</p>
<p>http://127.0.0.1</p>
<p>The Default Document root is /usr/share/nginx/html&#8230;.you should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /et/nginx/nginx.conf.</p>
<p><img class="aligncenter" title="nginx" src="http://unixsurgeon.com/images/nginxcentos.png" alt="" width="681" height="144" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot start session without errors &#124; Phpmyadmin</title>
		<link>http://www.unixsurgeon.com/kb/cannot-start-session-without-errors-phpmyadmin.html</link>
		<comments>http://www.unixsurgeon.com/kb/cannot-start-session-without-errors-phpmyadmin.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 07:15:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=335</guid>
		<description><![CDATA[Today i m encountered an error&#8230; phpMyAdmin is inaccessible and throws the error following message &#8220;Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly &#8220;. This can be due to server-sided permissions of the temporary directory where session files are stored.



Solution :-
The [...]]]></description>
			<content:encoded><![CDATA[<p>Today i m encountered an error&#8230; phpMyAdmin is inaccessible and throws the error following message<strong> &#8220;Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly &#8220;. </strong>This can be due to server-sided permissions of the temporary directory where session files are stored.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Solution :-</strong></p>
<p>The issue with directory permissions or directory ownership of the directory where PHP keeps its session files.</p>
<p>Locate the directory where sessions are stored in the php.ini file. It will look something like this, although the exact path will vary depending on the distro and any customizations you may have made yourself:</p>
<p><strong>session.save_path = &#8220;/var/lib/php/session&#8221;</strong></p>
<p>Now check the permissions of that directory and make sure that the web server has permissions to access it.</p>
<p>You may need to either change ownership of the directory, e.g.:</p>
<p><strong># chown user:group /var/lib/php/session</strong></p>
<p>and substitute &#8220;user&#8221; for the actual username and &#8220;group&#8221; for the actual group, and /var/lib/php/session for the actual session save path.</p>
<p>Alternatively, just change the permissions of the directory so it&#8217;s world readable and writable:</p>
<p><strong># chmod 0777 /var/lib/php/session</strong><br />
<strong>Enjoy Linux&#8230;!!!!<br />
</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/cannot-start-session-without-errors-phpmyadmin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add swap space in linux</title>
		<link>http://www.unixsurgeon.com/kb/how-to-add-swap-space-in-linux.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-add-swap-space-in-linux.html#comments</comments>
		<pubDate>Tue, 05 Apr 2011 13:46:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[swap file]]></category>
		<category><![CDATA[swap memory]]></category>
		<category><![CDATA[swap partion;swap space]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=271</guid>
		<description><![CDATA[Sometimes we need additional swap space or nessasary to add more swap space  to improve system/server performance. How to add a swap file to Linux system after installation?
In Linux….we use a whole partition of a physical hard disk for swapping. However, with the 2.6 Linux kernel, swap files are just as fast as swap partitions, [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we need additional swap space or nessasary to add more swap space  to improve system/server performance. How to add a swap file to Linux system after installation?</p>
<p>In Linux….we use a whole partition of a physical hard disk for swapping. However, with the 2.6 Linux kernel, swap files are just as fast as swap partitions, although Red Hat recommends using a swap partition. Just Assume that you may upgrade the amount of RAM in your system from 1024 MB to 2048 MB, but there is only 2048 MB of swap space. It might be advantageous to increase the amount of swap space to approx 2 times of your physical RAM it means 4096 MB if you perform memory-intense operations or run applications that require a large amount of memory. The administrative flexibility of swap files outweighs that of partitions; since modern high capacity hard drives can remap physical sectors, no partition is guaranteed to be contiguous. You can add swap file as a dedicated partition or use following instructions to create a swap file.</p>
<p>You have three options: create a new swap partition, create a new swap file, or extend swap on an existing LVM2 logical volume. It is recommended that you extend an existing logical volume.</p>
<p><strong>1. Extending Swap on an LVM2 Logical Volume :-</strong></p>
<p>To extend an LVM2 swap logical volume login through root user (assuming /dev/VolGroup00/LogVol01 is the volume you want to extend):</p>
<p>1. Disable swapping for the associated logical volume:</p>
<p># swapoff -v /dev/VolGroup00/LogVol01</p>
<p>2.  Resize the LVM2 logical volume by 2o48 MB:</p>
<p># lvm lvresize /dev/VolGroup00/LogVol01 -L +2048M</p>
<p>3.  Format the new swap space:</p>
<p># mkswap /dev/VolGroup00/LogVol01</p>
<p>4. Enable the extended logical volume:</p>
<p># swapon -va</p>
<p>5. Test that the logical volume has been extended      properly:</p>
<p># cat /proc/swaps # free</p>
<p><strong>2. Creating an LVM2 Logical Volume for Swap :-</strong></p>
<p>To add a swap volume group login through root user (assuming /dev/VolGroup00/LogVol02 is the swap volume you want to add):</p>
<p>1. Create the LVM2 logical volume of size 2048 MB:</p>
<p># lvm lvcreate VolGroup00 -n LogVol02 -L 2048M</p>
<p>2. Format the new swap space:</p>
<p># mkswap /dev/VolGroup00/LogVol02</p>
<p>3. Add the following entry to the /etc/fstab file:</p>
<p>/dev/VolGroup00/LogVol02   swap     swap    defaults     0 0</p>
<p>4. Enable the extended logical volume:</p>
<p># swapon -va</p>
<p>5. Test that the logical volume has been extended      properly:</p>
<p># cat /proc/swaps # free</p>
<p><strong>3. Creating a Swap File :-</strong></p>
<p>To add a swap file:</p>
<p>1. Determine the size of the new swap file in megabytes      and multiply by 1024 to determine the number of blocks. For example, the      block size of a 512 MB swap file is 524288 (1024 * 512MB = 524288 block      size)</p>
<p>2. Through shell prompt as root, type the following      command with count being equal to the desired block size:-</p>
<p># dd if=/dev/zero of=/swapfile bs=1024 count=524288</p>
<p>3. Setup the  linux swap      Area/file with the command:-</p>
<p># mkswap /swapfile</p>
<p>4. To enable the swap file immediately but not      automatically at boot time: -</p>
<p># swapon /swapfile</p>
<p>5. To enable it at boot time, edit /etc/fstab to include the following entry: -</p>
<p>/swapfile          swap            swap    defaults        0 0</p>
<p>The next time the system boots, it enables the new swap file.</p>
<p>6. After adding the new swap file and enabling it, verify      it is enabled by viewing the output of the command :-</p>
<p>#  cat /proc/swaps</p>
<p>Or</p>
<p># free –m</p>
<p># top</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-add-swap-space-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to upgrade php 5.1 to 5.2</title>
		<link>http://www.unixsurgeon.com/kb/how-to-upgrade-php-5-1-to-5-2.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-upgrade-php-5-1-to-5-2.html#comments</comments>
		<pubDate>Tue, 29 Mar 2011 14:31:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php upgrade]]></category>
		<category><![CDATA[php upgrade through yum]]></category>
		<category><![CDATA[php upgrade via yum]]></category>
		<category><![CDATA[upgrade php 5.1 to 5.2]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=266</guid>
		<description><![CDATA[CentOS &#8211; Upgrade PHP 5.1 To 5.2
Today I was encountered with one problem,I have successfully install LAMP server on my CentOS 5 box,but when I installed drupal 7.0 on it,it throws an error like the minimum requirement to install the drupal 7.0 is php should be at least 5.2.4 .
These instructions were created using CentOS [...]]]></description>
			<content:encoded><![CDATA[<p><strong>CentOS &#8211; Upgrade PHP 5.1 To 5.2</strong></p>
<p>Today I was encountered with one problem,I have successfully install LAMP server on my CentOS 5 box,but when I installed drupal 7.0 on it,it throws an error like the minimum requirement to install the drupal 7.0 is php should be at least 5.2.4 .<br />
These instructions were created using CentOS 5.3 32-bit server :-<br />
<strong>First check which version of php you have installed:-</strong></p>
<p># rpm -qa |grep php</p>
<p>php-mcrypt-5.1.6-15.el5.i386<br />
php-common-5.1.6-15.el5.i386<br />
php-cli-5.1.6-15.el5.i386<br />
php-5.1.6-15.el5.i386<br />
php-pdo-5.1.6-15.el5.i386<br />
php-bcmath-5.1.6-15.el5.i386<br />
php-ldap-5.1.6-15.el5.i386<br />
php-devel-5.1.6-15.el5.i386<br />
php-gd-5.1.6-15.el5.i386<br />
php-xml-5.1.6-15.el5.i386<br />
php-mbstring-5.1.6-15.el5.i386<br />
php-mysql-5.1.6-15.el5.i386<br />
php-dba-5.1.6-15.el5.i386</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Add the new repositories:-</strong></p>
<p>First thing we need to do is add the new repositories to yum. When we add the this repository to configure it so it only pulls PHP packages. To start we&#8217;ll need create a new yum repository configuration file :<br />
# vi /etc/yum.repos.d/CentOS-Testing.repo<br />
<strong>Copy/paste the following into this file:</strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>[c5-testing]<br />
name=CentOS-5 Testing<br />
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/<br />
enabled=1<br />
gpgcheck=1<br />
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing<br />
includepkgs=php*</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Make sure that there is no spaces at the start of each line, then save and close the file.<br />
<strong>Update PHP packages :-</strong><br />
Now you can use yum to update the PHP packages on your system:<br />
# yum update<br />
You should be shown a list of new packages that are going to be updated. Compare it to the list of your previously installed PHP packages . Note any packages that are not in the list. You&#8217;ll need to remove these packages or find updates for them because they won&#8217;t work after you update to PHP 5.2.x. If that is acceptable type &#8220;y&#8221; to continue and let yum update the packages.<br />
<strong>Once yum has completed restart Apache:</strong><br />
# service httpd restart<br />
To verify the update is working create a simple <strong>phpinfo.php</strong> in your documentroot or www directory with the following source code:</p>
<p>and open it in a web browser. The new PHP version should be reflected at the top of the page.<br />
<strong>Result:-</strong><br />
You should now have PHP 5.2.10 running on CentOS 5.3 32-bit.<br />
# rpm -qa |grep php</p>
<p>php-mcrypt-5.2.9-2.el5.centos.3<br />
php-gd-5.2.10-1.el5.centos<br />
php-devel-5.2.10-1.el5.centos<br />
php-mysql-5.2.10-1.el5.centos<br />
php-pdo-5.2.10-1.el5.centos<br />
php-5.2.10-1.el5.centos<br />
php-xml-5.2.10-1.el5.centos<br />
php-ldap-5.2.10-1.el5.centos<br />
php-common-5.2.10-1.el5.centos<br />
php-cli-5.2.10-1.el5.centos<br />
php-mbstring-5.2.10-1.el5.centos</p>
<p># php -v</p>
<p>PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies</p>
<p>Enjoy Linux…!!!</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-upgrade-php-5-1-to-5-2.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to access PostgreSQL database server remotely?</title>
		<link>http://www.unixsurgeon.com/kb/how-to-access-postgresql-database-server-remotely.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-access-postgresql-database-server-remotely.html#comments</comments>
		<pubDate>Mon, 28 Feb 2011 23:00:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[navicat]]></category>
		<category><![CDATA[navicat sql client]]></category>
		<category><![CDATA[postgre]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[PostgreSQL database]]></category>
		<category><![CDATA[PostgreSQL database server remotely]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=231</guid>
		<description><![CDATA[How to remote access PostgreSQL database server?
PostgreSQL, often simply Postgres, is an object-relational database management system  (ORDBMS).It is released under an MIT-style license and is thus free and open source software. As with many other open-source programs, PostgreSQL is not controlled by any single company — a global community of developers and companies develops the system.
By [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to remote access PostgreSQL database server?</strong></p>
<p><strong>PostgreSQL</strong>, often simply <strong>Postgres</strong>, is an object-relational database management system  (ORDBMS).It is released under an MIT-style license and is thus free and open source software. As with many other open-source programs, PostgreSQL is not controlled by any single company — a global community of developers and companies develops the system.</p>
<p>By default, PostgreSQL database server remote access disabled for security reasons. However, some time you need to provide the remote access to database server from home computer or from web server.</p>
<p><strong>Step # 1: Login to server through ssh :-</strong></p>
<p>Login over ssh to remote PostgreSQL database server:<br />
# <strong>ssh user@ip address of the server</strong></p>
<p><strong>Step # 2: Enable client authentication</strong></p>
<p>Once connected, you need edit the PostgreSQL configuration file, edit the PostgreSQL configuration file <strong>/var/lib/pgsql/data/pg_hba.conf</strong> (or <strong>/etc/postgresql/8.4/main/pg_hba.conf</strong> for latest 8.4 version) using a text editor such as vi.</p>
<p>Login as postgres user using su / sudo command, enter:<br />
<strong>$ su – postgres</strong></p>
<p>PostgreSQL by default refuses all connections it receives from any remote address. You have to relax these rules by adding this line to:-</p>
<p><strong>$ vi /var/lib/pgsql/data/pg_hba.conf</strong><strong> </strong></p>
<p><strong> </strong><br />
Or</p>
<p><strong>$ vi /etc/postgresql/8.4/main.pg_hba.conf</strong></p>
<p>Append the following configuration lines to give access to 10.10.10.10/24 network :-</p>
<p><strong>Host all all 10.10.10.10/24 trust</strong></p>
<p>You can use your network/mask instead of 0.0.0.0/0 to only allow access from certain Ip address.Save and close the file. Make sure that you replace 10.10.10.10/24 with actual network Ip address range of the clients systemin your own network.</p>
<p>Or</p>
<p><strong>Host all all 0.0.0.0/0 md5</strong></p>
<p>This is an access control rule that lets anyone login from any address if a valid password is provided(the md5 keyword).You can use your network/mask instead of 0.0.0.0/0 to only allow access from certain Ip address</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Step # 3: Allow TCP/IP socket</strong></p>
<p>To be able to reach the server remotely you have to add the following line into the file<strong>,</strong> open PostgreSQL configuration file /var/lib/pgsql/data/postgresql.conf or /etc/postgresql/8.4/main/postgresql.conf.<br />
<strong># vi /etc/postgresql/8.4/main/postgresql.conf</strong><br />
OR<br />
<strong># vi /var/lib/pgsql/data/postgresql.conf</strong><br />
Find configuration line that read as follows:<br />
<strong>listen_addresses=&#8217;localhost&#8217;</strong><br />
Next set IP address(es) to listen on; you can use comma-separated list of addresses; defaults to &#8216;localhost&#8217;, and &#8216;*&#8217; is all ip address:<br />
<strong>listen_addresses=&#8217;*&#8217;</strong><br />
Or just bind to 220.54.1.2 and 220.54.1.3 IP address<br />
listen_addresses=&#8217;220.54.1.2 220.54.1.3&#8242;<br />
Save and close the file.</p>
<p><strong>Step # 4: Restart PostgreSQL Server</strong></p>
<p>Type the following command:<br />
<strong># /etc/init.d/postgresql restart</strong></p>
<p><strong>Step # 5: Test your setup</strong></p>
<p>Before test please make sure that your firewall allow the port “5432” default port of postgresql.</p>
<p>Use psql command from client system. Connect to remote server using IP address 10.10.10.50 and login using vivek username and sales database, enter:<br />
<strong>$ psql -h 10.10.10.50 -U postgres -d test</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Step # 6: Download Postgresql GUI Client </strong></p>
<p>Download any of postgresql GUI client to access databases remotely,one good postgresql gui client is <strong>Navicat (<a href="http://www.navicat.com/">www.navicat.com</a>).</strong></p>
<p><strong>Download through :- <a href="http://www.navicat.com/en/download/download.html">http://www.navicat.com/en/download/download.html</a></strong></p>
<p><a href="http://unixsurgeon.com/kb/navicat.JPG"><img class="alignleft" title="Navicat" src="http://unixsurgeon.com/kb/navicat.JPG" alt="" width="767" height="590" /></a></p>
<p>Enjoy Linux&#8230;!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-access-postgresql-database-server-remotely.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>symbol lookup error: suhosin.so: undefined symbol: zend_atol</title>
		<link>http://www.unixsurgeon.com/kb/symbol-lookup-error-suhosin-so-undefined-symbol-zend_atol.html</link>
		<comments>http://www.unixsurgeon.com/kb/symbol-lookup-error-suhosin-so-undefined-symbol-zend_atol.html#comments</comments>
		<pubDate>Mon, 20 Sep 2010 11:30:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php: symbol lookup error]]></category>
		<category><![CDATA[symbol lookup error: suhosin.so]]></category>
		<category><![CDATA[undefined symbol: zend_atol]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=112</guid>
		<description><![CDATA[HI,
Today after updating my php and apache on the server. I was getting 500 internal error my website and i got below error on my server apache error logs.
“/usr/bin/php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: undefined symbol: zend_atol”
The error message appears when an old application or software is upgraded to latest version. It may not cause issues [...]]]></description>
			<content:encoded><![CDATA[<p>HI,</p>
<p>Today after updating my php and apache on the server. I was getting 500 internal error my website and i got below error on my server apache error logs.</p>
<p>“/usr/bin/php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: undefined symbol: zend_atol”</p>
<p>The error message appears when an old application or software is upgraded to latest version. It may not cause issues with all the applications but definitely does affect some of them.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The only works when you enable suhosin.simulation for the account instead of disabling suhosin on the server.</p>
<p>You can perform this task by following ways :-</p>
<p>1.  By enabling suhosin.simulation in .htaccess file. If  susphp is not enabled on the server.</p>
<p>php_flag suhosin.simulation On</p>
<p>2.  By creating php.ini file under public_html/ directory. If  susphp is  enabled on the server.</p>
<p>suhosin.simulation On</p>
<p>If you are getting same error under wp-admin login page then copy your php.ini file under wp-admin/ directory and check once again.</p>
<p>Now you can check your application, Also there is no need to restart any service like apache&#8230;.It will work&#8230;!!!</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/symbol-lookup-error-suhosin-so-undefined-symbol-zend_atol.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change recursion limit(file limit list) in pure-ftp.</title>
		<link>http://www.unixsurgeon.com/kb/how-to-change-recursion-limitfile-limit-list-in-pure-ftp.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-change-recursion-limitfile-limit-list-in-pure-ftp.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 06:23:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[Ftp Recursion Limit]]></category>
		<category><![CDATA[LimitRecursion]]></category>
		<category><![CDATA[pureftp]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=28</guid>
		<description><![CDATA[Today when i am uploading some documents( around 7000 documents) using pure-ftp.Every thing is fine means documents are fine uploading.But when i have cross checked our uploaded files i have seen only 1999 documents have uploaded.If we refresh the directory there is no change in count of documents.
Solution :- Just login to your Server with [...]]]></description>
			<content:encoded><![CDATA[<p>Today when i am uploading some documents( around 7000 documents) using pure-ftp.Every thing is fine means documents are fine uploading.But when i have cross checked our uploaded files i have seen only 1999 documents have uploaded.If we refresh the directory there is no change in count of documents.</p>
<p>Solution :- Just login to your Server with root user and do the following changes in your ftp configuration :-</p>
<p>1. Open the main ftp configuration file.<br />
2. root@linuxdude[~]# vi /etc/pure-ftpd.conf<br />
3. Just check the line no. 164 :-</p>
<p>——————————————————————–</p>
<p># ‘ls’ recursion limits. The first argument is the maximum number of<br />
# files to be displayed. The second one is the max subdirectories depth</p>
<p>LimitRecursion 2000 8<br />
——————————————————————–</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>4. edit /etc/pure-ftpd.conf and change line 164 to:</p>
<p># ‘ls’ recursion limits. The first argument is the maximum number of<br />
# files to be displayed. The second one is the max subdirectories depth</p>
<p>LimitRecursion 5000 15</p>
<p>5.Just save the file after modification and restart the pureftp server with the following command :-</p>
<p>root@linuxdude[~]# /etc/init.d/pure-ftpd restart</p>
<p>Now you can upload total 5000 files through ftp and 15 parallel subdirectories are allowed.</p>
<p>Enjoy Linux.. <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-change-recursion-limitfile-limit-list-in-pure-ftp.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Physical Address Extension (PAE).</title>
		<link>http://www.unixsurgeon.com/kb/physical-address-extension-pae.html</link>
		<comments>http://www.unixsurgeon.com/kb/physical-address-extension-pae.html#comments</comments>
		<pubDate>Mon, 15 Mar 2010 12:50:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[how to update kernel with PAE]]></category>
		<category><![CDATA[how to upgrade RAM more then 4GB on 32 bit system]]></category>
		<category><![CDATA[kernel-PAE]]></category>
		<category><![CDATA[PAE]]></category>
		<category><![CDATA[Physical Address Extension]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=25</guid>
		<description><![CDATA[Physical Address Extension (PAE) is a feature first implemented in the Intel Pentium Pro to allow x86 processors to access more than 4 gigabytes of (RAM) random access memory if the operating system supports it.
The Linux kernel includes full PAE mode support starting with version 2.3.23, enabling access of up to 64 GB of memory [...]]]></description>
			<content:encoded><![CDATA[<p>Physical Address Extension (PAE) is a feature first implemented in the Intel Pentium Pro to allow x86 processors to access more than 4 gigabytes of (RAM) random access memory if the operating system supports it.</p>
<p>The Linux kernel includes full PAE mode support starting with version 2.3.23, enabling access of up to 64 GB of memory on 32-bit machines. A PAE-enabled Linux-kernel requires that the CPU also support PAE.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>How to update/install the PAE kernel :-</p>
<p>1. Please check either PAE kernel install on your server or not :-</p>
<p># rpm -qa kernel\* | sort   or<br />
# rpm -qa |grep PAE         or<br />
# Uname -r</p>
<p>2. Chek the available PAE kernel inforamtion :-</p>
<p># yum info kernel-PAE</p>
<p>Available Packages<br />
Name   : kernel-PAE</p>
<p>Summary: The Linux kernel compiled for PAE capable machines.</p>
<p>Description:<br />
This package includes a version of the Linux kernel with support for up to<br />
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).</p>
<p>The non-PAE kernel can only address up to 4GB of memory.</p>
<p>Install the kernel-PAE package if your machine has more than 4GB of memory.</p>
<p>3. Install the kernel-PAE package :-</p>
<p># yum install kernel-PAE</p>
<p>4. Once the install has finished, take a look at which kernels are now installed on your system (rpm -qa kernel\* | sort ), confirm that the PAE kernel will be the default on system boot (less /etc/grub.config &#8211; make sure that the PAE kernel is the first in the list of kernels to be referenced), ensure that all future updates will be of the PAE kernel (edit the file /etc/sysconfig/kernel so that the bottom line now reads DEFAULTKERNEL=kernel-PAE rather than DEFAULTKERNEL=kernel) and then reboot the system.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>5. just change the contents of the file /etc/sysconfig/kernel to be:</p>
<p># UPDATEDEFAULT specifies if new-kernel-pkg should make<br />
# new kernels the default<br />
UPDATEDEFAULT=yes</p>
<p># DEFAULTKERNEL specifies the default kernel package type<br />
DEFAULTKERNEL=kernel-PAE</p>
<p>6. for consistency, you might as well yum install kernel-PAE-devel</p>
<p>7. Here is /etc/grub.conf contains :-</p>
<p># grub.conf generated by anaconda<br />
#<br />
# Note that you do not have to rerun grub after making changes to this file<br />
# NOTICE: You have a /boot partition. This means that<br />
# all kernel and initrd paths are relative to /boot/, eg.<br />
# root (hd0,0)<br />
# kernel /vmlinuz-version ro root=/dev/sda5<br />
# initrd /initrd-version.img<br />
#boot=/dev/sda<br />
default=1<br />
timeout=5<br />
splashimage=(hd0,0)/grub/splash.xpm.gz<br />
hiddenmenu<br />
title CentOS (2.6.18-53.1.14.el5PAE)<br />
root (hd0,0)<br />
kernel /vmlinuz-2.6.18-53.1.14.el5PAE ro root=LABEL=/<br />
initrd /initrd-2.6.18-53.1.14.el5PAE.img<br />
title CentOS (2.6.18-8.el5)<br />
root (hd0,0)<br />
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/<br />
initrd /initrd-2.6.18-8.el5.img</p>
<p>Note :- &#8216;Default&#8217; starts at 0, not 1.So you have to change &#8220;default=1 to default=0.</p>
<p>Once your system has rebooted, your system will be running with PAE kernel, check the kernel with uname -rmi and by using the command free -om, check that all your memory is now visible.</p>
<p>Enjoy Linux..!!!! <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/physical-address-extension-pae.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install and Configure LAMP (Linux/Apache/MySQL/PHP) in openSUSE 11.0</title>
		<link>http://www.unixsurgeon.com/kb/install-configure-lamp-apachemysqlphp-in-opensuse-110.html</link>
		<comments>http://www.unixsurgeon.com/kb/install-configure-lamp-apachemysqlphp-in-opensuse-110.html#comments</comments>
		<pubDate>Sat, 20 Dec 2008 12:40:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[lamp server]]></category>
		<category><![CDATA[howto LAMP server]]></category>

		<guid isPermaLink="false">http://unixsurgeon.com/?p=3</guid>
		<description><![CDATA[SUSE Linux is your opensource operating system  
Apache2 is the master webserver on the planet
MySQL is your favorite opensource database
PHP is the popular web programming language
The easiest way to get the LAMP server installed would be to install LAMP from the YaST GUI as follows:
1.LAMP Installation from YaST :
I prefer the manual option to [...]]]></description>
			<content:encoded><![CDATA[<h3><span style="color: #ff6600;">SUSE Linux is your opensource operating system <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></h3>
<h3><span style="color: #ff6600;">Apache2 is the master webserver on the planet</span></h3>
<h3><span style="color: #ff6600;">MySQL is your favorite opensource database</span></h3>
<h3><span style="color: #ff6600;">PHP is the popular web programming language</span></h3>
<h3><span style="color: #000000;">The easiest way to get the LAMP server installed would be to install LAMP from the YaST GUI as follows:</span></h3>
<h3><span style="color: #ff6600;">1.LAMP Installation from YaST :</span></h3>
<h3><span style="color: #000000;">I prefer the manual option to setup a LAMP Server.</span></h3>
<h3><span style="color: #000000;">So without wasting much of time, lets proceed to get LAMP up and running on your openSUSE in no time. I’m using openSUSE 11.0 but the procedure should equally work on earlier 10.3 and other 10.2 versions.</span></h3>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h3><span style="color: #0000ff;"><span style="color: #ff6600;">2.Install &amp; Configure Apache2 Webserver :</span></span></h3>
<h3><span style="color: #000000;">Install Apache webserver</span></h3>
<h3><span style="color: #000000;">opensuse11:~ # yast2 –install apache2</span></h3>
<h3><span style="color: #000000;">This should install apache webserver. To check try the following command:</span></h3>
<h3><span style="color: #000000;">opensuse11:~ # rcapache2 status</span></h3>
<h3><span style="color: #000000;">Checking for httpd2:                                          unused</span></h3>
<h3><span style="color: #000000;">That tells you, the Apache webserver is installed but just not started yet.</span></h3>
<h3><span style="color: #000000;">To test if the webserver serves pages, add a file index.html into /srv/www/htdocs/ directory. This is the default web root directory for apache on your system.</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # cd /srv/www/htdocs</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # vi index.html</span></h3>
<h3><span style="color: #000000;">and enter some text say “Welcome to openSUSE 11.0”</span></h3>
<h3><span style="color: #000000;">Start Apache2 Webserver</span></h3>
<h3><span style="color: #000000;">Now start the Apache 2 webserver so we can check if it works OK.</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # rcapache2 start</span></h3>
<h3><span style="color: #000000;">Starting httpd2 (prefork)                                         done</span></h3>
<h3><span style="color: #000000;">Now, open a web browser like Firefox and go to http://localhost and you should see the ext you entered (here “Welcome to openSUSE 11.0?)</span></h3>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h3><span style="color: #0000ff;"><span style="color: #ff6600;">3.Let’s proceed to install PHP5 :</span></span></h3>
<h3><span style="color: #000000;">Install PHP5</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # yast2 –install php5 php5-mysql apache2-mod_php5</span></h3>
<h3><span style="color: #000000;">This should install PHP5, PHP5-MySQL module and the Apache2 PHP5 module.</span></h3>
<h3><span style="color: #000000;">For Apache2 to enable the PHP5 module, restart for changes to take effect.</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root# rcapache2 restart</span></h3>
<h3><span style="color: #000000;">Syntax OK</span></h3>
<h3><span style="color: #000000;">Shutting down httpd2 (waiting for all children to terminate)          done</span></h3>
<h3><span style="color: #000000;">Starting httpd2 (prefork)                                                          done</span></h3>
<h3><span style="color: #0000ff;"><span style="color: #ff6600;">4.Install &amp; configure MySQL :</span><br />
</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # yast2 –install mysql mysql-tools</span></h3>
<h3><span style="color: #000000;">This should install MySQL Database Server and options mysql-tools (for administration) on your openSUSE. To check the installation, run the following command:</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # rcmysql status</span></h3>
<h3><span style="color: #000000;">Checking for service MySQL:                                           unused</span></h3>
<h3><span style="color: #000000;">The above indicates that the MySQL Server is installed but not started yet.</span></h3>
<h3><span style="color: #000000;">Start MySQL Server</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root# rcmysql start</span></h3>
<h3><span style="color: #000000;">Starting service MySQL                                                done</span></h3>
<h3><span style="color: #000000;">By default there is no root password set for MySQL and it is important to set the password for the ROOT account.</span></h3>
<h3><span style="color: #000000;">Set Root Password</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # mysqladmin -u root -p rootpassword</span></h3>
<h3><span style="color: #000000;">This should set the root password as “rootpassword”. Set the password to something more appropriate.</span></h3>
<h3><span style="color: #000000;">To check if Root password is set and the MySQL Client can logon to the MySQL Server try the following:</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # mysql -u root -p</span></h3>
<h3><span style="color: #000000;">Enter password: ********</span></h3>
<h3><span style="color: #000000;">Welcome to the MySQL monitor.  Commands end with ; or g.</span></h3>
<h3><span style="color: #000000;">Your MySQL connection id is 1</span></h3>
<h3><span style="color: #000000;">Server version: 5.0.51a SUSE MySQL RPM</span></h3>
<h3><span style="color: #000000;">Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.</span></h3>
<h3><span style="color: #000000;">mysql&gt; show databases;</span></h3>
<h3><span style="color: #000000;">+——————–+</span></h3>
<h3><span style="color: #000000;">| Database           |</span></h3>
<h3><span style="color: #000000;">+——————–+</span></h3>
<h3><span style="color: #000000;">| information_schema |</span></h3>
<h3><span style="color: #000000;">| mysql              |</span></h3>
<h3><span style="color: #000000;">| test               |</span></h3>
<h3><span style="color: #000000;">+——————–+</span></h3>
<h3><span style="color: #000000;">3 rows in set (0.04 sec)</span></h3>
<h3><span style="color: #000000;">mysql&gt;</span></h3>
<h3><span style="color: #000000;">In the above, I used mysql client to logon as root, entered the password and list the databases. That completes the installation of LAMP on openSUSE 11.0</span></h3>
<h3><span style="color: #000000;">To administer MySQL database, the easiest and the popular tool is phpMyAdmin, given that we have discussed PHP5, apache2 setup here which are required for phpMyAdmin, it makes sense to look at quickly setting up and configure phpMyAdmin</span></h3>
<h3><span style="color: #0000ff;"><span style="color: #ff6600;">5.Install phpMyAdmin :</span><br />
</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # yast2 –install phpMyAdmin</span></h3>
<h3><span style="color: #000000;">This installs phpMyAdmin and setup a website at /srv/www/htdocs/phpMyAdmin directory. Change directory and use the sample config file to quickly setup phpMyAdmin.</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # cd /srv/www/htdocs/phpMyAdmin</span></h3>
<h3><span style="color: #000000;">opensuse11@ p-root # cp config.sample.inc.php config.inc.php</span></h3>
<h3><span style="color: #000000;">Edit the file and look for</span></h3>
<h3><span style="color: #000000;">$cfg['blowfish_secret'] = ‘mysqladmin’;</span></h3>
<h3><span style="color: #000000;">Enter a value for blowfish secret (I’ve set it to mysqladmin here)</span></h3>
<h3><span style="color: #000000;">Thats done and has the default configs on it. Logon to phpMyAdmin from http://localhost/phpMyAdmin with the MySQL root username and password.</span></h3>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h3><span style="color: #ff0000;">p-root <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></h3>
<p><span style="color: #ff0000;">Enjoy Linux <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/install-configure-lamp-apachemysqlphp-in-opensuse-110.html/feed</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>

