Today manually under Windows and Linux with a WAMP environment, the following is attached to my experience
Attack slightly
Http://blog.csdn.net/ihelloworld/article/details/6127525 mainly refer to this article, thank you for this friend
++++++++++++++++++++++++++++++++++++++++++++++
Windows under Lamp Environment Setup
++++++++++++++++++++++++++++++++++++++++++++++
Operating system: Windows
Server: [apache-2.2.8]
PHP: [php-5.2.17]
Database: [mysql-5.1.49]
Database administration Tools: [phpMyAdmin]
++++++++++++++++++++++++++++++++++++++++++++++
Preparing to install the software (download)
1> [apache_2.2.8-win32-x86-openssl-0.9.8g]
Http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.8-win32-x86-openssl-0.9.8g.msi
2> [Php-5.3.29-nts-win32-vc9-x86.zip]
Http://110.96.193.7:81/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/windows.php.net/downloads/releases/php-5.3.29-nts-Win32-VC9-x86.zip
3> [Mysql-5.5.19-win32.zip]
http://111.13.109.80:81/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/dlc2.pconline.com.cn/filedown_465_6687483/Cd964JGc/ Mysql-5.5.19-win32.zip
4> [Phpmyadmin-3.3.9-all-languages]
http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F3.3.9%2FphpMyAdmin-3.3.9-all-languages.zip/ download#!md5!3d5ec3d2023946bbca9c4dd182722c8b
++++++++++++++++++++++++++++++++++++++++++++++
Start installation (pre-installation directory [D:/lamp])
D:/lamp
--apache2.2
--php
--mysql
--sites
-----------------------
First step to install Apache D:\lamp\apache2.2
There's nothing wrong here, just keep on going and take a look at the path .
The second step is to unzip PHP into D:\lamp\php
Decompression copy (Simple)
Something's wrong. 1
Step three MySQL
MySQL Installation
Http://wenku.baidu.com/link?url= 1o9jvpkztfpqzwdhkeu57fgu8b9-xxllkomgrgq-kf-xlnibnvzssoev5-sw90nhq9uilgwax0ozut4w8amt6eap-ctgiakowmg1r-m2k-3
phpMyAdmin
Something's wrong. 2
Question 1
Fix "Apache is running a threaded MPM, but the your PHP module is not compiled to be threadsafe."
http://blog.csdn.net/abandonship/article/details/7344918
"Verbose error": Apache is running a threaded MPM, but your PHP module isn't compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed.
"Cause": The Service Manager was replaced by IIS to Apache, the original PHP version is wireless path Security (NTS), so you need to replace PHP with a thread-safe version (TS).
"Approach":
1. Download the new php5.2.17 VC6 x86 Thread Safe and update the original PHP program.
2. Open the php.ini file: (Add or Open)
Extension_dir = "PHP installation directory \ext"
Default_charset = "GBK"
Extension=php_mysql.dll
3. Copy the Php5ts.dll to the C:\Windows\System32.
Then configure the Apache conf file:
1. Open the/conf/httpd.conf file in the Apache directory.
2. Edit add a new record:
LoadModule php5_module "PHP installation directory/php5apache2_2.dll"
Phpinidir "PHP installation directory/php.ini"
AddType application/x-httpd-php. php
3. Start Apache,ok again to start successfully ~
PHP (download here)
http://windows.php.net/download/
PHPMYADMIN-Error cannot create session in case of error, check PHP or Web server logs and properly match
Http://www.cnblogs.com/dabing/archive/2010/04/27/1722437.html
Question 2:
Cannot start session without errors when running phpMyAdmin in English
Chinese run phpMyAdmin-Error cannot create a session when an error occurs, check the PHP or Web server logs and correctly
Workaround:
1. Open My Computer-the system installation disk (usually C-drive)-Open the Windows folder-find the temp directory;
2. Right-click on the open properties, point to security options, if not you can open the tool in the top of the window-Folder Options-View--will be "using single file Sharing (recommended)" The money tick off it has;
3. Then security inside the bottom of the users option, in the point of full control, the problem is resolved.
Say the simple point is: Win under the System folder windows there is a temp folder, just set this folder user permissions to Full control can be resolved.
PostScript: Later I try to encounter this problem, think not the solution, eventually I will the original file entrainment it inside the things are deleted, and new one, and the permissions set or with the above, the result can be ...
The most on-line method I summed up a bit should be:
PHP.ini in the C-drive Windows directory
Like you could find this line.
; Session.save_path = "C:\WINDOWS\temp"
Switch
Session.save_path = "C:\WINDOWS\temp"
Configuration file
-----------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++
"Apache Configuration"
5.1> httpd.conf (d:/lamp/apache2.2/conf)
5.1.1> #功能: Loading PHP modules
#说明: Search for LoadModule, add it later
LoadModule php5_module "D:/lamp/php/php5apache2_2.dll"
5.1.2> #功能: Set up working directory
#说明: Search for DocumentRoot, fix change to
DocumentRoot "D:/lamp/sites"
5.1.3> #功能: Setting directory Options
#说明: Search <directory "D:/lamp/apache2.2/htdocs", change to
<directory "D:/lamp/sites" >
5.1.4> #功能: Setting the default document
#说明: Search <directory/>, add
DirectoryIndex index.php index.html
5.1.5> #功能: Add PHP Type
#说明: Add at the end of the file
AddType application/x-httpd-php. html. php
#功能: the directory where php.ini
#说明: Add at the end of the file
Phpinidir "d:/lamp/php"
Features: Access to directories is not allowed
Description: Search the options Indexes followsymlinks item and Comment
#Options Indexes FollowSymLinks
5.2> Note: After modifying the configuration file, restart Apache to take effect
5.3> file creation in d:/lamp/sites/
#phpinfo. php
Input content:
<?php
Phpinfo ();
?>
Visit: http://localhost/phpinfo.php
"PHP Configuration"
Ini
The first step:
D:/lamp/php/php.ini, copy php.ini-recommended and rename to PHP.ini
Step Two:
#功能: Specify the directory where the extension library resides
Extension_dir = "d:/lamp/php/ext/"
#功能: Turn on extensions
#说明: Open the Extension module as needed to remove the preceding semicolon
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mcrypt.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
#功能: Error message displayed
Display_errors = On
Step Three
Copy Libmysql.dll, Libmcrypt.dll (d:/lamp/php) to c:/windows/system32/
Copy the Php5ts.dll to the C:\Windows\System32. Here is the reference to question 2, the above do not know if there is no use, this must
Fourth Step
Restart Apache, visit http://localhost/phpinfo.php to see if the extension was successfully loaded
Windows manual Installation Lamp (WAMP) environment