PHP's development environment

Source: Internet
Author: User
Tags php development environment file transfer protocol open source cms
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.