php/mysql dev. primer (1) establish env. author: 柳大·poechant blog:blog.csdn.net/poechant email: zhongchao.ustc@gmail.com date: may 15 th , 2012 1 install web server usually, people are willing to use apache as the web server of their si
php/mysql dev. primer (1) establish env.author: 柳大·poechantblog: blog.csdn.net/poechantemail: zhongchao.ustc@gmail.comdate: may 15th, 20121 install web serverusually, people are willing to use apache as the web server of their sites. honstly, i have to say apache is an excellent web server. however, you also have to concede nginx is superstar in this realm. perhaps you have heard nginx could perform better than apache for dynamic pages.
based on the high-performance of nginx, it is necessary to introduce how to set up nginx instead of apache or any other web server software.
wget http://nginx.org/download/nginx-1.2.0.tar.gztar -zxvf nginx-1.2.0.tar.gzcd nginx-1.2.0./configuremakesudo make install
then nginx has been install into /usr/local/nginx directory. what’s next? configuration. the following configuration is aimed at a php web site.
//todo
2 install databaseignored
3 install script lang. dev. env.ignored
4 integrated installation toolsmamp: mac apache mysql php. eh, i’m fond of this one :)
wamp: windows apache mysql php
xampp: windows/macosx/linux/solaris apache mysql php/perl/python
5 basic configuration for the integrated env.apache document root or nginx location
6 hello world6.1 phphtml> head> meta http-equiv=content-type content=text/html; charset=utf-8> title>title> head> body> body>html>
6.2 mysqlcreate database testdb;create table example ( id int, data varchar(100));insert into example values ( 1, 'hello world, mysql');select * from example;
-
blog.csdn.net/poechant
-