php景况安插 php5 mysql5 apache2 phpmyadmin安装与配置_php技巧_脚本之家

1.php版本简单介绍php各版本之间的区分,php版本前面平常常有VC6和VC9、Thread
Safe和Non Thread Safe的分别,VC6正是legacy Visual Studio 6
compiler,正是采纳那个编写翻译器编写翻译的,VC9正是the Visual Studio 2010compiler,就是用微软的VS编辑器编写翻译的,假让你选拔的是Apache只怕其它服务软件,那么选取VC6,选取的是IIS的话,那么请下载VC9
的。Thread Safe 是线程安全,而Non Thread Safe就是非线程安全,
官方并不建议您将Non Thread Safe 应用于坐蓐意况,所以日常选拔Thread
Safe版本的下载就能够了。下载Zip包就足以了。2.php下载,接纳哪个版本下载地址http://windows.php.net/download/,笔者选择的是php-5.3.16-Win32-VC9-x86.zip如果用的是apache1或apache2,请选择vc6版的php如果用的是IIS,你应该选择VC9版的PHPVC6的版本是用Visual
Studio 6编写翻译的,VC9是用Visual Studio
2008编写翻译的,提高了质量和安静,VC9版本须求安装Microsoft 二零零六C++Runtime,下载地址http://www.microsoft.com/en-us/download/details.aspx?id=29,或者安装VC10,下载地址http://www.microsoft.com/download/en/details.aspx?id=8328**3.下载和安装apache**下载地址http://httpd.apache.org/download.cgi,笔者下载的是httpd-2.2.22-win32-x86-openssl-0.9.8t.msiapache安装:在这里主要配置Network
Domain:yourdomain.comServer
Name:www.yourdomain.comEmail:username@126.comApache服务的挤占端口,默以为80端口,你能够依据须要铺排在别的端口,Apache的安装目录你能够利用默许目录或基于要求活动选择设置目录在成功apache服务的设置后,在游览器中输入http://localhost/,出现It's
work!字样,表明Apache服务安装成功了。即便开发银行apache时,报了“以大器晚成种访谈权限分化意的方式做了一个访谈套接字的品尝。
: make_sock: could not bind toaddress 0.0.0.0:80”的荒诞。用netstat
-ano查看80端口已被私吞,平时80端口会被IIS占用。消除措施:展开Apache安装目录\conf\httpd.conf文件,要求改过listen
80–》listent
88在浏览器里输入http://localhost:88即可如果启动apache出错“httpd.exe:
Could not reliably determine the server’s fully qualified domain name,
using 192.168.1.111for ServerName”是因为DNS没布署好. 如果不想计划DNS,
就在httpd.conf中去掉ServerName前的#,修改为 ServerName
127.0.0.1:884.php的安装和布局将php-5.3.16-Win32-VC9-x86.zip解压至d:\phpphp.ini-development配置文件重命名字为php.ini张开php.ini文件,找到如下文本;
On windows:; extension_dir =
“ext”去掉extension_dir前的“;”,修改为extension_dir = “D:/php/ext”
表示钦赐PHP扩充包的求实目录,以便调用相应的DLL文件。由于默许PHP并不补助自动三翻五次Mysql,需开启对应的扩大库效能,比方php_mysql.dll等,找到如下dll文本,去掉后边的”;”extension=php_curl.dllextension=php_gd2.dllextension=php_mbstring.dllextension=php_mysql.dllextension=php_mysqli.dllextension=php_pdo_mysql.dllextension=php_pdo_odbc.dllextension=php_xmlrpc.dll配置php的session作用在利用session功效时,大家亟须配备session文件在服务器上的保留目录,不然不恐怕运用session,我们需求在Windows
7上新建三个可读写的目录文件夹,此目录最佳独立于WEB主程序目录之外,此处笔者在D盘根目录上营造了phpsessiontmp目录,然后在php.ini配置文件中找到;session.save_path
= “/tmp”修改为session.save_path =
“D:/phpsessiontmp”配置PHP的文书上传成效同session雷同,在采取PHP文件上传效能时,大家必必要内定叁个有时文件夹以成功文件上传效能,不然文件上传效能会倒闭,大家依然需求在Windows
7上创立八个可读写的目录文件夹,此处作者在D盘根目录上确立了phpfileuploadtmp目录,然后在php.ini配置文件中找到;upload_tmp_dir
=修改为

