Home Backend Development PHP Tutorial Godaddy空间Zend Optimizer升级方法_php技巧

Godaddy空间Zend Optimizer升级方法_php技巧

May 17, 2016 am 09:25 AM
zend

但今天在安装测试程序的时候提示zend Optimizer not installed.这让我很迷茫,这么普遍的空间为什么没有安装zend了,然后我查看info.php,我惊奇的发现,服务器zend竟然是 1.3.1版本的,而我用的程序至少需要2.6.x以上,没办法,只有升级我的zend了,原理以后升级zend会很复杂,没想到,很简单。具体方法我贴 出来,供购买国外空间,遇到同样问题的人提供帮助。

目前最新版本的Zend是3.3版本的。下面就以3.3为例子来和大家说明:

1、首先解压缩下载的文件,你会找到一个名字为data的文件夹。把文件夹的名字修改为比较特殊的名字(主要是为了避免混淆),如 zendofsite ,最好由zend开头,这样方便将来查找和更新。

2、之后上传 zendofsite 文件夹(就是原来的data文件夹,这个名字是自己修改的,修改成什么名字将来就使用什么)到网站根目录。建议压缩成ZIP的格式上传,然后使用在线解压,这样可以节省很多时间并提高效率。

3、静静等待一小会儿,文件就上传完毕啦。在线解压。登录FTP找到根目录下的PHP.INI文件,如果目录中没有这个文件的,就自行建立一个,键入如下内容: 引用:

复制代码 代码如下:

register_globals = on
allow_url_fopen = on

expose_php = on
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[Zend]
zend_optimizer.optimization_level=15
zend_extension=/home/content/u/s/user/html/zendofsite/4_3_x_comp/ZendOptimizer.so
zend_extension_ts=/home/content/u/s/user/html/zendofsite/4_3_x_comp/TS/ZendOptimizer.so

红色部分的为自己的登录路径和登录用户名,比如你的ID是taohost,红色部分就是/u/s/taohost,如果用户名比较长可能会取前3位。路径可以通过如下方法获得(路径不正确可能导致zend不能正常使用):

特别注意:

需要得到文件和用户的路径,您需要立即建立一个php文件,将 echo phpinfo(); ?>放入文件中,保存为文件名info.php。
在浏览器中访问这个文件,得到两个参数,一个是Configuration File (php.ini) Path (php文件的路径),如果这个没有的话,就搜索 DOCUMENT_ROOT 这个节点,得到路径。
通过这个文件可以得到“/home/content/u/s/user/html”中红色部分的值。还有一个是您当前的PHP版本号(一般在顶部),存留备用,下面会用到。


4、得到正确的路径后,修改PHP.ini文件即可。使用这个php的版本号,到zendofsite文件夹找一个和你的服务器PHP版本最相近的文件 夹,(zendofsite文件夹包含很多文件夹,例如4_3_x_comp,5_1_x_comp,和 5_2_x_comp)。然后替换上述代码的4_3_x_comp中的4_3_x 。实际上就是调用这个文件夹里的资源。如果文件夹指定的不正确,将可能不正常工作。

5、想确认zend optimizer是否升级成功,就访问刚才建立的那个PHP文件info.php,找到Zend字段即可看到zend的版本了!

注意:PHP5的记住,一定要把php.ini修改为php5.ini

需要注意的是Godaddy更新Zend后的生效时间。

经过笔者测试,马上生效 (提示zend未安装等问题消失)

遇到同样问题的朋友赶紧试试吧。
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use ACL (Access Control List) for permission control in Zend Framework How to use ACL (Access Control List) for permission control in Zend Framework Jul 29, 2023 am 09:24 AM

How to use ACL (AccessControlList) for permission control in Zend Framework Introduction: In a web application, permission control is a crucial function. It ensures that users can only access the pages and features they are authorized to access and prevents unauthorized access. The Zend framework provides a convenient way to implement permission control, using the ACL (AccessControlList) component. This article will introduce how to use ACL in Zend Framework

PHP Implementation Framework: Zend Framework Getting Started Tutorial PHP Implementation Framework: Zend Framework Getting Started Tutorial Jun 19, 2023 am 08:09 AM

PHP implementation framework: ZendFramework introductory tutorial ZendFramework is an open source website framework developed by PHP and is currently maintained by ZendTechnologies. ZendFramework adopts the MVC design pattern and provides a series of reusable code libraries to serve the implementation of Web2.0 applications and Web Serve. ZendFramework is very popular and respected by PHP developers and has a wide range of

PHP does not recognize ZendOptimizer, how to solve it? PHP does not recognize ZendOptimizer, how to solve it? Mar 19, 2024 pm 01:09 PM

PHP does not recognize ZendOptimizer, how to solve it? In PHP development, sometimes you may encounter a situation where PHP cannot recognize ZendOptimizer, which will cause some PHP codes to not run properly. In this case, we need to take some measures to solve the problem. Some possible workarounds are described below, along with specific code examples. 1. Confirm whether ZendOptimizer is installed correctly: First, we need to confirm that ZendOptimizer

How to configure the Window2003 IIS+MySQL+PHP+Zend environment How to configure the Window2003 IIS+MySQL+PHP+Zend environment Jun 02, 2023 pm 09:56 PM

The Windows 2003 installation package includes Zend, PHP5.2.17, PHPWind8.7 and PHPMyadmin3.5.2. You can download the installation package directly to save time searching for resources. However, since MySQL has exceeded the upload limit, you need to go to the MySQL official website to download. Then unzip and copy to the D drive, as shown below: MySQLinDdisk Install and configure WindowsIIS+FTP Click Start>Control Panel>Add or Remove Programs.AddingordeletingaPG Click Add/Remove Windows Components (A). Addingorde

How to use the PHP framework Zend to develop an efficient ERP management platform How to use the PHP framework Zend to develop an efficient ERP management platform Jun 26, 2023 pm 11:00 PM

With the rapid development of information technology, more and more enterprises are beginning to realize the necessity of information management. ERP (Enterprise Resource Planning) management platform is an important tool for modern enterprise management, which can help enterprises realize resource planning, collaboration, control, optimization and management. Among them, the PHP framework Zend is an excellent development tool that can help developers develop ERP systems quickly and efficiently. This article will introduce how to use Zend to develop an efficient ERP management platform. 1. Determine requirements analysis before starting the development process

Laravel vs Zend: Which framework is better for developing large applications? Laravel vs Zend: Which framework is better for developing large applications? Jun 19, 2023 am 08:52 AM

With the continuous development of Internet applications, the demand for the development of large-scale applications is also increasing. In this context, it is particularly important to choose a development framework that suits you. Laravel and Zend are two widely used PHP frameworks. They each have their own advantages, but which one is more suitable for developing large-scale applications? Laravel is a popular development framework that has become one of the preferred frameworks for PHP developers. It adopts a modern design concept and has a variety of powerful built-in functions and tools, such as EloquentOR

Develop a high-performance search engine using the PHP framework Zend Develop a high-performance search engine using the PHP framework Zend Jun 27, 2023 am 08:36 AM

With the explosive growth of Internet information, search engines have become one of the preferred ways for people to obtain information. Now, as the number of websites continues to increase, the rapid response and accuracy of search engines have become more and more important, which requires search engines to have high performance. In this article, I will introduce how to use the PHP framework Zend to develop a high-performance search engine. 1. Why use Zend Framework? Zend Framework is a high-performance PHP framework that has excellent performance and scalability.

Symfony 3 vs Zend Framework 3: Which PHP framework is easier to get started with? Symfony 3 vs Zend Framework 3: Which PHP framework is easier to get started with? Jun 19, 2023 am 09:46 AM

PHP is a widely used dynamic web programming language. Developers can make use of different frameworks to simplify their web development work. Symfony and ZendFramework are one of the two most popular frameworks in PHP. Beginners are often confused when choosing between Symfony3 and ZendFramework3. Here we will compare these two frameworks to see which one is easier to get started with. Symfony3Symfony is a PH based on the MVC model

See all articles