Home >php教程 >php手册 >apache mysql php5配置

apache mysql php5配置

WBOY
WBOYOriginal
2016-06-06 20:01:381104browse

以下是出现Fatal error: Call to undefined function mysql_connect()错误的方式,现在公布解决方法: 1.将libmysql.dll和php5ts.dll拷贝至windows目录下的 system32 下! 2.修改windows安装目录下的php.ini 去掉;extension=php_mysql.dll前面的分号 3.extens

 

 

以下是出现Fatal error: Call to undefined function mysql_connect()错误的方式,现在公布解决方法:

1.将libmysql.dll和php5ts.dll拷贝至windows目录下的system32下!
2.修改windows安装目录下的php.ini 去掉;extension=php_mysql.dll前面的分号
3.extension_dir = "C:/php5.2.11/ext"(文件在PHP.INI中) 并复制到windows中一份


apachen 中的 httpd.conf中任意位置添加
LoadModule php5_module "C:/php5.2.11/php5apache2_2.dll"
      AddType application/x-httpd-php .php
      AddType application/x-httpd-php .htm

 

 

//站点发布的位置

DocumentRoot "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

 

//设置默认页 

DirectoryIndex index.html index.php

 

 

//配置多个站点


    DocumentRoot c:/chenaa
    ServerName 127.0.0.2:7011
    DirectoryIndex index.html aa.php


    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn