zoukankan      html  css  js  c++  java
  • apache+php+mysql服务器环境配置注意点

    一. apache

    主要配置 httpd.conf 和 extra下的 httpd-vhosts.conf文件

    httpd.conf 主要修改几个地方

    1.<Directory />
        Options FollowSymLinks
        AllowOverride All           ********None 改为All
        Order deny,allow
        Deny from all
    </Directory>

    2.<Directory "F:/web">

    3 #Include conf/extra/httpd-vhosts.conf ********************#号去掉

    httpd-vhosts.conf  只要加

    <VirtualHost *:80>
        ServerAdmin 
        DocumentRoot "F:/web/1000pen.com"
        ServerName 1000pen.com
        ServerAlias www.1000pen.com
    </VirtualHost>

    基本都就能运行了

    二 php 配置

    1.php.ini 修改 

    extension_dir = "D:/Server/php/ext/"  

    extension=php_mysql.dll

    将PHP下的libmysql.dll文件拷贝到c:\windows\system32下面。/*------------重要------------*/

    2 apache httpd.conf修改

    /*-----------------------------------*/
    增加 LoadModule php5_module "D:/Server/php/php5apache2_2.dll"
    PHPIniDir "D:/Server/php/php.ini" 注意中间要有空格 切忌

    /*-----------------------------------*/

     DirectoryIndex index.php index.html

    /*-----------------------------------*/

    AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz 后增加类型解析
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .html
    AddType application/x-httpd-php .phtml

    3特别注意php的版本 分为vc6(apache)和vc9(IIS) 以及线程和非线程  

    三 mysql 配置 无

  • 相关阅读:
    比较字符串
    angular 兼容ie7 bootstrap2兼容ie6
    angular $watch
    CSS超过指定的宽度加省略号
    出去html中的标签
    andriod自定义视图
    andriod创建用户界面(1)
    安卓Activity生命周期(转)
    迷你版mvc框架执行过程
    【03月04日】A股滚动市盈率PE历史新低排名
  • 原文地址:https://www.cnblogs.com/1000pen/p/2743509.html
Copyright © 2011-2022 走看看