澳门新浦京app下载配置最新的PHP加MYSQL服务器

经过一个钟头的钻研和设置.达成了新星的 PHP 5.0 + MYSQL 5.0 + WIN二〇〇四.
私有以为依旧有须求写个科目出来.因为众多上边和老版本的不尽相像.
说真话本身也是翻开了数不完钟爱大利语档才消除了比比较多奇怪难点.

=========================

连锁软件均能够在 WWW.SKYCN.NET 下载.

MYSQL 5.0 FOR WINDOWS PHP 5.0 FOR WINDOWS PHPMYADMIN WINDOWS SERVER 2003

=========================

率先安装 MYSQL .本来感觉新本子的装置分界面应该会花哨点.
可是照旧只见老土的海豚.除了安装时间比 4.0 长.当然咯.因为 5.0 比 4.0
体量大相当多.

引入安装在独立的 NTFS 分区上.举个例子小编服务器的 F盘.只放服务器软件. 路线为:
F:MYSQL

下一场进入 F:MYSQLBIN 鼠标双点 winmysqladmin.exe
第1回运维会提示输入一流客商和密码.就输入 root 密码 root
注意啊.若是是对外服务器请设置一级复杂.举个例子 Wjwsfjn29szjwh~mysql
翻译过来就是: 小编叫魏舒芬.今年30周岁到现在未婚.

到这里.MYSQL就安装完成了.倘使不通晓请参谋深空同学的相干小说.

=========================

下边设置 PHP 5.0 其实没什么安装不安装的.解压缩文件.推荐放到 路线为:
F:PHP

到此处就活该步加入关贸总协定协会键步骤了. 首先复制 PHP 目录下的 Php.ini-dist 到
C:Windows 并将文件出名学园勘成为 Php.ini

COPY F:PHPPhp.ini-dist C:Windows Ren Php.ini-dist Php.ini

如果是 WINDOWS 2000 就是: C:WINNT 如果是 WIN9X / 2003 就是: C:Windows

下一场复制 PHP 目录下 DLLS 目录里的享有文件到 SYSTEM32 目录.

COPY F:PHPdlls*.* C:WindowsSystem32

如果是 WINDOWS 2000 就是: C:WINNTSystem32 如果是 WIN9X / 2003 就是:
C:WindowsSystem32

继续.复制PHP目录下 php4ts.dll 文件到 System32 目录里.

COPY F:PHPphp4ts.dll C:WindowsSystem32

=========================

到那边复制专门的学问全方位落成.上边更正 C:WindowsPhp.ini 文件.

请注意.5.0的本子更正与4.0并不完全近似.需求注意的如下.

查找 extension_dir 字串.改革为您 PHP 目录里 extensions 的路线.

; Directory in which the loadable extensions (modules) reside.
extension_dir = F:PHPextensions

有关法定才具资料:

Edit your php.ini file:

You will need to change the extension_dir setting to point to your
php-install-dir, or where you have placed your php_*.dll files. ex:
c:php

If you are using OmniHTTPd, do not follow the next step. Set the
doc_root to point to your webservers document_root. ex: c:apachehtdocs
or c:webroot

Choose which extensions you would like to load when PHP starts, noting
that several extensions are already built into the Windows release, see
the section about Windows extensions for details of the built-in
extensions. You can uncomment the: extension=php_*.dll lines in
php.ini to load these extensions.

Note that on a new installation it is advisable to first get PHP working
and tested without any extensions before enabling them in php.ini.

On PWS and IIS, you can set the browscap.ini to point to:
c:windowssysteminetsrvrowscap.ini on Windows 9x/Me and
c:winntsystem32inetsrvrowscap.ini on NT/2000/XP Server.

More information on the capabilities of browscap can be found here:

Note that the mibs directory supplied with the Windows distribution
contains support files for SNMP. This directory should be moved to
DRIVE:usrmibs (DRIVE being the drive where PHP is installed.)

下一场与 PHP 4.0 分化的是.须求改进 Php.ini 文件里的如下内容: 查找
cgi.force_redirect 字串.暗中认可值为1.将其纠正为0.并注销前边的;号.

即:

; cgi.force_redirect is necessary to provide security running PHP as a
CGI under ; most web servers. Left undefined, PHP turns this on by
default. You can ; turn it off here AT YOUR OWN RISK ; **You CAN
safely turn this off for IIS, in fact, you MUST.** cgi.force_redirect
= 0

切记如上改换的地点.不然PHP 5.0是力无法及运行的.会犹如下提示.

Security Alert! The PHP CGI cannot be accessed directly.

有关法定才能资料:

!NOTE!: Since 4.1.2, the php.ini setting cgi.force_redirect defaults to
1 which effectively prevents the cgi from working within IIS. You need
to set up at least a minimal php.ini file with the following directive:

cgi.force_redirect = 0

If it doesnt work immidiately, make sure you have the php.ini file in
the right place (%SYSTEMROOT%php.ini).

接下去改善 Php.ini 文件有关 MYSQL 5.0 的设置.

查找 [MySQL] 字段内的内容.矫正如下.

mysql.default_port = 3306 // 这里是MYSQL的端口.

mysql.default_host = localhost // 这里是本土主机.

mysql.default_user = root // 这里是客商

mysql.default_password = Wjwsfjn29szjwh~mysql // 这里是密码

修正到那边就足以让 Php 与 MYSQL 关联了. 最终运营 PHP 对 MYSQL 模块帮衬.

查找 extension=php_mysql.dll 字串.删除掉前边的 ; 号

extension=php_mysql.dll

请注意.借使不运行 PHP 对 MYSQL 模块辅助.将不可能使 PHPMYADMIN
通常职业.将唤起:

cannot load MySQL extension, please check PHP Configuration 不能装入
MySQL 扩大,请检查 PHP 的布局。

连锁法定技艺资料:

To connect to a MySQL server, PHP needs a set of MySQL functions called
“MySQL extension”. This extension may be part of the PHP distribution
(compiled-in), otherwise it needs to be loaded dynamically. Its name is
probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the
extension but failed.

=========================

到这边应该就没有非常大主题材料了.若是有安插底工的心上人应该完全能够精晓了.
自个儿在实质上安插的时候也遇上了比超多难题.最后都以恒心询问官方文档得到了撤消.

You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图