標籤:ati .dll png ima read 添加 extension ges apach
1.Apache
:http://httpd.apache.org/download.cgi
下載之後進入CMD,/Apache/bin/httpd.exe -k install 進行安裝
提示安裝成功就行
如果test出錯重啟下apache就行
httpd -k stop
httpd -k start
httpd -k restart
2.PHP
進入官網下載PHP
Non Thread Safe 一直報錯不能載入php7_module
修改apache的conf
添加
LoadModule php7_module D:/PHP/php7apache2_4.dll
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps
PHPIniDir "D:/PHP"
修改php.ini(沒有的話複製php.ini-development)
extension_dir = "d:\PHP\ext"
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
修改之後重啟apache
3.mysql
:http://dev.mysql.com/downloads/
複製my-default.ini重新命名為my.ini
並且修改
basedir = "D:\mysql"
datadir = "D:\mysql\data"
修改結束後修改環境變數path
然後執行
mysqld --initialize-insecure --user=mysql
這句會執行安裝,並且初始化data檔案夾
net start mysql # 啟動mysql
windows下搭建PHP環境