<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ASP.NET MSSQL Webhosting Blog &#187; PHP5</title>
	<atom:link href="http://www.mywebhostingblog.net/tag/php5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebhostingblog.net</link>
	<description>ASP.NET, MSSQL and Windows dedicated server articles</description>
	<lastBuildDate>Thu, 16 Sep 2010 19:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to install phpMyAdmin on Windows</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 01:19:44 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MySQL Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Windows 2003]]></category>
		<category><![CDATA[Windows NT]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=210</guid>
		<description><![CDATA[These steps can be followed on Windows 2000, Windows NT servers, Windows 2003, Windows 2008 and Windows XP. For steps on Linux refer the link below: How to install PHPMyAdmin on Linux How to install phpMyAdmin 2.11 on Windows Desktop and Server Here are steps that will help you installed PHPMyAdmin on a Windows server. [...]]]></description>
			<content:encoded><![CDATA[<p>These steps can be followed on Windows 2000, Windows NT servers, Windows 2003, Windows 2008 and Windows XP.</p>
<p>For steps on Linux refer the link below:</p>
<p><strong><a title="Install PHPMyAdmin on Linux" href="http://www.eukhost.com/forums/f15/how-install-phpmyadmin-pma-linux-vps-dedicated-server-4234/" target="_blank">How to install PHPMyAdmin on Linux</a></strong></p>
<p><strong>How to install phpMyAdmin 2.11 on Windows Desktop and Server</strong></p>
<p>Here are steps that will help you installed <strong>PHPMyAdmin</strong> on a Windows server.</p>
<p><strong>REQUIREMENTS:</strong></p>
<p>&gt;&gt; PHP <strong>4.3/4.4/5.1</strong><br />
&gt;&gt; MySQL <strong>4.0/4.1/5.0</strong></p>
<p><strong>DOWNLOAD</strong>:</p>
<p>This installation was tested on phpMyAdmin-2.11.1<br />
You can select the file from <a title="PHPMyAdmin Downloads" href="http://www.phpmyadmin.net/home_page/downloads.php" target="_blank">PHPMyAdmin Downloads</a></p>
<p><span id="more-210"></span></p>
<p><strong>CONFIGURATION</strong>:</p>
<p>Configuration that needs to be noted, the one below are the one we have chozen. They might be different on your server:</p>
<p>Installation path: C:\www\<strong>phpMyAdmin </strong>(If you have Apache on your server then place out side of webroot of Apache)<br />
Apache webroot : C:\www\webroot<br />
My-SQL path : C:\www\mysql\bin<br />
Access phpMyAdmin as : http://192.168.1.52/<strong>phpMyAdmin</strong>/</p>
<p><strong>INSTALLING PHPMyAdmin:</strong></p>
<p>1. Unpack the downloaded file <strong>phpMyAdmin</strong>-2.11.1.zip under the directory C:\www<br />
2. Rename directory C:\www\<strong>phpMyAdmin</strong>-2.11.1 to C:\www\phpMyAdmin<br />
3. Make a copy of C:\www\<strong>phpMyAdmin</strong>\libraries\config.default.php<br />
4. Open the default configuration file of <strong>PHPMyAdmin </strong>C:\www\<strong>phpMyAdmin</strong>\libraries\config.default.php and make following changes:</p>
<p>a. Find:</p>
<p><code>$cfg['PmaAbsoluteUri'] = '';</code></p>
<p>Put the full URL of PHPMyAdmin in the quotes, you can replace the IP address with the IP address of your server or your domain name:</p>
<p><code>$cfg['PmaAbsoluteUri'] = 'http://192.168.1.52/phpMyAdmin/';</code></p>
<p>b. PHPMyAdmin can also try to auto-detect the proper value for the above directive if it is left as it is [BLANK] and the below line is changed to &#8216;TRUE&#8217;:</p>
<p><code>$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;</code></p>
<p>c. Authentication Method:</p>
<p>&#8211; For single-user (root or trusted) environment:</p>
<p>&#8211; Method 1 would be to prompt client for MySQL user/password, this option will only work if your database is not accessed by other users:</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'http';</code></p>
<p>&#8211; Method 2 is to store MySQL user/password under config.ini.php file.</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'config';</code><br />
<code>$cfg['Servers'][$i]['user'] = 'root';</code><br />
<code>$cfg['Servers'][$i]['password'] = 'root-password';</code></p>
<p>Please replace the user and password with the <strong>administrator </strong>user and password of your<strong> MySQL server</strong>.</p>
<p>d. Authentication Method &#8212; for multi-user (untrusted) environment, this will allow to give access to your developers or clients if it is a shared server in hosting environment.<br />
This step is also required to for enabling phpMyAdmin&#8217;s relational features</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'http';</code><br />
<code>$cfg['Servers'][$i]['user'] = '';</code><br />
<code>$cfg['Servers'][$i]['password'] = '';</code><br />
<code>$cfg['Servers'][$i]['controluser'] = 'pma';</code><br />
<code>$cfg['Servers'][$i]['controlpass'] = 'pmapass';</code></p>
<p>Save the password: pmapass</p>
<p>e. Now we will have tp create MySQL controluser user &#8216;pma@localhost&#8217; with password &#8216;pmapass&#8217;, and with the proper permissions to the user:</p>
<p><code>C:\www\mysql\bin&gt; mysql -u root -p</code><br />
<code>mysql&gt; GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';</code><br />
Note the SQL password</p>
<p><code>mysql&gt; GRANT SELECT (Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv) ON mysql.user TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT ON mysql.db TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT ON mysql.host TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv) ON mysql.tables_priv TO 'pma'@'localhost';</code><br />
<code>mysql&gt; quit</code></p>
<p><strong>CONFIGURING APACHE 2.0</strong></p>
<p>a. If you run Apache as the webserver then you will follow the steps below:</p>
<p>Open file C:\www\Apache2\conf\httpd.conf to edit it and uncomment line (remove the beginning character &#8216;#&#8217;)<br />
I would suggest you to backup the http.conf file incase you have messed it up.</p>
<p><code>LoadModule alias_module modules/mod_alias.so</code></p>
<p>b. Make sure directive &#8216;DirectoryIndex&#8217; contains &#8216;index.php&#8217; http.conf</p>
<p><code>DirectoryIndex index.html index.html.var index.php</code></p>
<p>c. Then add the following lines:</p>
<p><code><br />
Alias /phpMyAdmin "C:/www/phpMyAdmin"<br />
</code></p>
<p><code><br />
Options None<br />
AllowOverride None<br />
order deny,allow<br />
deny from all<br />
allow from 127.0.0.1<br />
</code></p>
<p>Do not forget to restart Apache once you have made the above changes and have saved the http.conf file.</p>
<p><strong>CONFIGURING IIS6.0</strong></p>
<p>a. Open IIS Webserver from START &gt;&gt; RUN: inetmgr<br />
b. In IIS manager expand SERVER_NAME &gt;&gt; Web Sites and select Default WebSite.<br />
c. In the Right pane right click in white soace and select New &gt;&gt; Virtual Directory.<br />
d. In the Virtual Directory creation Wizard, click Next.<br />
e. Give directory Alias (Name) as PHPMyadmin and click Next.<br />
f. Click on Browse button and navigate to &#8220;C:\www\phpMyAdmin&#8221;<br />
e. Select &#8220;Read&#8221;, &#8220;Run Script&#8221; &amp; &#8220;Execute&#8221; and click Next.<br />
g. Now Right click on the PHPMyAdmin Virtual directory and select permissions.<br />
h. Give &#8220;Read &amp; Execute&#8221; permissions to IUSR_ and inherit the permissions.<br />
i. Right click on the PHPMyAdmin Virtual directory &gt;&gt; Properties &gt;&gt; Virtual Directory &gt;&gt; Configuration and map .php extention to PHP executable.</p>
<p><strong>OPTIONAL CONFIGURATIONS:</strong></p>
<p>Configuration for PHP v5:</p>
<p>These steps are only required if you want to use PHP5 for PHPMyAdmin, in PHP4 PHP extension php_mysql.dll is build in and extension php_mysqli is not supported.:</p>
<p>a. Edit file %SYSTEMROOT%\php.ini, under the &#8216;Dynamic Extensions&#8217; Section:</p>
<p>Uncomment line:<br />
<code>;extension=php_mbstring.dll</code></p>
<p>If using MySQL v4.0 : Uncomment line<br />
<code>;extension=php_mysql.dll</code></p>
<p>If using MySQL v4.1 : Insert line<br />
<code>extension=php_mysqli.dll</code></p>
<p>Edit config.inc.php and update server extension line:<br />
<code>$cfg['Servers'][$i]['extension'] = 'mysqli';</code></p>
<p>Enable phpMyAdmin&#8217;s Relational Features:</p>
<p>Please make a note that these steps are required for &#8220;Authentication Method &#8212; for multi-user (untrusted) environment&#8221;</p>
<p>Edit phpMyAdmin&#8217;s configuration file C:\www\phpMyAdmin\config.inc.php:</p>
<p><code>$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';</code><br />
<code>$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';</code><br />
<code>$cfg['Servers'][$i]['relation'] = 'pma_relation';</code><br />
<code>$cfg['Servers'][$i]['table_info'] = 'pma_table_info';</code><br />
<code>$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';</code><br />
<code>$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';</code><br />
<code>$cfg['Servers'][$i]['column_info'] = 'pma_column_info';</code><br />
<code>$cfg['Servers'][$i]['history'] = 'pma_history';</code><br />
<code>$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';</code></p>
<p>Now Run phpMyAdmin&#8217;s sql script file &#8216;create_tables.sql&#8217;:</p>
<p><code>C:\www\mysql\bin&gt; mysql -u root -p</code><br />
<code>mysql&gt; source C:\www\phpMyAdmin\scripts\create_tables.sql</code><br />
<code>mysql&gt; quit</code></p>
<p>That is it, you should be done with PHPMyAdmin installation on Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

