PHP/MySQL Dev. Primer (1) Establish Env.
来源:互联网 发布:路基压实度灌砂法软件 编辑:程序博客网 时间:2024/05/17 22:26
PHP/MySQL Dev. Primer (1) Establish Env.
- Author: 柳大·Poechant
- Blog: Blog.CSDN.net/Poechant
- Email: zhongchao.ustc@gmail.com
- Date: May 15th, 2012
1 Install Web Server
Usually, 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 Database
ignored
3 Install Script Lang. Dev. Env.
ignored
4 Integrated Installation Tools
MAMP: 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 World
6.1 PHP
<!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php $myvar = "Hello World, PHP"; echo $myvar; ?> </body></html>
6.2 MySQL
create database testdb;create table example ( id int, data varchar(100));insert into example values ( 1, 'Hello World, MySQL');select * from example;
-
转载请注明来自柳大的CSDN博客:Blog.CSDN.net/Poechant
-
- PHP/MySQL Dev. Primer (1) Establish Env.
- Start PHP + MySQL dev!
- env of ubuntu dev
- ionic dev env
- Establish a web server [php-mysql-apache] on Windows XP
- integrated dev into product env.
- php环境变量:$ENV
- wndows build object c dev env
- PHP Dev
- #!/usr/bin/env php 介绍
- env
- env
- env
- env
- MySQL: Unable to establish SSL connection.
- 配置 dev-php
- PHP dev note
- jint* intArr = (*env)->GetIntArrayElements(env,arr,1);报错
- 交换两个数据的值而不采用新的存储单位(C++实现)
- (莱昂氏unix源代码分析导读-2) PDP11/40系统简介(上)
- C#里的async和await
- 关于waitForCondition导致死锁的问题
- 开源社区
- PHP/MySQL Dev. Primer (1) Establish Env.
- Mysql,Oracle,Sqlserver数据库连接
- WCF大文件断点下载示例
- 三个超强JSP防SQL注入攻击方法
- Android常用RGB值以及中英文名称
- C++基础--友元
- checked全选,全不选
- Struts2 结果类型
- 稳定排序和不稳定排序