zoukankan      html  css  js  c++  java
  • wamp 服务器安装问题 及cmd常用命令 和 php mysql数据库常用cmd命令集

    1   官网下载wamp软件包,根据提示安装

    2   目录结构:  

                             wamp:   bin/为套件目录 包括mysql apache php          

                                log   日志记录    

                  alias 配置

                  apps 数据库等

                  www 项目目录

    3    出现505错误

      

    Internal Server Error
    
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.
    

     Apache错误日志显示:apache_error.log

    [Thu Aug 04 13:42:20 2016] [alert] [client 127.0.0.1] E:/wamp/wamp/www/wwwroot/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1:8080/
    

    解决办法:

    1、请您检查PHP程序的属性是否设置为755,如果PHP程序的属性不是755,那么运行的时候会报“Internal Server Error”错误,请您使用FTP软件将属性更改为755再测试。
    2、请您检查PHP程序所在的当前目录下是否有名为.htaccess的文件存在,此文件会干扰PHP程序的正常运行,如果发现有此文件建议您删除或者改名后再测试。

    3 由于项目Zend加密,用优化代码的方法来提高php应用程序的执行速度。
    zend加密项目页面提示信息
    Zend Optimizer not installed This file was encoded by the Zend Encoder / Zend SafeGuard Suite In order to run it, please install the freely available Zend Optimizer, version 2.1.0 or later. What is the Zend Optimizer? The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been freely available since the early days of PHP 4.
    It improves performance by taking PHP's intermediate code through multiple Optimization Passes, which replace inefficient code patterns with efficient code blocks.
    The replacement code blocks perform exactly the same operations as the original code, only faster. In addition to performance-improvement, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Encoder or Zend SafeGuard Suite. The Zend Optimizer is a freely-available product from Zend Technologies. Zend Technologies is the company that develops the scripting engine of PHP, also known as the Zend Engine.

      解决:

    由于最新wamp 都是Thread Safe(线程安全)的版本;

       php5.3不支持ZendOptimizer的解决办法(Zend Guard Loader)

       PHP 5.3 下,Zend Optimizer 已经被全新的 Zend Guard Loader 取代

     Zend Guard Loader 只支持非线程的版本
    1 将php版本调到5.3一下的非线程安全版本
  • 相关阅读:
    DevCon 5 2019 活动照片
    区块链小册 | 必知的运营常识
    区块链小册 | 必知的运营渠道
    产品经理需求沟通的艺术
    作为产品经理要如何面对失败?
    展示亚洲金融科技状况的 15 张金融科技地图
    成为区块链行业的产品经理是什么感觉
    腾讯产品经理能力模型
    jQuery 知识点大纲
    call()与apply()区别
  • 原文地址:https://www.cnblogs.com/jingzi111/p/5736063.html
Copyright © 2011-2022 走看看