PHP Development Environment PHP Training tutorial

Source: Internet
Author: User
Tags ldap php development environment php mysql xsl install redis


PHP development Environment Brother even PHP training small compiled as follows:

Window :

1, XAMPP

Https://www.apachefriends.org/index.html

2, Wampserver

http://www.wampserver.com/

 Linux

CentOS Installation apache,mysql,php Environment

yum-y install httpd php mysql mysql-server php-mysql php-devel mod_ssl mod_perl mod_auth_mysql php-gd php-xml Php-mbstrin G Php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql

This is the default version of the system, if you want to upgrade to a higher level, for example php5.6 can use the command:

Update Source:

Centos/rhel 7.x:

RPM-UVH https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

RPM-UVH https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Centos/rhel 6.x:

RPM-UVH https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

RPM-UVH https://mirror.webtatic.com/yum/el6/latest.rpm

Remove the previously installed PHP

Yum Remove Php-common

Yum install php56w php56w-mysql php56w-dom php56w-gd php56w-bcmath php56w-mbstring php56w-ldap PHP56W-WDDX Php56w-xmlreader php56w-xmlrpc php56w-xmlwriter php56w-xsl php56w-xsl php56w-devel

Apache,mysql service startup and shutdown commands

Service httpd Start

Service httpd Stop

Service MySQL Start

Service MySQL Stop

php56-* available extension references are here:

https://webtatic.com/packages/php56/

Mac

Mac OS X has built-in Apache and PHP, so it's easy to use.

 Terminal operation:

sudo apachectl start

installation of MySQL

Visit MySQL's website and you'll see a "download" click under "MySQL Community Server" on the page.

Common Extended Installation

Redis

Under CentOS:

PECL installation please see: https://blog.iw3c.com/archive/994/

PECL Install Redis

echo extension=redis.so >>/etc/php.ini

If php.php is not in the default location, via Php-i | grep "PHP.ini" to see where the php.ini is located.

Window: Go to Https://pecl.php.net/package/redis to download the latest DLL package, put it in the Ext directory under the PHP file, or add the extension more intelligently through the integrated environment

Mongo

Under CentOS:

PECL Install MONGO

echo extension=mongo.so >>/etc/php.ini

Memcached

Under CentOS:

PECL Install memcached

echo extension=memcached.so >>/etc/php.ini


PHP Development Environment PHP Training tutorial

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.