php环境搭建,php搭建1. 准备所需工具:1) windows7 x64
2) php5.5 vc11 x64 thread safe 浏览
3) apache httpd2.4 浏览
4) mysql5.6 浏览
5) phpmyadmin4.4.1 浏览
2. 安装2.1 安装php1) 将php-5.5.23-win32-vc11-x64.zip解压到d:\program_files\php5.5
2) 将d:\program_files\php5.5和d:\program_files\php5.5\ext加入环境变量
3) 拷贝php.ini-production至php.ini
4) 修改d:\program_files\php5.5\php.ini文件
修改 ; extension_dir = extextension_dir = d:/program_files/php5.5/ext修改 ;extension=php_mbstring.dllextension=php_mbstring.dll (php多字节字符串扩展)修改 ;extension=php_mysql.dllextension=php_mysql.dll修改 ;extension=php_mysqli.dllextension=php_mysqli.dll
2.2 安装apache1) 将httpd-2.4.12-win64-vc11.zip解压到d:\program_files\apache24
2) 用记事本打开d:\program_files\apache24\conf并修改
修改 serverroot c:/apache24
serverroot d:/program_files/apache24
修改 #servername www.example.com:80servername www.example.com:80修改 documentroot c:/apache24/htdocsdocumentroot d:/program_files/apache24/htdocs修改 修改 directoryindex index.htmldirectoryindex index.html index.php index.htm修改 scriptalias /cgi-bin/ c:/apache24/cgi-bin/scriptalias /cgi-bin/ d:/program_files/apache24/cgi-bin/
行末添加
addtype application/x-httpd-php .php .html .htm
loadmodule php5_module d:/program_files/php5.5/php5apache2_4.dll
phpinidir d:/program_files/php5.5
3) 安装并启动apache服务(需要使用管理员权限)
d:\program_files\apache24\bin\httpd -k install
net start apache2.4
4) 在浏览器中输入 http://localhost:80
it works!
2.3 安装mysql1) 将mysql-5.6.24-winx64.zip解压到d:\program_files\mysql5.6
2) 拷贝my-default.ini至my.ini,并修改
# for advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** do not edit this file. it's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of mysql.
[mysqld]
# remove leading # and set to the amount of ram for the most important data
# cache in mysql. start at 70% of total ram for dedicated server, else 10%.
# innodb_buffer_pool_size = 128m
# remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# these are commonly set, remove the # and set as required.
basedir = d:/program_files/mysql5.6
datadir = d:/program_files/mysql5.6/data
port = 3306
server_id = 1
# remove leading # to set options mainly useful for reporting servers.
# the server defaults are faster for transactions and fast selects.
# adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128m
# sort_buffer_size = 2m
# read_rnd_buffer_size = 2m
sql_mode=no_engine_substitution,strict_trans_tables
3) 启动mysql
d:/program_files/mysql5.6/bin/mysqld.exe --console
4) 登陆mysql数据库,并创建用户
mysql -u root
create user 'devlop'@'localhost' identified by '123456';
grant all privileges on *.* to 'devlop'@'localhost' with grant option;
更多mysql用户管理点击这里
5) 安装并启动mysql服务(需要使用管理员权限)
mysqld --install mysql
net start mysql
2.4 安装phpmyadmin1) 将phpmyadmin-4.4.1.1-all-languages.zip解压到d:\program_files\apache24\htdocs\phpmyadmin
2) 在浏览器输入http://localhost:80/phpmyadmin就可登录mysql了。
有问题直接联系qq:783713515
http://www.bkjia.com/phpjc/985693.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/985693.htmltecharticlephp环境搭建,php搭建 1. 准备所需工具: 1) windows7 x64 2) php5.5vc11 x64 thread safe浏览 3) apache httpd2.4 浏览 4) mysql5.6浏览 5) phpmyadmin4.4.1 浏览 2. 安装...
