A Guide to Installing Apache, PHP, MySQL, and PHPMyAdmin on Windows

Code:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

These are my php.ini mail settings, the same as yours.

All you need to do is install the ArGoSoft mail server (or any other mail server, but I had good luck with this one) and then add the localhost domain, and make a user.

mailsetup1.jpg

mailsetup2.jpg
 
Hey there, firstly many thanks for the guide, followed it step by step, great stuff.

I got an error message in phpMYadmin and took me a while to figure but thought i would share just in case you missed a step or setup has changed since the guide was made.

Error was: The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

Solution was: Navigate to C:\WEB\PHP. Open php.ini with a text editor.

Find: ;extension=php_mbstring.dll

Remove the ; from the beginning.

Once again many thanks for the guide, really helpful to dip into background of the programs a bit to learn how they work, rather than once click installs etc. (what do i do now??haha)
 
Ok want to start out by saying thank you, but i get this error with my PhPAdmin.

Fatal error: Call to a member function getName() on a non-object in C:\WEB\Apache\htdocs\phpmyadmin\libraries\common.inc.php on line 702


Any help would be good, dont know much about errors, but i did not edit that page.
 
Ok well i switched to the newest version 3.2 and know get this error,


Code:
Cannot load mysql extension. Please check your PHP configuration. - Documentation

Here is my config for it

PHP:
<?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'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$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'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '***';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '***';
/* 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'] = '';

?>
 
Find this line:

Code:
;extension=php_mysql.dll

And remove the ; from the start to load that module.

Then, find this line:

Code:
extension_dir = "./"
and make sure it points to the correct extensions folder. By default, this is located in <PHP Root>/ext/.

Hope that helps.
 
Does apache work on W7 64bit? and if it does... does this tutorial work on w7?
 
Back
Top Bottom