Tutorial on setting PhP4 + zend3.3 and PhP5 + zend3.3 on a Godaddy host

Source: Internet
Author: User
1. download the latest version of Zend optimizer.
Downloading from the Zend webpage is troublesome. You can download it directly for your convenience.

Http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

2. decompress the downloaded file and rename the data folder to a memorable name. Here I change it to zend3_3.
Then, compress the entire zend3_3folder with zend3_3.zip and upload it to the root directory using FTP.
Select zend3_3.zip in the background content-file manager, click unarchive,
Click OK to decompress the package to the root directory. After decompression, you will see an additional zend3_3 folder.

3. Find the absolute path of your host.
The absolute path of the Godaddy host is regular. The path is/home/content/A/B/C/username/html/
The red part after content contains the first three letters of your host user name.
The blue part is your host user name, and others are the same.
For example, if your host user name is wangyi, the corresponding path is/home/content/W/A/n/wangyi/html/
For example, if your host user name is Billy, the corresponding path is/home/content/B/I/L/Billy/html/
You can also easily see the absolute path of the host by uploading the probe.

4. Modify PHP. iniCode. There are two cases.

4.1 If your host's PHP version is 4.x.
Download the php. ini file under the root directory of the host and add the following code. Note the case sensitivity:
[Zend]
Zend_optimizer.optimization_level = 15
Zend_extension =/home/content/A/B/C/username/html/zend3_3/4_3_x_comp/zendoptimizer. So
Zend_extension_ts =/home/content/A/B/C/username/html/zend3_3/4_3_x_comp/TS/zendoptimizer. So

For details about how to fill in red and blue, see 3.
Save and upload the root directory to overwrite the original PHP. ini. OK!

4.2 if your host's PHP version is 5.x.
Download the php. ini file under the root directory of the host and add the following code. Note the case sensitivity:
[Zend]
Zend_optimizer.optimization_level = 15
Zend_extension =/home/content/A/B/C/username/html/zend3_3/5_2_x_comp/zendoptimizer. So
Zend_extension_ts =/home/content/A/B/C/username/html/zend3_3/5_2_x_comp/TS/zendoptimizer. So

For details about how to fill in red and blue, see 3.
Save, upload the root directory, overwrite the original PHP. ini, and rename PHP. ini to php5.ini. OK!

If you want to switch to the PHP version, you can change the php. ini Code accordingly.
Zend optimizer. How can I 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.