Godaddy Zend Optimizer upgrade method

  • 2020-03-31 20:47:20
  • OfStack

But today at the time of installation test program prompts the zend Optimizer not installed. It makes me very confused, so why not install the zend common space, then I see the info. PHP, I was amazed to see that, the zend server was seven times, and I use the program requires at least 2.6 x or above, can't, only upgrade my zend, principle after upgrading the zend will be very complex, unexpectedly, is very simple. Specific methods I posted, for the purchase of foreign space, the same problem encountered by people to help.

The latest version of Zend is version 3.3. Take 3.3 as an example to illustrate:

1. First unzip the downloaded file and you will find a folder named data. Change the name of the folder to a special name (mainly to avoid confusion), such as zendofsite, preferably beginning with zend, so as to facilitate future search and update.

2. Then upload the zendofsite folder (the original data folder, the name is modified by myself, I will use whatever name is modified in the future) to the root directory of the website. It is recommended to ZIP the upload and then use online decompression, which can save a lot of time and improve efficiency.

3. Wait a little while and the file will be uploaded. Unzip it online. Log into FTP to find the php.ini file in the root directory. If there is no file in the directory, create one by yourself and type the following: reference:
 
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 refers to the login path and login user name. For example, your ID is taohost, and the red part is /u/s/taohost. If the user name is too long, it may take the first three digits. The path can be obtained by the following method (incorrect path may cause zend to not work properly) :

Special note:

To get the file and the user's path, you need to immediately create a PHP file that will < ? Echo a phpinfo (); ? > Put it in a file and save it as the file name info.php.
Access the File in a browser and get two parameters, a Configuration File (php.ini) Path. If this is not available, search the DOCUMENT_ROOT node for the Path.
Through this file can be "/ home/content/u/s/user/HTML" in the value of the red parts. There is also your current PHP version number (usually at the top), which is reserved for later use.


4. After you get the correct path, modify the php.ini file. Using the PHP version number, go to the zendofsite folder and find a folder that is closest to the PHP version of your server. (the zendofsite folder contains many folders, such as 4_3_x_comp, 5_1_x_comp, and 5_2_x_comp.) Then replace the 4_3_x in the 4_3_x_comp of the above code. This is essentially calling the resource in this folder. If the folder is not specified correctly, it may not work properly.

5. To make sure that the zend optimizer has been upgraded, visit the PHP file info.php that you just created, and find the zend field to see the version of zend!

Note: for PHP5, be sure to change php.ini to php5.ini

The important thing to note is when Godaddy updates Zend.

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

If you have the same problem, try it.

Related articles: