Rumah  >  Artikel  >  php教程  >  apache mysql php5配置

apache mysql php5配置

WBOY
WBOYasal
2016-06-06 20:01:381060semak imbas

以下是出现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

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn