PHP/MySQL Dev. Primer (1) Establish Env.
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.gz
tar -zxvf nginx-1.2.0.tar.gz
cd nginx-1.2.0
./configure
make
sudo 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.
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
-
分享到:
相关推荐
Rhino_Python_Primer.pdf Forums: The RhinoPython community is very active and offers a wonderful resource for posting questions/answers and fi nding help on just about anything!: ...General References for...
Embedded.Linux.Primer.A.Practical.Real-World.Approach.2006.Prentice-Hall
1. **《C# Primer Plus中文版》** - **下载地址**:[http://download.chinaitlab.com/soft/7990.htm](http://download.chinaitlab.com/soft/7990.htm) - **简介**:本书是一本面向初学者的C#入门书籍,通过丰富的...
9. **《C++ Primer》要点总结(1).pdf**:这本书的摘要提供了C++核心概念的概述,包括类、对象、继承、多态等面向对象编程的关键概念,是深入学习C++的理论依据。 通过这些项目和练习,初学者不仅能学习到C语言和C++...
1. **《钱能 C++ 程序设计教程 第二版》高清PDF版**: - **内容简介**:本书由钱能编写,是一本非常受欢迎的C++入门教程,适合初学者快速掌握C++的基本语法和编程技巧。 - **下载地址**:...
Comprehensive Real-World Guidance for Every Embedded Developer and Engineer This book brings together indispensable knowledge for building efficient, high-value, Linux-based embedded products: ...
#### 1. **C++平台类PDF** - **链接**: [http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=166018](http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=166018) - **简介**: 这本书籍涵盖了C++在不同平台上的...
See the github wiki for a Primer on using JDOM: https://github.com/hunterhacker/jdom/wiki/JDOM2-A-Primer Also see the web site http://jdom.org/downloads/docs.html. It has links to numerous articles ...
[3D数学基础:图形与游戏开发][中文版+英文版+随书源码](3D.Math.Primer.for.Graphics.and.Game.Development).(美)Fletcher.Dunn 本人在阅读过程中发现书中一处错误,为避免误导更多的同学,有兴趣的可参见我的空间...
The.Linux.Kernel.Primer
C++Primer习题解答 http://down.qiannao.com/space/file/yuexingchen2/-4e0a-4f20-5206-4eab/C-002b-002b-0020-0020-00b7C-0020-0020vc/C-002b-002bPrimer-4e60-9898-89e3-7b54-0020.rar/.page C++编程艺术 ...
### 1. 编译器资源 #### Visual Studio 6.0 - **英文企业版 SP6** - 下载地址:`http://www.rayfile.com/files/6f461678-f66b-11dd-bc62-0014221b798a/` - **简介**:Visual Studio 6.0 是一款经典的集成开发...
C++Primer习题解答 http://down.qiannao.com/space/file/yuexingchen2/-4e0a-4f20-5206-4eab/C-002b-002b-0020-0020-00b7C-0020-0020vc/C-002b-002bPrimer-4e60-9898-89e3-7b54-0020.rar/.page C++编程艺术 ...
《C++ Primer 中文第五版》是一本深受程序员喜爱的C++学习书籍,它全面而深入地介绍了C++编程语言的各个方面。这本书以其清晰的解释、丰富的实例和实用的建议,成为了初学者和有经验的程序员提升C++技能的重要参考...
C++Primer习题解答 http://down.qiannao.com/space/file/yuexingchen2/-4e0a-4f20-5206-4eab/C-002b-002b-0020-0020-00b7C-0020-0020vc/C-002b-002bPrimer-4e60-9898-89e3-7b54-0020.rar/.page C++编程艺术 ...
- **简介**:针对C Primer Plus(第5版)中的习题提供了详细答案解析。 - **适用人群**:适合使用该书的学习者检验学习成果。 ### 十六、C语言编程宝典之一 - **链接**:[C语言编程宝典]...
Prentice.Hall.Embedded.Linux.Primer.2nd.Edition
**tuning-primer.sh** 是另一款用于 MySQL 性能调优的脚本工具,它可以全面地分析 MySQL 的性能状况,并提供具体的优化建议。 - **下载与安装**: - **命令**: ```bash [root@localhost ~]# wget ...
C++ Primer结合了Stanley Lippman的实践经验和Josée Lajoie对于ANSI/ISO标准C++的深入理解,此第三版被重新改写,以便更加精确地讲述标准C++的特性和用法。对于C++初学者特别有价值的是一些来自真实世界中的程序...
《C++ Primer Plus》 **链接:** [http://product.dangdang.com/23219736.html#catalog](http://product.dangdang.com/23219736.html#catalog) **简介:** 本书是一本非常受欢迎的C++入门书籍,适合初学者阅读。它...