Godaddy空间Zend Optimizer升级方法
但今天在安装测试程序的时候提示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未安装等问题消失)
遇到同样问题的朋友赶紧试试吧。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The default map on the iPhone is Maps, Apple's proprietary geolocation provider. Although the map is getting better, it doesn't work well outside the United States. It has nothing to offer compared to Google Maps. In this article, we discuss the feasible steps to use Google Maps to become the default map on your iPhone. How to Make Google Maps the Default Map in iPhone Setting Google Maps as the default map app on your phone is easier than you think. Follow the steps below – Prerequisite steps – You must have Gmail installed on your phone. Step 1 – Open the AppStore. Step 2 – Search for “Gmail”. Step 3 – Click next to Gmail app

Tomato Novel is a very popular novel reading software. We often have new novels and comics to read in Tomato Novel. Every novel and comic is very interesting. Many friends also want to write novels. Earn pocket money and edit the content of the novel you want to write into text. So how do we write the novel in it? My friends don’t know, so let’s go to this site together. Let’s take some time to look at an introduction to how to write a novel. Share the Tomato novel tutorial on how to write a novel. 1. First open the Tomato free novel app on your mobile phone and click on Personal Center - Writer Center. 2. Jump to the Tomato Writer Assistant page - click on Create a new book at the end of the novel.

Unfortunately, people often delete certain contacts accidentally for some reasons. WeChat is a widely used social software. To help users solve this problem, this article will introduce how to retrieve deleted contacts in a simple way. 1. Understand the WeChat contact deletion mechanism. This provides us with the possibility to retrieve deleted contacts. The contact deletion mechanism in WeChat removes them from the address book, but does not delete them completely. 2. Use WeChat’s built-in “Contact Book Recovery” function. WeChat provides “Contact Book Recovery” to save time and energy. Users can quickly retrieve previously deleted contacts through this function. 3. Enter the WeChat settings page and click the lower right corner, open the WeChat application "Me" and click the settings icon in the upper right corner to enter the settings page.

Is the clock app missing from your phone? The date and time will still appear on your iPhone's status bar. However, without the Clock app, you won’t be able to use world clock, stopwatch, alarm clock, and many other features. Therefore, fixing missing clock app should be at the top of your to-do list. These solutions can help you resolve this issue. Fix 1 – Place the Clock App If you mistakenly removed the Clock app from your home screen, you can put the Clock app back in its place. Step 1 – Unlock your iPhone and start swiping to the left until you reach the App Library page. Step 2 – Next, search for “clock” in the search box. Step 3 – When you see “Clock” below in the search results, press and hold it and

1. Use the win+x shortcut key to open the menu and select [Command Prompt (Administrator) (A)], as shown below: 2. After entering the command prompt interface, enter the [ipconfig/flushdns] command and press Enter , as shown in the figure below: 3. Then enter the [netshwinsockresetcatalog] command and press Enter, as shown in the figure below: 4. Finally enter the [netshintipreset] command and press Enter, restart the computer and you can access the Internet, as shown in the figure below:

Mobile games have become an integral part of people's lives with the development of technology. It has attracted the attention of many players with its cute dragon egg image and interesting hatching process, and one of the games that has attracted much attention is the mobile version of Dragon Egg. To help players better cultivate and grow their own dragons in the game, this article will introduce to you how to hatch dragon eggs in the mobile version. 1. Choose the appropriate type of dragon egg. Players need to carefully choose the type of dragon egg that they like and suit themselves, based on the different types of dragon egg attributes and abilities provided in the game. 2. Upgrade the level of the incubation machine. Players need to improve the level of the incubation machine by completing tasks and collecting props. The level of the incubation machine determines the hatching speed and hatching success rate. 3. Collect the resources required for hatching. Players need to be in the game

Setting font size has become an important personalization requirement as mobile phones become an important tool in people's daily lives. In order to meet the needs of different users, this article will introduce how to improve the mobile phone use experience and adjust the font size of the mobile phone through simple operations. Why do you need to adjust the font size of your mobile phone - Adjusting the font size can make the text clearer and easier to read - Suitable for the reading needs of users of different ages - Convenient for users with poor vision to use the font size setting function of the mobile phone system - How to enter the system settings interface - In Find and enter the "Display" option in the settings interface - find the "Font Size" option and adjust it. Adjust the font size with a third-party application - download and install an application that supports font size adjustment - open the application and enter the relevant settings interface - according to the individual

Are you getting "Unable to allow access to camera and microphone" when trying to use the app? Typically, you grant camera and microphone permissions to specific people on a need-to-provide basis. However, if you deny permission, the camera and microphone will not work and will display this error message instead. Solving this problem is very basic and you can do it in a minute or two. Fix 1 – Provide Camera, Microphone Permissions You can provide the necessary camera and microphone permissions directly in settings. Step 1 – Go to the Settings tab. Step 2 – Open the Privacy & Security panel. Step 3 – Turn on the “Camera” permission there. Step 4 – Inside, you will find a list of apps that have requested permission for your phone’s camera. Step 5 – Open the “Camera” of the specified app
