wamp 服務器安裝問題 及cmd經常使用命令 和 php mysql數據庫經常使用cmd命令集

1   官網下載wamp軟件包,根據提示安裝php

2   目錄結構:  mysql

                         wamp:   bin/爲套件目錄 包括mysql apache php          sql

                            log   日誌記錄    數據庫

              alias 配置apache

              apps 數據庫等安全

              www 項目目錄app

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/

 

解決辦法:ui

一、請您檢查PHP程序的屬性是否設置爲755,若是PHP程序的屬性不是755,那麼運行的時候會報「Internal Server Error」錯誤,請您使用FTP軟件將屬性更改成755再測試。
二、請您檢查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一下的非線程安全版本
相關文章
相關標籤/搜索