Godaddy space ZendOptimizer upgrade method

Source: Internet
Author: User
Tags file info
Although I purchased a godaddy space, I encountered a lot of problems during the period. I also had some solutions in my time. However, the system prompts zend Optimizer not installed when installing the test program today. this makes me very confused. why is zend not installed in such a common space? then I will check info. php, I was surprised to find that the zend of the server was 1.3.1, and the program I used needed at least 2.6.x or above. No way, I only needed to upgrade my zend, it will be complicated to upgrade zend in the future. I will post the specific method to help users who encounter the same problems when purchasing foreign space.

Currently, Zend of the latest version is 3.3. The following is an example of 3.3:

1. first extract the downloaded file and you will find a folder named data. Change the folder name to a special name (mainly to avoid confusion), such as zendofsite. it is best to start with zend to facilitate future search and updates.

2. then upload the zendofsite folder (that is, the original data folder, which is modified by yourself and used in the future) to the root directory of the website. We recommend that you compress the file into a ZIP file and decompress it online to save a lot of time and improve efficiency.

3. wait for a moment and the file will be uploaded. Decompress the package online. Log on to FTP and find the PHP. ini file in the root directory. if the file does not exist in the directory, create one by yourself. type the following content: reference:

The code is as follows:


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


The red part is your logon path and user name. for example, if your ID is taohost and the red part is/u/s/taohost, the first three digits may be used if the user name is too long. The path can be obtained through the following method (incorrect paths may cause zend to be unavailable ):

Note:

To obtain the file and user path, you need to create a php file immediately Put it in the file and save it as the file name info. php.
Access this File in the browser and obtain two parameters: Configuration File (php. ini) Path (php file Path). If this does not exist, search for the node DOCUMENT_ROOT to obtain the Path.
You can use this file to obtain the value of the red part in "/home/content/u/s/user/html. Another is your current PHP version number (usually at the top), which is reserved and used below.


4. after obtaining the correct path, modify the PHP. ini file. Use the php version number to find the file folder closest to your server's PHP version in the zendofsite folder (the zendofsite folder contains many folders, such as 4_3_x_comp, 5_rjx_comp, and 5_2_x_comp ). Replace 4_3_x in 4_3_x_comp of the above code. Actually, it is to call resources in this folder. If the specified folder is incorrect, it may not work properly.

5. if you want to confirm whether zend optimizer is successfully upgraded, visit the created php file info. php and find the Zend field to see the zend version!

Note: remember to change php. ini to php5.ini.

Note the effective time after Godaddy updates Zend.

After the author's test, it will take effect immediately (prompt that zend is not installed and other problems disappear)

If you encounter the same problem, try it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.