tag:blogger.com,1999:blog-25262098336000882262023-11-15T06:31:12.668-08:00Santosh SarkarSantosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2526209833600088226.post-42648813943815629922013-04-09T23:32:00.000-07:002013-04-09T23:32:10.154-07:00Ubuntu Apache MySQL PHP Configuration on LAMP stack<h2 id="To_install_the_default_LAMP_stack_in_Ubuntu_10.04_and_above" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To install the default LAMP stack in Ubuntu 10.04 and above</h2>
<span class="anchor" id="line-13" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-14" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">This is to help people setup and install a<span class="Apple-converted-space"> </span></span><a class="http" href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #dd4814; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">LAMP</a><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span>(</span><strong style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">L</strong><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">inux-</span><strong style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">A</strong><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">pache-</span><strong style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">M</strong><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">ySQL-</span><strong style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">P</strong><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">HP) server in Ubuntu, including Apache 2, PHP 5 and MySQL 4.1 or 5.0.</span> </div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
First install tasksel...<span class="anchor" id="line-15" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-16" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-17" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-18" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo apt-get install tasksel</pre>
<span class="anchor" id="line-19" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-20" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
... and then the LAMP stack:<span class="anchor" id="line-21" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-22" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-23" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-24" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-1" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo tasksel install lamp-server</pre>
<span class="anchor" id="line-25" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-26" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
See<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/Tasksel" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">Tasksel</a><span class="Apple-converted-space"> </span>- be warned, only use tasksel to install tasks, not to remove them - see<a class="https" href="https://launchpad.net/bugs/574287" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">https://launchpad.net/bugs/574287</a><span class="Apple-converted-space"> </span><span class="anchor" id="line-27" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><br /><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">DO NOT UNCHECK ANY PACKAGES IN THE MENU WHICH APPEARS</strong><br /><span class="anchor" id="line-28" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>You can leave your system in an unusable state.<span class="anchor" id="line-29" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Starting_over:_How_to_remove_the_LAMP_stack" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Starting over: How to remove the LAMP stack</h2>
<span class="anchor" id="line-30" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-31" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To remove the LAMP stack remove the following packages:<span class="anchor" id="line-32" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<ul style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; list-style: decimal; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;">Note: This assumes you have no other programs that require any of these packages. You might wish to simulate this removal first, and only remove the packages that don't cause removal of something desired.<span class="anchor" id="line-33" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></li>
</ul>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-34" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-35" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-2" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 php5-common php5-mysql</pre>
<span class="anchor" id="line-36" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-37" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To also remove the debconf data, use the purge option when removing. To get rid of any configurations you may have made to apache, manually remove the /etc/apache2 directory once the packages have been removed.<span class="anchor" id="line-38" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-39" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
You may also want to purge these packages:<span class="anchor" id="line-40" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-41" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-42" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-3" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>mysql-client-core-5.5 mysql-server-core-5.5</pre>
<span class="anchor" id="line-43" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-44" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h2 id="Installing_Apache_2" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Installing Apache 2</h2>
<span class="anchor" id="line-45" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To only install the apache2 webserver, use<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/InstallingSoftware" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">any method</a><span class="Apple-converted-space"> </span>to install:<span class="anchor" id="line-46" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-47" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-48" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-49" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-4" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>apache2</pre>
<span class="anchor" id="line-50" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-51" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
It requires a restart for it to work:<span class="anchor" id="line-52" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-53" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-54" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-55" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-5" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo /etc/init.d/apache2 restart</pre>
<span class="anchor" id="line-56" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-57" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
or<span class="anchor" id="line-58" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-59" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-60" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-61" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-6" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo service apache2 restart</pre>
<span class="anchor" id="line-62" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Checking_Apache_2_installation" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Checking Apache 2 installation</h3>
<span class="anchor" id="line-63" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-64" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
With your web browser, go to the URI<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">http</strong>://localhost : if you read "It works!", which is the content of the file /var/www/index.html , this proves Apache works.<span class="anchor" id="line-65" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-66" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Troubleshooting_Apache" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Troubleshooting Apache</h3>
<span class="anchor" id="line-67" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If you get this error:<span class="anchor" id="line-68" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-69" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for<span class="Apple-converted-space"> </span><a class="nonexistent" href="https://help.ubuntu.com/community/ServerName" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">ServerName</a></em><span class="anchor" id="line-70" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-71" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
then use a text editor such as "sudo nano" at the command line or "gksudo gedit" on the desktop to create a new file,<span class="anchor" id="line-72" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-73" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-74" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-7" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo nano /etc/apache2/conf.d/fqdn</pre>
<span class="anchor" id="line-75" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
or<span class="anchor" id="line-76" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-77" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-78" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-8" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ gksu "gedit /etc/apache2/conf.d/fqdn"</pre>
<span class="anchor" id="line-79" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
then add<span class="anchor" id="line-80" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-81" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-82" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-9" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>ServerName localhost</pre>
<span class="anchor" id="line-83" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
to the file and save. This can all be done in a single command with the following:<span class="anchor" id="line-84" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-85" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-86" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-10" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn</pre>
<span class="anchor" id="line-87" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-88" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Virtual_Hosts" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Virtual Hosts</h3>
<span class="anchor" id="line-89" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Apache2 has the concept of sites, which are separate configuration files that Apache2 will read. These are available in<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">/etc/apache2/sites-available</tt>. By default, there is one site available called<span class="Apple-converted-space"> </span><em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">default</em><span class="Apple-converted-space"> </span>this is what you will see when you browse to<span class="Apple-converted-space"> </span><a class="http" href="http://localhost/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost</a><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><a class="http" href="http://127.0.0.1/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://127.0.0.1</a>. You can have many different site configurations available, and activate only those that you need.<span class="anchor" id="line-90" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-91" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-92" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
As an example, we want the default site to be<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">/home/user/public_html/</tt>. To do this, we must create a new site and then enable it in Apache2.<span class="anchor" id="line-93" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-94" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To create a new site:<span class="anchor" id="line-95" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-96" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<ul style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; list-style: decimal; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line862" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
Copy the default website as a starting point.<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite </tt><span class="anchor" id="line-97" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line862" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
Edit the new configuration file in a text editor "sudo nano" on the command line or "gksudo gedit", for example:<tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">gksudo gedit /etc/apache2/sites-available/mysite</tt><span class="anchor" id="line-98" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line862" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
Change the<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">DocumentRoot</tt><span class="Apple-converted-space"> </span>to point to the new location. For example,<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">/home/user/public_html/</tt><span class="anchor" id="line-99" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line862" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
Change the<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">Directory</tt><span class="Apple-converted-space"> </span>directive, replace<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"><Directory /var/www/></tt><span class="Apple-converted-space"> </span>to<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"><Directory /home/user/public_html/></tt><span class="anchor" id="line-100" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">You can also set separate logs for each site. To do this, change the<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">ErrorLog</tt><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">CustomLog</tt><span class="Apple-converted-space"> </span>directives. This is optional, but handy if you have many sites</em><span class="anchor" id="line-101" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;">Save the file<span class="anchor" id="line-102" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-103" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></li>
</ul>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Now, we must deactivate the old site, and activate our new one. Ubuntu provides two small utilities that take care of this: a2ensite (<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">a</strong>pache<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">2en</strong>able<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">site</strong>) and a2dissite (<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">a</strong>pache<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">2dis</strong>able<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">site</strong>).<span class="anchor" id="line-104" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-105" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-106" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-107" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-11" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo a2dissite default && sudo a2ensite mysite</pre>
<span class="anchor" id="line-108" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-109" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Finally, we restart Apache2:<span class="anchor" id="line-110" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-111" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-112" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-113" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-12" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo /etc/init.d/apache2 restart</pre>
<span class="anchor" id="line-114" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-115" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">If you have not created<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">/home/user/public_html/</tt>, you will receive an warning message</em><span class="anchor" id="line-116" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-117" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To test the new site, create a file in<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">/home/user/public_html/</tt>:<span class="anchor" id="line-118" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-119" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-120" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-121" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-13" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ echo '<b>Hello! It is working!</b>' > /home/user/public_html/index.html</pre>
<span class="anchor" id="line-122" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-123" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Finally, browse to<span class="Apple-converted-space"> </span><a class="http" href="http://localhost/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost/</a><span class="anchor" id="line-124" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-125" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Installing_PHP_5" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Installing PHP 5</h2>
<span class="anchor" id="line-126" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To only install PHP5. use<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/InstallingSoftware" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">any method</a><span class="Apple-converted-space"> </span>to install the package<span class="anchor" id="line-127" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-128" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-129" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-130" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-14" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>libapache2-mod-php5</pre>
<span class="anchor" id="line-131" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-132" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Enable this module by doing<span class="anchor" id="line-133" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-134" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-135" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-15" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo a2enmod php5</pre>
<span class="anchor" id="line-136" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
which creates a symbolic link /etc/apache2/mods-enabled/php5 pointing to /etc/apache2/mods-availble/php5 .<span class="anchor" id="line-137" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-138" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Except if you use deprecated PHP code beginning only by "<?" instead of "<?php" (which is highly inadvisable), open, as root, the file /etc/php5/apache2/php.ini , look for the line "<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">short_open_tag</strong><span class="Apple-converted-space"> </span>= On", change it to "short_open_tag = Off" (not including the quotation marks) and add a line of comment (beginning by a semi-colon) giving the reason, the author and the date of this change. This way, if you later want some XML or XHTML file to be served as PHP, the "<?xml" tag will be ignored by PHP instead of being seen as a PHP code mistake.<span class="anchor" id="line-139" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-140" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Relaunch Apache 2 again:<span class="anchor" id="line-141" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-142" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-143" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-144" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-16" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo service apache2 restart</pre>
<span class="anchor" id="line-145" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-146" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Checking_PHP_5_installation" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Checking PHP 5 installation</h3>
<span class="anchor" id="line-147" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-148" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
In /var/www , create a text file called "test.php", grant the world (or, at least, Ubuntu user "apache") permission to read it, write in it the only line: "<?php phpinfo(); ?>" (without the quotation marks) then, with your web browser, go to the URI "<a class="http" href="http://localhost/test.php" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost/test.php</a>": if you can see a description of PHP5 configuration, it proves PHP 5 works with Apache.<span class="anchor" id="line-149" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-150" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Troubleshooting_PHP_5" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Troubleshooting PHP 5</h3>
<span class="anchor" id="line-151" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-152" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Does your browser ask if you want to<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">download the php</strong><span class="Apple-converted-space"> </span>file instead of displaying it? If Apache is not actually parsing the php after you restarted it, install<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">libapache2-mod-php5</tt>. It is installed when you install the<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">php5</tt><span class="Apple-converted-space"> </span>package, but may have been removed inadvertently by packages which need to run a different version of php.<span class="anchor" id="line-153" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-154" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">sudo a2enmod php5</tt><span class="Apple-converted-space"> </span>returns "$ This module does not exist!", you should purge (not just remove) the<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">libapache2-mod-php5</tt><span class="Apple-converted-space"> </span>package and reinstall it.<span class="anchor" id="line-155" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-156" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Be sure to clear your browser's cache before testing your site again. To do this in Firefox 4: Edit → Preferences … Privacy → History: clear your recent history → Details : choose "Everything" in "Time range to clean" and check only "cache", then click on "Clear now".<span class="anchor" id="line-157" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-158" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Remember that, for Apache to be called, the URI in your web browser must begin with "<a class="http" href="http:///" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://</a>". If it begins with "<a class="file" href="https://www.blogger.com/blogger.g?blogID=2526209833600088226" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">file://</a>", then the file is read directly by the browser, without Apache, so you get (X)HTML and CSS, but no PHP. If you didn't configure any host alias or virtual host, then a local URI begins with "<a class="http" href="http://localhost/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost</a>", "<a class="http" href="http://127.0.0.1/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://127.0.0.1</a>" or<span class="Apple-converted-space"> </span><a class="http" href="http:///" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://</a>" followed by your IP number.<span class="anchor" id="line-159" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-160" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If the problem persists, check your PHP file authorisations (it should be readable at least by Ubuntu user "apache"), and check if the PHP code is correct. For instance, copy your PHP file, replace your whole PHP file content by "<?php phpinfo(); ?>" (without the quotation marks): if you get the PHP test page in your web browser, then the problem is in your PHP code, not in Apache or PHP configuration nor in file permissions. If this doesn't work, then it is a problem of file authorisation, Apache or PHP configuration, cache not emptied, or Apache not running or not restarted. Use the display of that test file in your web browser to see the list of files influencing PHP behaviour.<span class="anchor" id="line-161" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-162" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-163" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="php.ini_development_vs._production" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
php.ini development vs. production</h3>
<span class="anchor" id="line-164" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-165" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
After standard installation, php configuration file<span class="Apple-converted-space"> </span><em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">/etc/php5/apache2/php.ini</em><span class="Apple-converted-space"> </span>is set so as "production settings" which means, among others, that no error messages are displayed. So if you e.g. make a syntax error in your php source file, apache server would return HTTP 500 error instead of displaying the php syntax error debug message.<span class="anchor" id="line-166" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-167" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If you want to debug your scripts, it might be better to use the "development" settings. Both development and production settings ini's are located in /usr/share/php5/<span class="anchor" id="line-168" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-169" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-170" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-171" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-172" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-17" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>/usr/share/php5/php.ini-development
<span class="anchor" id="line-2" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>/usr/share/php5/php.ini-production</pre>
<span class="anchor" id="line-173" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
so you can compare them and see the exact differences.<span class="anchor" id="line-174" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-175" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To make the "development" settings active, just backup your original php.ini<span class="anchor" id="line-176" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-177" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-178" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-18" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo mv /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.bak</pre>
<span class="anchor" id="line-179" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-180" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
and create a symlink to your desired settings:<span class="anchor" id="line-181" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-182" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-183" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-19" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo cp -s /usr/share/php5/php.ini-development /etc/php5/apache2/php.ini</pre>
<span class="anchor" id="line-184" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-185" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
or you may of course also edit the<span class="Apple-converted-space"> </span><em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">/etc/php5/apache2/php.ini</em><span class="Apple-converted-space"> </span>directly on your own, if you wish.<span class="anchor" id="line-186" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-187" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-188" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-189" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="PHP_in_user_directories" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
PHP in user directories</h3>
<span class="anchor" id="line-190" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-191" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
According to<span class="Apple-converted-space"> </span><a class="http" href="http://blag.borap.net/2010/05/04/re-enabling-php-in-user-directories-in-ubuntu-10-04/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">this blog</a>, newer versions of Ubuntu do<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">not</strong><span class="Apple-converted-space"> </span>have PHP enabled by default for user directories (your<span class="Apple-converted-space"> </span><tt class="backtick" style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">public_html</tt><span class="Apple-converted-space"> </span>folder). See the blog for instructions on how to change this back.<span class="anchor" id="line-192" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-193" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Installing_MYSQL_with_PHP_5" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Installing MYSQL with PHP 5</h2>
<span class="anchor" id="line-194" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-195" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Use<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/InstallingSoftware" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">any method</a><span class="Apple-converted-space"> </span>to install<span class="anchor" id="line-196" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-197" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-198" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-199" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-20" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>mysql-server libapache2-mod-auth-mysql php5-mysql</pre>
<span class="anchor" id="line-200" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-201" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-202" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-203" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h2 id="After_installing_PHP" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
After installing PHP</h2>
<span class="anchor" id="line-204" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-205" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
You may need to increase the memory limit that PHP imposes on a script. Edit the /etc/php5/apache2/php.ini file and increase the<span class="Apple-converted-space"> </span><em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">memory_limit</em>value.<span class="anchor" id="line-206" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-207" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-208" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="After_installing_MySQL" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
After installing MySQL</h2>
<span class="anchor" id="line-209" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-210" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Set_mysql_bind_address" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Set mysql bind address</h3>
<span class="anchor" id="line-211" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-212" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Before you can access the database<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">from other</strong><span class="Apple-converted-space"> </span>computers in your network, you have to change its bind address.<span class="Apple-converted-space"> </span><span class="anchor" id="line-213" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">Note that this can be a security problem, because your database can be accessed by other computers than your own.<span class="Apple-converted-space"> </span><span class="anchor" id="line-214" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>Skip this step if the applications which require mysql are running on the same machine.</strong><span class="anchor" id="line-215" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-216" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
type:<span class="anchor" id="line-217" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-218" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-219" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-21" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo nano /etc/mysql/my.cnf</pre>
<span class="anchor" id="line-220" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-221" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
and change the line:<span class="anchor" id="line-222" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-223" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-224" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-22" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>bind-address = localhost</pre>
<span class="anchor" id="line-225" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
to your own internal ip address e.g. 192.168.1.20<span class="anchor" id="line-226" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-227" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-228" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-23" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>bind-address = 192.168.1.20</pre>
<span class="anchor" id="line-229" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-230" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If your ip address is dynamic you can also comment out the bind-address line and it will default to your current ip.<span class="anchor" id="line-231" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-232" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If you try to connect without changing the bind-address you will recieve a "Can not connect to mysql error 10061".<span class="anchor" id="line-233" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-234" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Set_mysql_root_password" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Set mysql root password</h3>
<span class="anchor" id="line-235" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-236" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Before accessing the database by console you need to type:<span class="anchor" id="line-237" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-238" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-239" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-24" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql -u root</pre>
<span class="anchor" id="line-240" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-241" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
At the mysql console type:<span class="anchor" id="line-242" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-243" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-244" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-25" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');</pre>
<span class="anchor" id="line-245" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-246" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
A successful mysql command will show:<span class="anchor" id="line-247" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-248" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span></em><span class="anchor" id="line-249" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-250" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Mysql commands can span several lines. Do not forget to end your mysql command with a semicolon.<span class="anchor" id="line-251" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-252" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">Note:</strong><span class="Apple-converted-space"> </span>If you have already set a password for the mysql root, you will need to use:<span class="anchor" id="line-253" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-254" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-255" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-26" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql -u root -p</pre>
<span class="anchor" id="line-256" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
(Did you forget the mysql-root password? See<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/MysqlPasswordReset" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">MysqlPasswordReset</a>.)<span class="anchor" id="line-257" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-258" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Create_a_mysql_database" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Create a mysql database</h3>
<span class="anchor" id="line-259" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-260" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-261" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-262" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-27" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql> CREATE DATABASE database1;</pre>
<span class="anchor" id="line-263" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-264" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Create_a_mysql_user" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Create a mysql user</h3>
<span class="anchor" id="line-265" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-266" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
For creating a new user with all privileges (use only for troubleshooting), at mysql prompt type:<span class="anchor" id="line-267" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-268" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-269" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-28" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql> GRANT ALL PRIVILEGES ON *.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;</pre>
<span class="anchor" id="line-270" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-271" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
For creating a new user with fewer privileges (should work for most web applications) which can only use the database named "database1", at mysql prompt type:<span class="anchor" id="line-272" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-273" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-274" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-29" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON database1.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword';</pre>
<span class="anchor" id="line-275" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-276" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">yourusername</em><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">yourpassword</em><span class="Apple-converted-space"> </span>can be anything you like.<span class="Apple-converted-space"> </span><em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">database1</em><span class="Apple-converted-space"> </span>is the name of the database the user gets access to.<span class="Apple-converted-space"> </span><em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">localhost</em><span class="Apple-converted-space"> </span>is the location which gets access to your database. You can change it to '%' (or to hostnames or ip addresses) to allow connections from every location (or only from specific locations) to the database.<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">Note, that this can be a security problem and should only be used for testing purposes!</strong><span class="anchor" id="line-277" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-278" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-279" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To exit the mysql prompt type:<span class="anchor" id="line-280" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-281" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-282" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-30" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql> \q</pre>
<span class="anchor" id="line-283" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-284" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Since the mysql root password is now set, if you need to use mysql again (as the mysql root), you will need to use:<span class="anchor" id="line-285" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-286" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-287" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-31" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysql -u root -p</pre>
<span class="anchor" id="line-288" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-289" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
and then enter the password at the prompt.<span class="anchor" id="line-290" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-291" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Backup-Settings" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Backup-Settings</h3>
<span class="anchor" id="line-292" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-293" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Please, let's say something in which directories mysql stores the database information and how to configure a backup<span class="anchor" id="line-294" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-295" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Alternatively" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Alternatively</h3>
<span class="anchor" id="line-296" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
There is more than just one way to set the mysql root password and create a database. For example<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">mysqladmin</strong><span class="Apple-converted-space"> </span>can be used:<span class="anchor" id="line-297" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-298" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-299" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-300" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-32" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysqladmin -u root -p password yourpassword</pre>
<span class="anchor" id="line-301" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-302" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
and<span class="anchor" id="line-303" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-304" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-305" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-306" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-33" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ mysqladmin -u root -p create database1</pre>
<span class="anchor" id="line-307" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-308" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">mysqladmin</em><span class="Apple-converted-space"> </span>is a command-line tool provided by the default LAMP install.<span class="anchor" id="line-309" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-310" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Phpmyadmin_and_mysql-workbench" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Phpmyadmin and mysql-workbench</h2>
<span class="anchor" id="line-311" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-312" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
All mysql tasks including setting the root password and creating databases can be done via a graphical interface using<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">phpmyadmin</strong><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">mysql-workbench</strong>.<span class="anchor" id="line-313" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-314" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To install one or both of them, first enable the universe repository<span class="anchor" id="line-315" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-316" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-317" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<ul style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; list-style: decimal; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/Repositories/CommandLine" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">I am using Ubuntu server (command line)</a><span class="anchor" id="line-318" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/AddingRepositoriesHowto" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">I am using a desktop</a><span class="anchor" id="line-319" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-320" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
</ul>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Use<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/InstallingSoftware" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">any method</a><span class="Apple-converted-space"> </span>to install<span class="anchor" id="line-321" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-322" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-323" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-324" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-34" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>phpmyadmin</pre>
<span class="anchor" id="line-325" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-326" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-327" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-328" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Troubleshooting_Phpmyadmin_.26_mysql-workbench" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Troubleshooting Phpmyadmin & mysql-workbench</h3>
<span class="anchor" id="line-329" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">If you get blowfish_secret error:</strong><span class="Apple-converted-space"> </span><span class="anchor" id="line-330" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>Choose and set a phrase for cryptography in the file /etc/phpmyadmin/blowfish_secret.inc.php and copy the line (not the php tags) into the file /etc/phpmyadmin/config.inc.php or you will receive an error.<span class="anchor" id="line-331" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-332" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">If you get a 404 error upon visiting<span class="Apple-converted-space"> </span><a class="http" href="http://localhost/phpmyadmin" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost/phpmyadmin</a>:</strong><span class="Apple-converted-space"> </span><span class="anchor" id="line-333" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>You will need to configure apache2.conf to work with Phpmyadmin.<span class="anchor" id="line-334" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-335" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-336" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-337" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-35" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ gksudo gedit /etc/apache2/apache2.conf</pre>
<span class="anchor" id="line-338" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-339" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Include the following line at the bottom of the file, save and quit.<span class="anchor" id="line-340" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-341" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-342" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-343" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-36" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ Include /etc/phpmyadmin/apache.conf</pre>
<span class="anchor" id="line-344" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-345" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Alternative:_install_phpMyAdmin_from_source" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Alternative: install phpMyAdmin from source</h3>
<span class="anchor" id="line-346" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
See the<span class="Apple-converted-space"> </span><a class="https" href="https://help.ubuntu.com/community/phpMyAdmin" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">phpMyAdmin</a><span class="Apple-converted-space"> </span>page for instructions on how to install phpmyadmin from source:<span class="anchor" id="line-347" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-348" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Mysql-workbench" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Mysql-workbench</h3>
<span class="anchor" id="line-349" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Mysql-workbench runs locally, on the desktop. Use<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/InstallingSoftware" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">any method</a><span class="Apple-converted-space"> </span>to install<span class="anchor" id="line-350" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-351" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-352" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-353" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-37" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>mysql-workbench</pre>
<span class="anchor" id="line-354" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-355" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="For_more_information" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
For more information</h3>
<span class="anchor" id="line-356" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<a class="http" href="http://dev.mysql.com/doc/mysql/en/default-privileges.html" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">2.9.3. Securing the Initial MySQL Accounts</a><span class="Apple-converted-space"> </span>from the<span class="Apple-converted-space"> </span><a class="http" href="http://dev.mysql.com/doc/mysql/en/index.html" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">MySQL Reference Manual</a><span class="Apple-converted-space"> </span>is worth reading.<span class="anchor" id="line-357" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-358" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-359" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Edit_Apache_Configuration" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Edit Apache Configuration</h2>
<span class="anchor" id="line-360" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
You may want your current user to be the PHP pages administrator. To do so, edit the Apache configuration file :<span class="anchor" id="line-361" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-362" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-363" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-38" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ gksudo "gedit /etc/apache2/envvars"</pre>
<span class="anchor" id="line-364" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Search both the strings starting by "APACHE_RUN_USER" and "APACHE_RUN_GROUP", and change the names to the current username and groupname you are using.<span class="Apple-converted-space"> </span><span class="anchor" id="line-365" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>Then you'll need to restart Apache. (look at the next chapter concerning apache commands)<span class="anchor" id="line-366" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-367" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Configuration options relating specifically to user websites (accessed through localhost/~username) are in /etc/apache2/mods-enabled/userdir.conf.<span class="anchor" id="line-368" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-369" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-370" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Installing_suPHP" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Installing suPHP</h2>
<span class="anchor" id="line-371" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-372" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.<span class="anchor" id="line-373" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-374" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Note: suPHP enforces, security and helps avoid file permission problems under development environments with several users editing the site files, but it also demands more memory and CPU usage, which can degrade your server performance under certain circumstances.<span class="anchor" id="line-375" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-376" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To only install suPHP. use<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/InstallingSoftware" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">any method</a><span class="Apple-converted-space"> </span>to install the package<span class="anchor" id="line-377" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-378" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-379" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-380" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-39" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>libapache2-mod-suphp</pre>
<span class="anchor" id="line-381" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-382" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Enable this module by doing<span class="anchor" id="line-383" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-384" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-385" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-386" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-40" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo a2enmod suphp</pre>
<span class="anchor" id="line-387" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-388" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
then use a text editor such as "sudo nano" at the command line or "gksudo gedit" on the desktop to edit this file<span class="anchor" id="line-389" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-390" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-391" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-392" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-41" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo nano /etc/apache2/mods-available/php5.conf</pre>
<span class="anchor" id="line-393" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-394" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
or<span class="anchor" id="line-395" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-396" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-397" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-398" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-42" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>gksu "gedit /etc/apache2/mods-available/php5.conf"</pre>
<span class="anchor" id="line-399" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-400" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
make a new empty line at the top of the content, then add<span class="anchor" id="line-401" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-402" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-403" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-404" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-43" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><Directory /usr/share></pre>
<span class="anchor" id="line-405" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-406" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
make a new empty line at the bottom of the content, then add<span class="anchor" id="line-407" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-408" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-409" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-410" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-44" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></Directory></pre>
<span class="anchor" id="line-411" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-412" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
save changes<span class="anchor" id="line-413" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-414" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
For security reasons we need to specify to suPHP what are the document paths allowed to execute scripts, use a text editor such as "sudo nano" at the command line or "gksudo gedit" on the desktop to edit this file<span class="anchor" id="line-415" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-416" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-417" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-418" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-45" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo nano /etc/suphp/suphp.conf</pre>
<span class="anchor" id="line-419" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-420" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
or<span class="anchor" id="line-421" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-422" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-423" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-424" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-425" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-426" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-46" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>gksu "gedit /etc/suphp/suphp.conf</pre>
<span class="anchor" id="line-427" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-428" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
find the value "docroot" and specify the document path of your site files, for example:<span class="anchor" id="line-429" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-430" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-431" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-432" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-47" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>docroot=/var/www/</pre>
<span class="anchor" id="line-433" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-434" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
that value restrict script execution only to files inside "/var/www/"<span class="anchor" id="line-435" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-436" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-437" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-438" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-48" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>docroot=/var/www/:${HOME}/public_html</pre>
<span class="anchor" id="line-439" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-440" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
that value restrict script execution only to files inside a custom home folder for each configured user inside "/var/www/:${HOME}/public_html"<span class="anchor" id="line-441" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-442" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
for this tutorial we are going to use this value<span class="anchor" id="line-443" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-444" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-445" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-446" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-49" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>docroot=/home/user/public_html/</pre>
<span class="anchor" id="line-447" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-448" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
which is the same Apache directory directive set before in this document<span class="anchor" id="line-449" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-450" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
save changes<span class="anchor" id="line-451" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-452" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
to restart Apache, type in your terminal<span class="anchor" id="line-453" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-454" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-455" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-456" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-50" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo /etc/init.d/apache2 restart</pre>
<span class="anchor" id="line-457" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-458" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Now lets create a test script to see if suPHP is working correctly, in your terminal type<span class="anchor" id="line-459" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-460" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-461" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-462" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-51" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>echo "<?php echo 'whoim = '.exec('/usr/bin/whoami');?>" | tee /home/user/public_html/whomi.php</pre>
<span class="anchor" id="line-463" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-464" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
that command creates a quick php test file to display the current user executing the script<span class="anchor" id="line-465" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-466" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
open your browser and navigate to "localhost/whomi.php", most likely the browser will show you a "500" server error, this is because suPHP does not allow too permissive file and folder permissions and also does not allow mixed file and folder ownership, to correct this type in your terminal<span class="anchor" id="line-467" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-468" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="anchor" id="line-469" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-470" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-471" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-472" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-52" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo find /home/user/public_html/ -type f -exec chmod 644 {} \;
<span class="anchor" id="line-2-1" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo find /home/user/public_html/ -type d -exec chmod 755 {} \;
<span class="anchor" id="line-3" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>sudo chown user:group -R /home/user/public_html/</pre>
<span class="anchor" id="line-473" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-474" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
those commands enforce a secure and correct file and folder permission and also set a correct user and group ownership for all of them<span class="anchor" id="line-475" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-476" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Now open your browser and navigate to "localhost/whomi.php", if everything went fine you should see the name of the file owner executing the script and not "www-data" unless you specified so<span class="anchor" id="line-477" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-478" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Run.2C_Stop.2C_Test.2C_And_Restart_Apache" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Run, Stop, Test, And Restart Apache</h2>
<span class="anchor" id="line-479" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Use the following command to run Apache :<span class="anchor" id="line-480" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-481" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-482" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-53" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo /usr/sbin/apache2ctl start</pre>
<span class="anchor" id="line-483" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To stop it, use :<span class="anchor" id="line-484" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-485" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-486" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-54" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo /usr/sbin/apache2ctl stop</pre>
<span class="anchor" id="line-487" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To test configuration changes, use :<span class="anchor" id="line-488" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-489" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-490" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-55" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo /usr/sbin/apache2ctl configtest</pre>
<span class="anchor" id="line-491" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Finally, to restart it, run :<span class="anchor" id="line-492" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-493" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-494" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-56" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo /usr/sbin/apache2ctl restart</pre>
<span class="anchor" id="line-495" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-496" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Alternatively, you can use a graphical interface by installing<span class="Apple-converted-space"> </span><a class="https" href="https://launchpad.net/rapache" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">Rapache</a><span class="Apple-converted-space"> </span>or the simpler<span class="Apple-converted-space"> </span><a class="https" href="https://launchpad.net/localhost-indicator" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">localhost-indicator</a>.<span class="anchor" id="line-497" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Using_Apache" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Using Apache</h2>
<span class="anchor" id="line-498" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
You can access apache by typing 127.0.0.1 or<span class="Apple-converted-space"> </span><a class="http" href="http://localhost/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost</a><span class="Apple-converted-space"> </span>(by default it will be listening on port 80) in your browser address bar.<span class="Apple-converted-space"> </span><span class="anchor" id="line-499" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>By default the directory for apache server pages is /var/www .<span class="Apple-converted-space"> </span><span class="anchor" id="line-500" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>It needs root access in order to put files in. A way to do it is just starting the file browser as root in a terminal:<span class="anchor" id="line-501" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-502" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-503" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-57" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ gksudo nautilus</pre>
<span class="anchor" id="line-504" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-505" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
or<span class="anchor" id="line-506" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-507" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
if you want to make /var/www your own. (Use only for non-production web servers - this is not the most secure way to do things.)<span class="anchor" id="line-508" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-509" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-510" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-58" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ sudo chown -R $USER:$USER /var/www</pre>
<span class="anchor" id="line-511" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-512" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h2 id="Status" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Status</h2>
<span class="anchor" id="line-513" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To check the status of your PHP installation:<span class="anchor" id="line-514" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-515" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-516" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-59" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span> $ gksudo "gedit /var/www/testphp.php"</pre>
<span class="anchor" id="line-517" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
and insert the following line<span class="anchor" id="line-518" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-519" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-520" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-60" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span> <?php phpinfo(); ?></pre>
<span class="anchor" id="line-521" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-522" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
View this page on a web browser at<span class="Apple-converted-space"> </span><a class="http" href="http://yourserveripaddress/testphp.php" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://yourserveripaddress/testphp.php</a><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><a class="http" href="http://localhost/testphp.php" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost/testphp.php</a><span class="anchor" id="line-523" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-524" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Securing_Apache" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Securing Apache</h2>
<span class="anchor" id="line-525" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If you just want to run your Apache install as a development server and want to prevent it from listening for incoming connection attempts, this is easy to do.<span class="anchor" id="line-526" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-527" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-528" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-529" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-61" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ gksudo "gedit /etc/apache2/ports.conf"
<span class="anchor" id="line-2-2" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>$ password:</pre>
<span class="anchor" id="line-530" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-531" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Change ports.conf so that it contains:<span class="anchor" id="line-532" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-533" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-534" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; margin: 0px 0px 8px; orphans: auto; padding: 4pt; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;"><span class="anchor" id="line-1-62" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>Listen 127.0.0.1:80</pre>
<span class="anchor" id="line-535" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-536" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Save this file, and restart Apache (see above). Now Apache will serve only to your home domain,<span class="Apple-converted-space"> </span><a class="http" href="http://127.0.0.1/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://127.0.0.1</a><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><a class="http" href="http://localhost/" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">http://localhost</a>.<span class="anchor" id="line-537" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-538" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Password-Protect_a_Directory" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Password-Protect a Directory</h2>
<span class="anchor" id="line-539" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-540" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
There are 2 ways to password-protect a specific directory.<span class="Apple-converted-space"> </span><span class="anchor" id="line-541" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>The recommended way involves editing<span class="Apple-converted-space"> </span><span class="anchor" id="line-542" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"> /etc/apache2/apache2.conf </tt>.<span class="Apple-converted-space"> </span><span class="anchor" id="line-543" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>(To do this, you need root access).<span class="Apple-converted-space"> </span><span class="anchor" id="line-544" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>The other way involves editing a<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">.htaccess</tt><span class="Apple-converted-space"> </span>file in the directory to be protected.<span class="Apple-converted-space"> </span><span class="anchor" id="line-545" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>(To do this, you need access to that directory).<span class="anchor" id="line-546" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-547" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h3 id="Password-Protect_a_Directory_With_.htaccess" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Password-Protect a Directory With .htaccess</h3>
<span class="anchor" id="line-548" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-549" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line862" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
See<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">EnablingUseOfApacheHtaccessFiles</a><span class="anchor" id="line-550" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-551" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<strong style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: bold; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">Warning: On at least some versions of Ubuntu,<span class="Apple-converted-space"> </span><tt style="border: 0px; font-family: monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">.htaccess</tt><span class="Apple-converted-space"> </span>files will not work by default. See<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">EnablingUseOfApacheHtaccessFiles</a><span class="Apple-converted-space"> </span>for help on enabling them.</strong><span class="anchor" id="line-552" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-553" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="thumbnails" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
thumbnails</h2>
<span class="anchor" id="line-554" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-555" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
If you direct your web browser to a directory (rather than a specific file),<span class="Apple-converted-space"> </span><span class="anchor" id="line-556" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>and there is no "index.html" file in that directory,<span class="Apple-converted-space"> </span><span class="anchor" id="line-557" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>Apache will generate an index file on-the-fly listing all the files and folders in that directory.<span class="Apple-converted-space"> </span><span class="anchor" id="line-558" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>Each folder has a little icon of a folder next to it.<span class="anchor" id="line-559" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-560" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line874" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
To put a thumbnail of that specific image (rather than the generic "image icon")<span class="Apple-converted-space"> </span><span class="anchor" id="line-561" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span>next to each image file (.jpg, .png, etc.):<span class="anchor" id="line-562" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-563" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<em style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">... todo: add instructions on how to do thumbnails here, perhaps using<span class="Apple-converted-space"> </span><a class="http" href="http://aspn.activestate.com/ASPN/CodeDoc/Apache-AutoIndex/AutoIndex.html" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">Apache::AutoIndex 0.08</a><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><a class="http" href="http://aspn.activestate.com/ASPN/CodeDoc/Apache-Album/Album.html" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">Apache::Album 0.95</a><span class="Apple-converted-space"> </span>...<span class="Apple-converted-space"> </span></em><span class="anchor" id="line-564" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-565" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-566" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Known_problems" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Known problems</h2>
<span class="anchor" id="line-567" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="anchor" id="line-568" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><h3 id="Skype_incompatibility" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Skype incompatibility</h3>
<span class="anchor" id="line-569" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><div class="line867" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<a href="https://help.ubuntu.com/community/Skype" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">Skype</a><span class="Apple-converted-space"> </span>uses port 80 for incoming calls, and thus, may block Apache. The solution is to change the port in one of the applications. Usually, port 81 is free and works fine. To change the port number in<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/Skype" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">Skype</a><span class="Apple-converted-space"> </span>go to menu Tools > Options, then click on the Advanced tab, then in the box of the port for incoming calls write your preference.<span class="anchor" id="line-570" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-571" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
<h2 id="Other_Apache_Options" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Other Apache Options</h2>
<span class="anchor" id="line-572" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><ul style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; list-style: decimal; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/ServerSideIncludes" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">ServerSideIncludes</a><span class="Apple-converted-space"> </span>- enable SSI in Apache2<span class="anchor" id="line-573" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/LocalhostSubdomain" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">LocalhostSubdomain</a><span class="Apple-converted-space"> </span>- access your local files as if you had different subdomains<span class="anchor" id="line-574" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span><span class="anchor" id="line-575" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
</ul>
<h2 id="Further_Information" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; margin: 1em 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
Further Information</h2>
<span class="anchor" id="line-576" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; margin: 0px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;"></span><ul style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: Ubuntu, 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13px; list-style: decimal; margin: 0px 0px 8px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/StrongPasswords" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">StrongPasswords</a><span class="Apple-converted-space"> </span>is recommended reading!<span class="anchor" id="line-577" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/BastilleLinux" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">BastilleLinux</a><span class="Apple-converted-space"> </span>is also recommended if you're going to be running a live webserver.<span class="anchor" id="line-578" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line862" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
You can compile<span class="Apple-converted-space"> </span><a class="nonexistent" href="https://help.ubuntu.com/community/PHP5FromSource" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">PHP5FromSource</a>, as well as<span class="Apple-converted-space"> </span><a href="https://help.ubuntu.com/community/MYSQL5FromSource" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">MYSQL5FromSource</a>.<span class="anchor" id="line-579" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/PHPOracle" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">PHPOracle</a><span class="Apple-converted-space"> </span>will enable you to connect to Oracle databases.<span class="anchor" id="line-580" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;"></span></div>
</li>
<li style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;"><div class="line891" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1.5; margin: 0px 0px 8px; padding: 0px; text-align: left; vertical-align: baseline;">
<a href="https://help.ubuntu.com/community/PhpPear" style="border: 0px; color: #dd4814; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 1; margin: 0px; padding: 0px; text-align: left; text-decoration: none; vertical-align: baseline;">PhpPear</a><span class="Apple-converted-space"> </span>: PHP Extension and Application Repository</div>
</li>
</ul>
Santosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.com0tag:blogger.com,1999:blog-2526209833600088226.post-31796708690438955432013-04-01T00:35:00.001-07:002013-04-01T00:35:16.567-07:00Drupal-lovers: Drupal feature Module example<a href="http://drupallovers.blogspot.com/2012/07/drupal-feature-module-example.html?spref=bl">Drupal-lovers: Drupal feature Module example</a>: In this example we create an Online Videos feature. The site builder configured a lot in preparation of this feature we are currently not ...Santosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.com0tag:blogger.com,1999:blog-2526209833600088226.post-12344353478719839352013-04-01T00:34:00.001-07:002013-04-01T00:34:21.214-07:00Drupal-lovers: Database Data Fetching using Db_query Codee<a href="http://drupallovers.blogspot.com/2013/01/database-data-fetching-using-dbquery.html?spref=bl">Drupal-lovers: Database Data Fetching using Db_query Codee</a>: <? php global $user; $ userid =$user-> uid ; $result = db_ query ( 'SELECT n.mett_score FROM { tr...Santosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.com0tag:blogger.com,1999:blog-2526209833600088226.post-47490312514613832892013-04-01T00:33:00.001-07:002013-04-01T00:33:11.549-07:00How to create Mega Photo gallery in Drupal 7<a href="http://drupallovers.blogspot.com/2013/01/how-to-create-mega-photo-gallery-in.html?spref=bl">Drupal-lovers: How to create Mega Photo gallery in Drupal 7</a>: If you want to create mega Photo gallery in drupal 7 looks like below.... then follow some simple steps .. 1. First off all creat...Santosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.com0tag:blogger.com,1999:blog-2526209833600088226.post-55752803450915003712013-04-01T00:32:00.001-07:002013-04-01T00:32:04.261-07:00Drupal-lovers: How to autopost content from my site to facebook<a href="http://drupallovers.blogspot.com/2013/01/how-to-autopost-content-from-my-site-to.html?spref=bl">Drupal-lovers: How to autopost content from my site to facebook</a>: How to autopost content from any site to facebook page. first of all do these steps..... 1. Create a facebook page. i.e-facebook.com/abc...Santosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.com0tag:blogger.com,1999:blog-2526209833600088226.post-83420304837833075232012-06-20T05:34:00.000-07:002012-06-20T05:35:13.495-07:00Mysql Replication With Phpmyadmin<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">First Lets go to Replication panel on XAMPP.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_13_511.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_13_51" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_13_51_thumb.png?w=644&h=317" alt="Screenshot at 2012-04-24 02_13_51" width="644" height="317" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span id="more-691" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Next Select Configure as Master</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_14_031.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_14_03" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_14_03_thumb.png?w=644&h=317" alt="Screenshot at 2012-04-24 02_14_03" width="644" height="317" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">You can configure Replication as ALL or Selective. I have done selective where I select few DBs to Replicate.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Once you are done you need to add the lines below in the my.cnf file.</span></p><blockquote style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 8px; padding-right: 12px; padding-bottom: 8px; padding-left: 36px; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/blockquote.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-position: 3px 3px; background-repeat: no-repeat no-repeat; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas; font-size: small; "># ***** Added Lines here ****<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">server-id=4745869<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">log-bin=mysql-bin<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">log-error=mysql-bin.err<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">binlog_do_db=saggezza_cats,saggezza_catstesting<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "># ***** Till Here ****</span></p></blockquote><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Here are Ignoring all the DBs for Replication except the two above.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_21_40.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_21_40" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_21_40_thumb.png?w=644&h=254" alt="Screenshot at 2012-04-24 02_21_40" width="644" height="254" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></span></p><blockquote style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 8px; padding-right: 12px; padding-bottom: 8px; padding-left: 36px; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/blockquote.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-position: 3px 3px; background-repeat: no-repeat no-repeat; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: small; ">Go to <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas; ">/opt/lampp/etc/my.cnf</span></strong></span></span></p></blockquote><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_22_111.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_22_11" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_22_11_thumb.png?w=644&h=462" alt="Screenshot at 2012-04-24 02_22_11" width="644" height="462" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: small; ">Added the lines as I mentioned above above. Also Make sure <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas; ">“max_allowed_packet = 16M”</span></strong></span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_23_071.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_23_07" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_23_07_thumb.png?w=644&h=458" alt="Screenshot at 2012-04-24 02_23_07" width="644" height="458" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_23_161.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_23_16" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_23_16_thumb.png?w=644&h=346" alt="Screenshot at 2012-04-24 02_23_16" width="644" height="346" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Make sure to comment out he existing server-id as we have already given above.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_23_391.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_23_39" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_23_39_thumb.png?w=644&h=316" alt="Screenshot at 2012-04-24 02_23_39" width="644" height="316" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Restart XAMPP</span></p><blockquote style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 8px; padding-right: 12px; padding-bottom: 8px; padding-left: 36px; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/blockquote.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-position: 3px 3px; background-repeat: no-repeat no-repeat; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas; font-size: small; ">$ sudo ./opt/lampp/lampp restart</span></p></blockquote><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_24_021.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_24_02" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_24_02_thumb.png?w=644&h=316" alt="Screenshot at 2012-04-24 02_24_02" width="644" height="316" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Once you restart XAMPP, you can see that Mysql Server is started as Master.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_24_151.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_24_15" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_24_15_thumb.png?w=644&h=370" alt="Screenshot at 2012-04-24 02_24_15" width="644" height="370" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Next Lets Create a Replication user and give it privileges as the slave needs this information to connect to the Master.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_24_401.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_24_40" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_24_40_thumb.png?w=644&h=317" alt="Screenshot at 2012-04-24 02_24_40" width="644" height="317" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">I have given <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">root</strong> but you can give any username you want.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_25_131.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_25_13" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_25_13_thumb.png?w=644&h=304" alt="Screenshot at 2012-04-24 02_25_13" width="644" height="304" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: medium; ">MySQL Slave Configuration</span></strong> </span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">First lets add Server-id to our slave as mentioned.</span></p><blockquote style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 8px; padding-right: 12px; padding-bottom: 8px; padding-left: 36px; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/blockquote.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-position: 3px 3px; background-repeat: no-repeat no-repeat; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas; font-size: small; ">server-id=9384593</span></p></blockquote><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_28_29.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_28_29" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_28_29_thumb.png?w=644&h=194" alt="Screenshot at 2012-04-24 02_28_29" width="644" height="194" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_29_29.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_29_29" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_29_29_thumb.png?w=644&h=316" alt="Screenshot at 2012-04-24 02_29_29" width="644" height="316" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Now lets connect to Master.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_30_08.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_30_08" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_30_08_thumb.png?w=644&h=409" alt="Screenshot at 2012-04-24 02_30_08" width="644" height="409" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">You will get a confirmation about he successful connection to Master.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_30_20.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_30_20" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_30_20_thumb.png?w=644&h=316" alt="Screenshot at 2012-04-24 02_30_20" width="644" height="316" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Now we need to start SLAVE I/O and Sql Threads.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_31_07.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_31_07" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_31_07_thumb.png?w=644&h=366" alt="Screenshot at 2012-04-24 02_31_07" width="644" height="366" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">They are right under “<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Control Slave</strong>” as below</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_31_28.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_31_28" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_31_28_thumb.png?w=644&h=313" alt="Screenshot at 2012-04-24 02_31_28" width="644" height="313" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Now you can see the threads running.</span></p><blockquote style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 8px; padding-right: 12px; padding-bottom: 8px; padding-left: 36px; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/blockquote.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-position: 3px 3px; background-repeat: no-repeat no-repeat; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">NOTE: <em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">If you face any issues getting the threads started then please check logs. In my case IO Thread was not starting. When I checked the log I found that I had two server-id’s in the my.cnf file. Also sometimes you will get IO error due to max_allowed_packet as well, as this is by default set to 1MB, which needs to be around 16MB.</em></span></p></blockquote><blockquote style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 8px; padding-right: 12px; padding-bottom: 8px; padding-left: 36px; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/blockquote.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-position: 3px 3px; background-repeat: no-repeat no-repeat; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas; font-size: small; ">/opt/lampp/var/mysql/mysql-bin</span></p></blockquote><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_31_37.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 02_31_37" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-02_31_37_thumb.png?w=644&h=316" alt="Screenshot at 2012-04-24 02_31_37" width="644" height="316" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">Now we can see all the DBs in Replication Mode. Now any Updates to Master will reflect on the slave.</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><a href="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-03_24_28.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(41, 112, 166); text-decoration: none; "><img title="Screenshot at 2012-04-24 03_24_28" src="http://ahmedzubayr.files.wordpress.com/2012/04/screenshot-at-2012-04-24-03_24_28_thumb.png?w=644&h=316" alt="Screenshot at 2012-04-24 03_24_28" width="644" height="316" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 600px; background-image: none; display: inline; " /></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 17px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: small; ">This will have the MASTER-SLAVE for Mysql Server is Ready.</span></p>Santosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.com12tag:blogger.com,1999:blog-2526209833600088226.post-63623549159598997792012-04-12T02:09:00.000-07:002012-04-12T02:12:36.015-07:00How to Mirror Your WordPress Blog to Blogger<h3 class="post-title entry-title" itemprop="name"></h3> <div class="post-header"> <div class="post-header-line-1"></div> </div> <div class="post-body entry-content" id="post-body-365958766886138512" itemprop="articleBody"> <h1 class="entry-title full-title" style="margin-top: 0px; margin-right: 0px; margin-bottom: 9px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 24px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); line-height: 1; color: rgb(81, 85, 92); font-family: helvetica, arial, sans-serif; text-align: -webkit-auto; "><br /></h1><div class="entry-content full-content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 9px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); overflow-x: auto; overflow-y: auto; clear: both; width: 510px; color: rgb(81, 85, 92); font-family: helvetica, arial, sans-serif; line-height: 18px; text-align: -webkit-auto; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "><img src="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-to-blogger.png" alt="wp-to-blogger" class="alignleft size-full wp-image-340" original="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-to-blogger.png" style="margin-top: 0px; margin-right: 1em; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: left; " height="84" width="207" />Creating a mirror of your blog is a good way to backup your content. In the event that your blog/web host/domain went down, you know that there is another site that is still running, and serving the exact same content.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">This tutorial shows you how to mirror your WordPress blog to Blogger.<br /><span id="more-228" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "></span></p><h3 style="margin-top: 0px; margin-right: 0px; margin-bottom: 9px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Why Blogger?</h3><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">There are plenty of free blog services out there, why choose Blogger? The reason is because Blogger is free and is owned by Google. In term of reliability and stability, it is the best. Since you are backing up your content, isn’t it logical to get it on the most reliable platform around?</p><h3 style="margin-top: 0px; margin-right: 0px; margin-bottom: 9px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Migrating your existing WP blog</h3><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">The migration from WordPress to Blogger is easy. Log into your WordPress dashboard as Administrator. Go to “Tools -> Export”. Export all your WordPress posts/categories and settings to an xml file.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "><img src="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-export-data.png" alt="wp-export-data" class="aligncenter size-full wp-image-334" original="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-export-data.png" style="margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; display: block; " height="548" width="489" /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Go to <a href="http://wordpress2blogger.appspot.com/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(160, 0, 4); text-decoration: none; ">WordPress2Blogger</a> site. Convert the <em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">wordpress.201x-xx-xx.xml</em> to <em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">blogger-export.xml</em>file.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Login to your Blogger account and go to “<em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Settings -> Import Blog</em>“. Upload the blogger-export.xml file and Import your whole WP blog in.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "><img src="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-blogger-import-blog.png" alt="wp-blogger-import-blog" class="aligncenter size-full wp-image-335" original="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-blogger-import-blog.png" style="margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; display: block; " height="407" width="391" /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">If everything goes well, all your previously published posts should now be imported into Blogger.</p><h3 style="margin-top: 0px; margin-right: 0px; margin-bottom: 9px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Update Blogger whenever you publish a post</h3><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Now that you have imported your previously published posts into Blogger, it’s time to configure your Blogger’s blog to auto-update itself whenever you publish a post in WP.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">First, in Blogger, go to “<em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Settings -> Email & Mobile</em>“. Create a new secret email address. This will be the email address that you mail to publish your post. Remember to check the box “Publish emails immediately”. Once done, click “Save Settings”.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "><img src="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-blogger-posting-option.png" alt="wp-blogger-posting-option" class="aligncenter size-full wp-image-337" original="http://images.wpdailybits.com/wp-content/uploads/2010/12/wp-blogger-posting-option.png" style="margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; display: block; " height="215" width="600" /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Next, I am going to assume that you are using <a href="http://feedburner.com/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(160, 0, 4); text-decoration: none; ">feedburner.com</a> to manage your WP feed, and you have activated the “Email Subscription” option. What you need to do is to subscribe yourself to your own mailing list (preferably with a Gmail address) so that Feedburner can email you whenever you publish a new post.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">The last and final thing is to setup your email account to forward the feedburner mail to your Blogger Publish email. In Gmail, this can be done by setting up a forwarding email address and a filter.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">That’s it. Whenever you publish a new post in your WP blog, it will be auto-updated on your Blogger blog as well.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">What other ways do you use to mirror your WP blog to Blogger?</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">-------------------------</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">-------------------------</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "></p><h3 style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; line-height: normal; text-align: center; ">Instructions</h3><div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; line-height: normal; text-align: center; font-size: medium; "><img src="http://wordpress2blogger.appspot.com/wp2b.png" /></div><p style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; line-height: normal; text-align: center; font-size: medium; "></p><p style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; line-height: normal; text-align: center; font-size: medium; "><strong>Ever wanted to move your WordPress blogs over to Blogger? This site can aid in the process!</strong></p><h3 style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; line-height: normal; text-align: center; ">Instructions</h3><table style="font-family: 'Times New Roman'; width: 600px; " align="center"><tbody><tr><td style="text-align: left; "><ol><li>Login to your <a href="http://www.wordpress.com/">WordPress</a> account and navigate to the Dashboard for the blog that you'd like to transfer to Blogger.</li><li>Click on the <b>Manage</b> tab below the Blog name.</li><li>Click on the <b>Export</b> link below the <b>Manage</b> tab.</li><li>Download the WordPress WXR export file by clicking on <b>Download Export File.</b></li><li>Save this file to your local machine.</li><li>Browse to that saved document with the form below and click <b>Convert</b>.<p></p><form method="post" action="http://wordpress2blogger.appspot.com/wp2b/" enctype="multipart/form-data"><input name="input-file" size="30" type="file"> </form><p></p></li><li>Save this file to your local machine. This file will be the contents of your posts/comments from WordPress in a Blogger export file.</li><li>Login to your <a href="http://www.blogger.com/">Blogger</a> or create a new user.</li><li>Once logged in, click on the <b>Create a Blog</b> link from the user dashboard, and then click on the <b>Import Blog Tool</b></li><li>Follow the instructions and upload your Blogger export file when prompted.</li><li>After completing the import wizard, you should have a set of imported posts from WordPress that you can now publish to Blogger. Have fun!</li></ol></td></tr></tbody></table></div></div></div>Santosh Sarkarhttp://www.blogger.com/profile/01665013822338452225noreply@blogger.com2