php情状的布署,对于生手来讲,相对是生龙活虎件烦事。总会遇到这么那样的主题材料,走超级多弯路。所以几天前非常写了这一个布局文书档案,相信根据以下步骤你势必会中标的。错误的地点也希望各位指正。
越来越多文章 php爱好者站 http://www.phpfans.net本例是在wiondws下
apache2.0.55php5.1.1mysql5.0.19phpmyadmin2.7.0装置与安排以上能源能够在本站下载站http://www.phpfans.net/download.php/下载
/*笔者:作者不是鱼网址:http://www.phpfans.net博客:http://www.phpfans.net/space/index.php/2email:deng5765@163.com\*/**Apache
的安装 1 点击apahce安装包screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134330520.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134330520.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT科雷傲L+Mouse wheel to zoom in/out’;}” border=0> 2
上面3项随意填 apache 监听80
端口。若是iis用了80端口,改正iis端口也许apache端口,避防冲突screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134333421.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134333421.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTPAJEROL+Mouse wheel to zoom in/out’;}” border=0> 3 这里私下认可的是
typical。假设想改正安装路线的话也得以选拔custom,注意安装路线不能够含汉语screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134333562.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134333562.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT安德拉L+Mouse wheel to zoom in/out’;}” border=0> 4
开端设置screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134333178.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134333178.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTMuranoL+Mouse wheel to zoom in/out’;}” border=0> 5
安装到位后在浏览器里打入http://localhost如果可以看到这个页面,证明apache安装成功,已经可以解释静态页面了screen.width\*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134333802.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134333802.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” border=0>
MySQL
的安装 1 点击mysql安装包screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134334711.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134334711.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTPAJEROL+Mouse wheel to zoom in/out’;}” border=0> 2
默许是Typical,尽管想更正安装路线的话也得以选拔custom.注意:安装mysql的路线中,不可能含有汉语!screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134334786.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134334786.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT昂科威L+Mouse wheel to zoom in/out’;}” border=0> 3
安装起来screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134334901.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134334901.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTQX56L+Mouse wheel to zoom in/out’;}” border=0> 4
跳过注册screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134334493.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134334493.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTENCOREL+Mouse wheel to zoom in/out’;}” border=0> 5
是还是不是未来就铺排 mysql。也可以之后在初阶菜单的configuration wizard
进行陈设这里是后天展开配置screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134335500.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134335500.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” border=0> 6 选择Detailed
Configuration,点Next继续screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134335170.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134335170.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTTiggoL+Mouse wheel to zoom in/out’;}” border=0> 7
下边那么些选项是选择mysql应用于何种类型,第风流浪漫种是开辟服务器,将只用尽量少的内存,第三种是常见WEB服务器,将使用在那之中数量内部存款和储蓄器,最生平机勃勃种是那台服务器上面只跑mysql数据库,将撤消全体的内部存款和储蓄器。顾客可依照自个儿的必要,选取选项。这里只选用开采服务器,点Next继续screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134335825.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134335825.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT奇骏L+Mouse wheel to zoom in/out’;}” border=0> 8
上面是选择数据库用处,第风流潇洒种是多职能用场,将把数据库优化成很好的innodb存款和储蓄类型和高成效的myisam存款和储蓄类型,第三种是只用于事务管理类型,最棒的优化innodb,但还要也辅助myisam,独有myisam才协理全文索引最终生机勃勃种是非事务处理项目,相符于轻易的应用,唯有不支持专业的myisam类型是被援助的。平日选拔第后生可畏种多效果与利益的。screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134335511.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134335511.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT奥迪Q3L+Mouse wheel to zoom in/out’;}” border=0> 9
上面是筛选InnodDB的数目贮存地点,日常暗许好了,无需改造screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134336911.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134336911.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT路虎极光L+Mouse wheel to zoom in/out’;}” border=0> 10
下边是采取mysql允许的最地拉这接数,第黄金年代种是最大十八个三回九转并发数,第二种是最大500个并发连接数,最终风流倜傥种是自定义,你能够依据本人的内需选取。这里选取第三个screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134336287.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134336287.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTLANDL+Mouse wheel to zoom in/out’;}” border=0>
11底下是选拔数据库监听的端口,日常暗许是3306,若是改成别的端口,以往连接数据库的时候都要记住修改的端口,不然不可能三番一次mysql数据库,比较辛劳,这里不做纠正,用mysq的暗中认可端口:3306screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134336807.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134336807.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT宝马X5L+Mouse wheel to zoom in/out’;}” border=0> 12
这一步设置mysql的默许编码,暗中认可是latin1,也是标准的编码screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134336376.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134336376.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT奇骏L+Mouse wheel to zoom in/out’;}” border=0> 13
当然大家得以依赖须要,把它改成gb2312或gbk。编码是本子4.1以上引进的。借使要用原来数据库的数量,最CANON分明原本数据库用的是何等编码,如若这里设置的编码和原先数据库数据的编码不一致等,在选用的时候也许会现身乱码.提出利用latin1标准编码screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134337691.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134337691.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT瑞虎L+Mouse wheel to zoom in/out’;}” border=0> 14
这一步是是还是不是要把mysql设置成windows的劳动,平日选用设成服务,那样之后就能够透过劳务中运维和关闭mysql数据库了。推荐:上边包车型地铁复选框也勾选上,这样,在cmd形式下,不必非到mysql的bin目录下实践命令。在命令行下咨询能够试行文书screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134337450.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134337450.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTEscortL+Mouse wheel to zoom in/out’;}” border=0> 15
这一步是安装mysql的最棒客商密码,那么些最好客商非常重要,对mysql具备全方位的权能,请设置好并切记一级客户的密码,上面有个复选框是筛选是不是同意远程机器用root客户连接到您的mysql服务器上边,假设有那一个供给,也请勾选。screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134337855.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134337855.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” border=0> 16 点击
Executescreen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134338697.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134338697.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTPAJEROL+Mouse wheel to zoom in/out’;}” border=0> 17 到这一步
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134338325.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134338325.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT陆风X8L+Mouse wheel to zoom in/out’;}” border=0> 18
我们得以起来利用mysql了,展开起头菜单的 mysql Command line
Client,输入密码现身那些分界面表达mysql已经设置好了screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134338105.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134338105.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT智跑L+Mouse wheel to zoom in/out’;}” border=0>
只怕现身的标题:
假如在第15步,你现身的分界面是像上面那样screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134338728.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134338728.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTEscortL+Mouse wheel to zoom in/out’;}”
border=0>有多少个输入密码的地点,则有相当大可能率你是在原来根底上设置的。你在率先个文本框输入原本root的密码,后边三个文本框输入root的新密码,点击Next功底,现身下图screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134339444.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134339444.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT瑞虎L+Mouse wheel to zoom in/out’;}” border=0>
给你推荐二种消除办法:1、 点Retry,重试;2、
再运营叁回设置,见到有关“移除原设置”的选项,接收移除,然后在重复安装。3、
重装。重装注意事项:最棒删除原本的具有文件,必要的话,能够清一投注册表,假如你机器上并未有其余mysql相关的前后相继。况兼显明记得不要保留原有的my.ini文件。还或者有就是去除原本安装路线下的公文,并删除数据目录下边包车型地铁ibdata1文件.
越多小说 php爱好者站 http://www.phpfans.net
PHP 的安装
由于php是四个zip文件,安装较为轻便解压就行。把解压的
php5.1.1-Win32重命名叫 php5。并复制到C盘目录下。即安装路线为 c:\php5
1找到php目录下的 php.ini-dist或 php.ini.recommended文件,重命名为php.ini并复制到系统盘的windows目录下.
2再把php目录下的php5ts.dll,libmysql.dll复制到目录
c:\windows\system32下。要是没把libmysql.dll复制到system32下,在重启apache时恐怕会现身如下警示screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134339956.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134339956.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” border=0>
3把php5\ext目录下的php_gd2.dll,php_mysql.dll,php_mbstring.dll文件复制到c:\windows\system32下
若无加载 php_gd2.dllphp将不可能管理图像。未有加载php_mysql.dll
php将不援救mysql函数库php_mbstring.dll在前面使用phpmyadmin时辅助宽字符
全数东武汉装到位后大家再张开布署
配置php并关联MySQL
以下内容跟帖回复才干观看==============================展开c:\windows\php.ini文件
1 设置扩张路线查找 extension_dir 有这么生机勃勃行extension_dir =
“./”将此行改成extension_dir = “C:\php5\ext”
其中C:\php5是你安装php的路线。路线不科学将十分的小概加载dll
(注意:有个别php版本是 ;extension_dir = “./” 要把前边的支行去掉)2 寻觅extension
extension=php_mbstring.dllextension=php_gd2.dllextension=php_mysql.dl
把地方3项后面的分集团去掉,这样apache运行时就足以加载那个dll了当然后边大家也把这个dll复制到system32下了l
3 设置会话保存路线查找session.save_path 有这么意气风发行; session.save_path
= “N;/path”在这里行后加盟意气风发行session.save_path = “C:\WINDOWS\Temp”
保存到您的权且目录下,这里完全能够保留到windows不经常目录Temp下 4
还会有相比较值得注意的是 short_open_tag 默许是Off的也正是说
php不可能利用短标识如 ?>
必得运用由于短标志使用方便,并且非常多主次也是用不久标志来写,如discuz等即使不把
short_open_tag 改成On将现身的症状将很难判定是上边原因,这里提出矫正查找short_open_tag = Off改为short_open_tag = On 5 是还是不是出示错误
display_errors 出于安全性思谋,display_errors 也默感觉Off就是说在调节和测验时,如若php代码有误,就只现身二个空白页。而不会来得出错原因和失误行数。那样调节和测验起来将特别困苦,提出依据本身要求改良查找display_errors
= Off (注意不是 ; – display_errors = Off
[Security])改成display_errors = On 6
register_globals出于安全性思索它暗中同意也是Off当register_globals=Off的时候,下三个主次选择的时候理应用$_POST[‘user_name’]和$_POST[‘user_pass’])
当register_globals=On的时候,下多个程序能够一向运用$user_name和$user_pass来接纳值。
更详实的认证请参谋http://www.phpfans.net/bbs/archiver/?tid-234.htm
建议根据本人供给修正 7
php5时差难题时间距离八钟头为什么吗?PHP5种类版本新扩张了时区设置,默以为Green威治时间,与华夏大街小巷的东8区刚巧相差8个时辰搜索date.timezone有这么风华正茂行;date.timezone
=将;去掉,改成date.timezone = PRC 此中PRC:People’s Republic of China
中国,
更详细化解办法请参照他事他说加以调查本论坛的http://www.phpfans.net/bbs/archiver/?tid-60.html
越来越多作品 php发烧友站 http://www.phpfans.net
Apache整合PHP 1
从起头菜单打开apache配置文书档案,如图screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor=’hand’; this.alt=’Click
here to open new window\nCTRL+Mouse wheel to zoom in/out’;}”
onclick=”if {return true;} else
{window.open(‘/upload/20061117134339950.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134339950.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT奥迪Q7L+Mouse wheel to zoom in/out’;}” border=0> 2
更正网址根目录查找 DocumentRoot犹如此风流倜傥行DocumentRoot”C:/Program
Files/Apache
Group/Apache2/htdos”这就是你网址的根目录,你能够改善,也足以用暗许的.尽管改,还要改进上边那项,不然恐怕会晤世
403 错误查找This should be changed to whatever you set DocumentRoot
to在它上面两行有把上面两项的 C:/Program Files/Apache Group/Apache2/htdos
改成你想要的目录3 查找DirectoryIndex index.html
index.html.var改正成DirectoryIndex index.html index.html.varindex.php
那样index.php 可以出任暗许页面了 4 Apache中模块化安装php查找 #
LoadModule foo_module modules/mod_foo.so在此行后投入意气风发行LoadModule
php5_module
C:/php5/php5apache2.dll在那之中C:/php5/php5apache2.dll是您安装php的相应路线.注意不要把php5apache2.dll和php5apache.dll混淆.php5apache.dll只适用于apache
版本1的.注意:
PHP5压缩包里的php5apache2.dll只适用于apache2.0.*版本,如果是2.2.*上述版本,就大概会产出”Cannot
load C:/php/php5apache2.dll into server: The specified module could not
be found.”可能:”The requested operation has
failed”的情状.关于这一个难点的减轻形式能够参见本论坛的http://www.phpfans.net/bbs/viewt
… &extra=page%3D15 查找 AddType application/x-gzip .gz .tgz
在这里行后加盟意气风发行AddType application/x-httpd-php .php
那样apache就足以分解php文件了 到此处配置中央完毕了
########重启apache######### 在网址根目录下开创贰个phpinfo.php 文件
在浏览器张开http://localhost/phpinfo.php如果出现如下信息,则说明php已经配置好了
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134339543.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134339543.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT锐界L+Mouse wheel to zoom in/out’;}”
border=0>上面再测验php和mysql数据库的关联
在网站根目录下开创贰个test.php 文件CODE:[Copy to
clipboard]“在浏览器展开
http://localhost/test.php如果输出成功,则说明大功告成了.
安装
phpMyAdmin* 下载获得 phpMyAdmin-2.7.0.zip,将其解压到
你网址根目录下仁同一视命名字为phpMyAdmin,找到并开采 config.defaut.php
(有个别版本是config.inc.php恐怕 libraries/config.default.php)做以下更正:
1 查找 password 好似下两行$cfg[‘Servers’][$i][‘user’] = ‘root’;
$cfg[‘Servers’][$i][‘password’] = ”;
把您的mysql密码填到$cfg[‘Servers’][$i][‘password’] = ”;
单引号里边 2 寻找 $cfg[‘PmaAbsoluteUri’],将其安装为 phpMyAdmin
目录路线,如:http://localhost/phpMyAdmin/
上面这两项项根据本身要求的编码改正3 搜索$cfg[‘DefaultLang’],将其设置为 zh-gb2312 ;4 寻觅$cfg[‘DefaultCharset’],将其安装为 gb2312 ;
展开浏览器,输入:http://localhost/phpMyAdmin/,Apache 和 MySQL
均已运转,假如出现如下页面则phpmyadmin安装到位并得以利用了screen.width\
0.7)
{this.resized=true; this.width=screen.width*0.7;
this.style.cursor=’hand’; this.alt=’Click here to open new
window\nCTRL+Mouse wheel to zoom in/out’;}” onclick=”if {return true;}
else {window.open(‘/upload/20061117134340474.jpg’);}” alt=””
src=”http://files.jb51.net/upload/20061117134340474.jpg
onload=”if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.alt=’Click here to open new
window\nCT君越L+Mouse wheel to zoom in/out’;}” border=0> phpMyAdmin
的现实性职能,请慢慢熟悉,这里不再赘述。==============================
越来越多小说 php爱好者站 http://www.phpfans.net

