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