Vista House (www.vista123.com): Windows seven how to configure the PHP runtime environment Web site
this supply is not known, there is to understand, make sure you inform by the remarks below the article Win7 residence, soft media immediately modify the supply. This web site technologies for PHP builders, the user isn't significant for ordinary Windows7, please attention.
1, Apache model set up
explained: openssl openssl module is expressed together with the use openssl to connect to the Apache configure SSL secure link, that is, use the https: / / entry mode .
nossl mentioned without having OpenSSL module, the website link cannot be employed for SSL protection, where we downloaded with the OpenSSL's.
Pick Model: apache_2.2.14-win32-x86-openssl-0.nine.8k.msi (right here to 32 as an instance)
Obtain:
Very first of all we D disk (drive based on the real scenario of their selection) to produce a brand new directory and name it
one. Set up Instructions:
operating apache setup, the strategy is rather very simple installation interface and has been enjoying there is going to be an interface, you should fill within the contents of 3, specifically: Network Domain, Server Name, Administrator's Email Address fill informal like, not the content material.
there are two choices below, choose the default port eighty, the 2nd was 8080, based on person wants choice, frequently the default port 80.
we continue with the installation, pick Custom made (Customized Installation) - Pick - > Right after set up, the computer 1 a lot more icon within the reduce correct corner, double-click to open, pick the start or restart, it functions, therefore put in.
2. to modify the configuration:
open the set up file D: WAMP Apache conf httpd.conf file (modify the configuration file, use Notepad isn't suggested, could possibly be its impact,
Office 2010 Professional, recommended Notepad + + or other editing software program to open modified)
Ctrl + F to open the longer term to change the content material to come across the
in # LoadModule vhost_alias_module modules / mod_vhost_alias.so to add:
LoadModule php5_module httpd-php. htm
AddType software / x-httpd-php. html
DocumentRoot As for the storage of internet pages, customized or do not modify the default): DocumentRoot DirectoryIndex index.html
modified: DirectoryIndex index.php default.php index.html index.htm default.html default.htm
three. Test
in D: / WAMP / www directory, generate an index.html page inside the browser, enter
if displayed properly, Apache is configured, and operating.
2nd, MySql model put in
explained: The Essentials Deal: doesn't include the embedded server and benchmark suite, with automated installation and configuration wizards, no MySQL Documentation.
The Total Deal: includes embedded server and benchmark suite, with automated installation and configuration wizard, a MySQL Documentation.
The Noinstall Archive: includes embedded server and benchmark suite, there's no automatic installer and configuration wizard, a MySQL Documentation.
Pick Model: mysql-essential-5.1.44-win32.msi
Obtain:
1. Installation Notes:
open the installer, click Choose custom made, component will be the default option, we don't alter - Click option:
Developer Machine, will only run from memory less;
Server Machine, will use the moderate quantity of memory;
Devoted MySQL Server Machine, run just above this server mysql database , will occupy all of memory.
can decide on according to their wants, here we opt for the second Database multi-use,
Office 2007 Professional, will develop into a superb innodb database optimization and efficient storage kind myisam storage kind;
Transactional Database Only used just for transaction processing kind, the most beneficial optimization innodb, but also help the myisam;
Non-Transactional Databse Only non-transactional kind, suitable for simple apps, only don't assistance transactions myisam type is supported.
commonly select the first multi-functional, as are we. - quantity of connections, the first will be the largest number of twenty concurrent connections, the next largest quantity of concurrent connections to 500, the last 1 is the customized, they can pick out based on need, I chose the second - >
following is select the database listening port,
Office Professional 2007, the general default is 3306, when you change another port, when connecting towards the database following the modification 端口 ought to remember, or cannot connect with mysql database, even more trouble, exactly where unmodified The default port utilized mysq: 3306 -
(Observe: In case you use the authentic data inside the database, it truly is very best in a position to figure out what the original code used for the database, if this set of data encoding as well as the original encoding with the database is inconsistent, when in use may possibly be garbled.)
this step is whether or not or to not set mysql windows, commonly set services options, so that foreseeable future can start and shut down by the services mysql database. The following verify boxes are checked, so that, inside the cmd mode, having to mysql's bin directory to execute the command. That is, the hook is marked down 2 the center by default - bearing in thoughts the tremendous user's password, the following possess a verify box is to pick out whether or not to allow root user to make use of the remote machine to connect to your mysql server over, if this desire, please examine. Here we use the default options inside the New root password and Confirm the password.
two. to change the configuration:
open D: WAMP MySQL my.ini
set datadir to D: / WAMP / MySQL / data / or the location you would like to shop the data The directory could be.
III, PHP edition installed
explained: VC9 worth specifically for the IIS scripts, using Visual Studio 2008 compiler, supports the most recent Microsoft set to strengthen effectiveness.
VC6 Internet solutions to other software scripts,
Windows 7 Key, like Apache.
Thread Safe-box safety, the star are going to be thread-safe verify to stop decided to needs to begin a brand new thread (Thread) within the CGI implementation modalities and also the exhaust program assets.
Non Thread Safe non-thread-safe, not towards the thread in the implementation (Thread) safety checks
select the edition: PHP5.3 (5.3.1) below VC6 x86 Thread Secure in the ZIP download
Download:
one.
Considering that our installation instructions to obtain the ZIP archive, simply extract the files to br> two. to modify the configuration
the E: WAMP PHP php.ini-development file modified php.ini
open php.ini
; extension_dir = > altered to: extension_dir = extension = php_gd2.dll
extension = php_mbstring.dll
extension = php_mysql.dll
extension = php_mysqli.dll
extension = php_pdo_mysql.dll
extension = php_xmlrpc.dll
; date.timezone =
modified (several web sites not talked about right here to alter the default time for your Usa, will complain if you don't change): date.timezone = Asia / Shanghai
3. test
restart Apache (configuration files modified to get impact you should restart Apache)
create a index.php page, enter the code, save the file on directory
open a browser type: When you can correctly show that PHP is configured, you may view the page's PHP facts is correct.
(Be aware: alter the file within the output of the input operate might be a whole lot of related information about the existing state of PHP,
Office Professional 2007, including the PHP version, server details, and environment.)
(Note:)
Then we test Following, it may connect to Mysql
an additional new one website link.php, enter the following code
$ hyperlink = mysql_connect (>
also preserve the file to the phpMyAdmin-3.2.five
Choose Edition: phpMyAdmin-3.2.5-all-languages.zip
Obtain:
one. Installation
extract to D: WAMP phpMyAdmin
2. to modify the configuration
open D: WAMP phpMyAdmin libraries config.default.php
$ cfg ['PmaAbsoluteUri'] = (fill in phpMyAdmin to access the absolute URL): $ cfg ['PmaAbsoluteUri'] = '
$ cfg [' Servers'] [$ i] ['host'] = 'localhost';
modified (fill inside the server handle, typically the default, don't change): $ cfg ['Servers'] [$ i] ['host'] = 'localhost';
$ cfg ['Servers'] [$ i] ['user'] = 'root';
modified (fill in Mysql consumer name, right here we default): $ cfg ['Servers'] [$ i] [' person '] =' root ';
$ cfg [' Servers'] [$ i] ['password'] = ] ['password'] = 'Mysql PWD;
$ cfg [' Servers'] [$ i] ['auth_type'] = 'cookie';
modified (set authentication strategy, protection factors, fill into cookie): $ cfg ['Servers'] [$ i] ['auth_type'] = 'cookie';
$ cfg ['blowfish_secret'] = > modified (set phrase password, in case the above set cookie, then there cannot be empty, in any other case an error is going to be prompted to login): $ cfg ['blowfish_secret'] = 'cookie';
three. Check
Open the browser and type: access and landing
5, at the finish of
to this environment to construct PHP below Windows7 finished, we take pleasure in using it.
Vista Residence (www.vista123.com), love the net, fell in love with Vista123.com