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 配置 无

  • 相关阅读:
    Python 正则表达式简单了解
    scrapy 框架简单 爬取 4K高清 壁纸
    解决验证注解随机问题
    @ConfigurationProperties
    ConstraintValidator自定义注解
    通过日志解读Spring-Mybatis执行顺序
    Spring整合mybatis配置文件
    设计模式——代理模式
    Mybatis框架配置
    设计模式——单例模式
  • 原文地址:https://www.cnblogs.com/1000pen/p/2743509.html
Copyright © 2011-2022 走看看