Page 1 of 1

wamp installation

Posted: Thu Dec 10, 2009 11:29 am
by craign924
hello, Glad to be Here!

i had installed wamp about 6 months ago no problem. i do not do much with it and then i wanted to try a tutorial and when i went back to it, wamp started acting strange. so i decided to reinstall it.

i have iis on port 80.
this is what i have done so far with the installation. the version i have is the newest
2.0i.

first i changed the port in httpd.conf file,
here-- Listen 8080 and here----ServerName localhost:8080

then i took the sample.config and pasted over the config.inc.php and changed the port and put in a password. see below
here is config.inc.php in C:\wamp\apps\phpmyadmin3.2.0.1.

what i get is the phpinfo page at localhost:8080, and the login for phpmyadmin but when i
put in the login --root@localhost:8080, newpass --it does not do anything .

one more thing my mcrypt extension is missing from the php extensions.

i have been struggling for a couple of days on this

Can you help?

thanks,
craig



Code: Select all

 
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use setup/
 *
 * All directives are explained in Documentation.html and on phpMyAdmin
 * wiki <http://wiki.phpmyadmin.net>.
 *
 * @version $Id: config.sample.inc.php 12304 2009-03-24 12:56:58Z nijel $
 * @package phpMyAdmin
 */
 
/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'newpass'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
 
/*
 * Servers configuration
 */
$i = 0;
 
/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '8080';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
 
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
 
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';
 
/*
 * End of servers configuration
 */
 
/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
 
?>
 
 

Re: wamp installation

Posted: Thu Dec 10, 2009 10:01 pm
by JAB Creations
What I think you may have done is confuse Apache with MySQL; each should probably be on it's own port I imagine (there are 65K ports roughly).

Frankly I highly recommend changing IIS to port 8080 and keeping Apache as port 80 and leaving MySQL as it's default port.

Set IIS port number
Start --> Settings --> Control Panel --> Administrative Tools --> Computer Management --> Services & Applications --> IIS --> Web Sites --> (right click on) Default Web Site --> Properties --> Web Site (tab, is default) --> TCP Port

Set Apache port number

Code: Select all

 /conf/httpd.conf

Look for "Listen 80" or just "Listen" and set the port.

You'll need to restart Apache (takes only a couple seconds) and possibly IIS for the changes to take effect.

In general I highly recommend using [url=http://www.apachefriends.org/en/xampp-windows.html]XAMPP[/url] which is a precompiled WAMP server. I still use it for WAMP production and LAMP live hosting though I'll be switching to LAMP locally after I finish my current major project.

Good luck! :)