Php configuration environment on windows server 2008 64-bit server

 1. Install windows2008 R2 46 bit 

        2008 R2 installation key step online installation instructions a lot like that. In some Nanchang website building company 100 permanent network engineer is not as detailed. The key is to choose the right deployment of practical applications.  

  

   2. Install IIS

       Now windows or related software components installed more easily introduced in some not long on, he took the focus.  

    3. Install V11

          Download: http://www.microsoft.com/zh-CN/download/details.aspx?id=30679

       File name: vcredist_x64.exe

       If this is not properly installed, or installed incorrectly, it has been shown to be 500 errors. 4. Install CGI

 

      4. Install PHP

        Download: http://windows.php.net/download/  
       use IIS configuration, so the download VC11 x64 Non Thread Safe version (2014-Jun-25 23:06:26)
       will PHP5.5.14 extract to D: folder name It is: php
       installation: PHPManagerForIIS-1.2.0-x64.msi 
       Download: http://www.phpmanager.codeplex.com/releases/view/69115
       configuration associated with the PHP CGI allows IIS7.5 support PHP
       (1) installation. phpmanager  

       . (2) After Bahrain, restart IIS which can be seen:

      (3).双击PHP Manager 开始注册PHP路径.
      选择PHP 文件中的php-cgi.exe

 

      点击 Check phpinfo() 若能正常运行,则PHP配置完成.

   64位Mysql5.6安装方法及注意事项


        安装方法及注意事项:
      下载地址:http://dev.mysql.com/downloads/file.php?id=452188
      将mysql 解压到 C: 文件夹名为:mysql

      1添加环境变量 变量名:MYSQL_HOME

      变量值:C:\ mysql
      即为mysql的自定义解压目录。

 
 

       再在Path中添加  %MYSQL_HOME%\bin
     注意前加上分号;表示结束前语句.

 
 

      2. 注册windows系统服务

        将mysql注册为windows系统服务
        操作如下:运行àcmd 进入DOS
        1)从控制台进入到MySQL解压目录下的 bin 目录下:
        C:\Users\Administrator>cd\
        C:\>cd C:\mysql>cd bin
        2)输入服务安装命令:
        mysqld install MySQL --defaults-file="C:\mysql\my-default.ini"
        安装成功后会提示服务安装成功。
        注:defaults-file 前面的――不能省略,否则启动时提示:发生系统错误 ,若my-default.ini文件在MySQL解压后的根目录下,如果没有,可从其他地方中获取。

        将mysql注册为windows系统服务
        操作如下:运行àcmd 进入DOS
        1)从控制台进入到MySQL解压目录下的 bin 目录下:
        C:\Users\Administrator>cd\
        C:\>cd C:\mysql>cd bin
        2)输入服务安装命令:
        mysqld install MySQL --defaults-file="C:\mysql\my-default.ini"
        安装成功后会提示服务安装成功。
        注:defaults-file 前面的――不能省略,否则启动时提示:发生系统错误 ,若my-default.ini文件在MySQL解压后的根目录下,如果没有,可从其他地方中获取。

 
 

        移除服务命令为:mysqld remove

      3启动MySQL服务 

      启动服务命令为:net start mysql

 

      4.4修改 root 账号的密码

 
      刚安装完成时root账号默认密码为空,此时可以将密码修改为指定的密码。如:123456
      c:>mysql –u root –p
      enter password   //密码为空,直接回车
      mysql>show databases; 
      mysql>use mysql;
      mysql>UPDATE user SET password=PASSWORD("654321") WHERE user='root';

      刚安装完成时root账号默认密码为空,此时可以将密码修改为指定的密码。如:123456
      c:>mysql –u root –p
      enter password   //密码为空,直接回车
      mysql>show databases; 
      mysql>use mysql;
      mysql>UPDATE user SET password=PASSWORD("654321") WHERE user='root';

      mysql>FLUSH PRIVILEGES;

      mysql>QUIT

      从phpmyadmin中导出mysql文件,后缀名为sql,并将sql文件导入服务器的mysql

    

Guess you like

Origin www.cnblogs.com/ydwzhang/p/10987664.html