<?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; howto LAMP server</title>
	<atom:link href="http://www.unixsurgeon.com/kb/tag/howto-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>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>

