PHP/MySQL Dev. Primer (1) Establish Env.
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.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.
//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
-
相關文章
- C++ Primer Plus隨記1C++
- Objective-C Primer(1)Get started!Object
- PHP1:在Windows上安裝和配置PHP,Apache和MySQLPHPWindowsApacheMySql
- mysql檢測工具tuning-primer.shMySql
- 【PHP】Php連結mysqlPHPMySql
- PHP和mySQL的字符集編碼問題(1)PHPMySql
- [php]php總結(1)PHP
- OpenRTMFP/Cumulus Primer(17)AMF解析之AMFReader(續1)
- OpenRTMFP/Cumulus Primer(5)CumulusServer啟動流程分析(續1)Server
- OpenRTMFP/Cumulus Primer(1)入門介紹與部署CumulusServerServer
- MySQL Delete PHPMySqldeletePHP
- PHP和MySQLPHPMySql
- 1分鐘完美安裝最新CentOS+Nginx+PHP-FPM+MySQLCentOSNginxPHPMySql
- failed to establish dependency between database GERP and diskgroup resourceAIDatabase
- Mysql效能檢測指令碼tuning-primer.sh 使用MySql指令碼
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- 關於The Network Adapter could not establish connection。APT
- Step 2: Establish the Database Administrator Authentication Method (60)Database
- [php]mysql操作流程PHPMySql
- php mysqli操作 mysqlPHPMySql
- Erlang Primer (1) Mac OS X 上配置 Erlang 開發環境Mac開發環境
- MySQL(1)MySql
- 【PHP基礎】1PHP
- php學習(1)PHP
- php總結_1PHP
- PHP & Java(1) (轉)PHPJava
- [PHP]XXE 1PHP
- A Hadoop PrimerHadoop
- PHP Mysql support: 是mysql 還是mysqlnd?PHPMySql
- MySQL-where 1=1MySql
- PHP、MeriaDB(MySQL)PHPMySql
- mac os nginx php mysqlMacNginxPHPMySql
- apache+mysql4+phpApacheMySqlPHP
- C++primer1-7章知識點總結——sizeof運算子C++
- Redis Primer(1)基於JedisPool的Redis hset併發效能測試Redis
- PHP NG (PHP 5.7) 效能比 PHP 5.6 提升近 1 倍PHP
- 1、我的PHP之路PHP
- SQLDeloper IO 錯誤: The Network Adapter could not establish the connectionSQLAPT