upload_tmp_dir =
“D:/phpfileuploadtmp”php暗中认可上传文件大小为2M,upload_max_filesize =
2M,能够依靠自个儿的渴求将其修正为upload_max_filesize = 8M

时区设置改正date.timezone,不然在实行phpinfo时date部分会报错:Warning:
phpinfo() [function.phpinfo]…,在php.ini配置文件中找到;date.timezone
=修改为date.timezone =
Asia/Shanghai5.布局Apache扶植PHP,所以还亟需在Apache配置文件中完结相应的PHP配置打开d:/apache/modules/mod_vhost_alias.so在#LoadModule
vhost_alias_module 下添加LoadModule php5_module
“c:/php/php5apache2_2.dll”PHPIniDir “c:/php”AddType
application/x-httpd-php .php .html
.htm大家在PHP目录下能够见见几个php5apache的DLL文件,由于大家应用的是Apache2.2.15,所以大家本来供给运用php5apache2_2.dll,接着内定PHP的安装目录以至施行的前后相继扩大名。再度打开apache的httpd.conf
修改DocumentRootDocumentRoot “C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs”校正为DocumentRoot
“D:/PHPWeb”改良Directory改善为改革具体的index文件前后相继顺序,由于配备了PHP功效,当然需求index.php优先实践DirectoryIndex
index.html改过为DirectoryIndex index.php index.html开启扶植rewrite
module#LoadModule rewrite_module modules/mod_rewrite.so
去掉前边#,修改为 LoadModule rewrite_module
modules/mod_rewrite.so6、重启Apache服务器从那之后,在Apache服务器上PHP情况安插职业就完事了,你只须要在D:/PHPWeb目录下新建二个PHP文件,写入复制代码 代码如下:

接下来在浏览器中输入http://localhost:88,就可以看到PHP的具体配置页面了,代表在Window
7上PHP景况安顿专门的工作就是完毕了。

7.测验数据库连接新建testdb.php复制代码
代码如下:若现身普通话乱码,改正php.ini配置 default_charset = “utf-8”

8.假如你的如上安顿太复杂,那么能够用wamp傻子化安装包,下载地址http://www.wampserver.com因为WAMPSESportageVE福睿斯2.2E里就饱含了

Apache 2.2.22 – Mysql 5.5.24 – PHP 5.3.13 XDebug 2.1.2 XDC 1.5
PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 1.0

作者在谐和计算机上用wamp开掘即使在PhpMyadmin建数据库和表时设置里UTF-8依然现身乱码,消除办法是在mysql_connect()之后加盟复制代码 代码如下:mysql_query;就能够化解中文乱码

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图