标签:
PHP集成开发环境有很多,如XAMPP、AppServ......只要一键安装就把PHP环境给搭建好了。但这种安装方式不够灵活,软件的自由组合不方便,同时也不利于学习。
一,准备——下载所需软件
1,Apache http://www.apachehaus.com/cgi-bin/download.plx
2,PHP http://windows.php.net/index.php
3,MySQL
PHP要选择thread safe 下载
二,开始安装并配置
1,PHP,Apache解压到选择的目录
2,配置Apache
在APache目录下的conf里编辑httpd.conf
在38行左右修改 Define SRVROOT "D:/2016/Apache24"
在75行左右添加
#LoadModule access_compat_module modules/mod_access_compat.so #PHP7 support LoadModule php7_module "D:/2016/PHP7/php7apache2_4.dll" AddType application/x-httpd-php .php .html .htm PHPIniDir "D:/2016/PHP7"
3,配置PHP
复制PHP目录下的php.ini-development并修改为php.ini
然后编辑php.ini;
; On windows: extension_dir = "D/2016/PHP7/ext"
;extension=php_bz2.dll extension=php_curl.dll ;extension=php_fileinfo.dll extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll extension=php_mbstring.dll extension=php_pgsql.dll ;extension=php_shmop.dll extension=php_xmlrpc.dll ;extension=php_xsl.dll
Centos7 通过yum安装mysql
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server -y
# service mysqld status看下是stop状态,执行service mysqld start启动
标签:
原文地址:http://www.cnblogs.com/ifree-x/p/5375087.html