History of 1.PHP:
1994 Rasmus Lerdorf was created in Perl, followed by C rewrite;
1995 Personal Home Page tools (PHP tools) to publish PHP1 and PHP2;
At the end of 1996 there were 15,000 websites using PHP;
1997 Zeev Suraski and Andi Gutmans rewrite PHP parser and renamed Php:hypertext preprocessor;
1998 officially released PHP3;
1999 established Zend Technologies Company;
2000 released PHP4;
2004 released PHP5;
Advantages of 2.PHP:
(1) Simple syntax
(2) Low learning costs
(3) High development efficiency
(4) Cross-platform
(5) Easy to develop and deploy
(6) Open source framework is very rich (such as: thinkphp)
(7) Open source CMS system is very rich (such as: Joomla, Wordpress)
(8) The Open source website system is very rich (for example: DISCUZX)
3.PHP related noun explanation
(1) Linux
Server operating System
(2) Cygwin
Simulating the environment under Linux under Windows
(3) Apache httpd
Web server
(4) Nginx
Web server
(5) Mysql
Database
(6) Xampp
Integrate Web servers, databases, and PHP to quickly build a development environment
(7) Eclipse PDT
Ide
(8) Zendstudio
Ide
(9) Phpstorm
Ide
(10) Ftp
File Transfer Protocol
(11) Ssh
Connect Server command
(12) Scp
Upload and download file commands
4.PHP Development Environment: (Build lamp environment under Unbuntu server)
First we can see how the following lamp works:
Note: Curd means to change the database and delete
Install Apache:
sudo apt-get install apache2
Apache2-v
Install PHP:
sudo apt-get install php5
Php5-v
Check if Apache has loaded the libphp5.so package:
Cat/ect/apache2/mods-enabled/php5.load
If the terminal prints LoadModule php5_module/usr/lib/apache2/modules/libphp5.so The instructions have been loaded OK.
Install MySQL:
sudo apt-get install Mysql-server
The password for the database root user needs to be set during the installation process.
Install PHP5 support MySQL module:
sudo apt-get install Php5-mysql
Check whether the support MySQL module is complete:
Cat/etc/php5/mods-available/mysql.ini
If the terminal print extension=mysql.so instructions are already installed OK.
To restart MySQL:
sudo service MySQL restart
To restart Apache:
sudo service apache2 restart
The installation is complete!
Other installation methods:
1. Once command line installs all required packages:
sudo apt-get install apache2 php5 mysql-server php5-mysql
2. Use Tasksel to install all of the required packages:
sudo tasksel install Lamp-server
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.