• Zend Server搭建网站备注


    1Zend Server的使用

    Zend Server自带phpapache,所以装zendserver的话不需要再安装其他任何东西。(mysql默认没有安装,可以自行设置)

    2、工作路径配置:

    Zend\Apache2\conf\httpd.conf中添加

    Alias/test "F:/workbench/test/"

    <Directory"F:/workbench/test">

    DirectoryIndexindex.php index.htm index.html

    Options-Indexes FollowSymLinks

    AllowOverrideNone

    Orderallow,deny

    Allowfrom all

    </Directory>

     

    3、安装中常出现的问题:

    1)安装Zend Server需安装社区版(community),免费,不需要序列号。

    2)Internal Server Error原因:

    aZend\ZendServer\etc\ZendEnablerConf.xml文件开头有乱码

    b、时区设置有问题。时区设置有问题,有的可以运行有的不可以。时区设置在Zend\ZendServer\etc\php.ini中设置date.timezone = PRC 注意去掉前面的分号

    4、配置虚拟主机:

    apachehttpd.conf文件中,需要设置DocumentRootListen的端口,AllowOverride AllOptions All。然后添加如下代码:

    <VirtualHost*:80>

    ServerNamequickstart.localhost

    DocumentRoot  "F:\workbench\quickstart\public"

    <DirectoryF:\workbench\quickstart\public>

      Options +Indexes +FollowSymLinks +ExecCGI

          DirectoryIndex index.php

          AllowOverride All

          Order allow,deny

          Allow from all

    </Directory>

    </VirtualHost>

    C:\Windows\System32\drivers\etc\host文件中添加  127.0.0.1 quickstart.localhost

    5、导入数据表SQL命令:

    use  dbname;

    sourced:\wcnc_db.sql 

  • 相关阅读:
    如何判断哪个方法调用了相同的事件?
    Windows Update问题
    Android学习笔记
    关于官方Reachability Demo理解
    poj 1797 Heavy Transportation
    poj 3013 Big Christmas Tree
    poj 1062 昂贵的聘礼
    poj 3615 Cow Hurdles(floyd)
    CF Planets(STL+ 最短路)
    poj 3026 Borg Maze
  • 原文地址:https://www.cnblogs.com/maplewizard/p/2942041.html
Copyright © 2020-2023  润新知