Share with you the XOOPS speed-up _ PHP Tutorial

Source: Internet
Author: User
Sharing speeds up your XOOPS. The actual operation of this method is mainly to optimize PHP instead of XOOPS. When PHP is installed by default, only the Zend Engine is attached. according to Zend, after Optimizer is installed, the actual operations executed by PHP are not for XOOPS, but for PHP optimization. When PHP is installed by default, only the Zend Engine is attached. according to Zend, after Optimizer is installed, PHP execution speed increases by 40%-100%. I installed Optimizer just now, and it seems that it is indeed much faster, especially when I open many articles or BBS, and rationally use the XOOPS CACHE function, it can speed up a lot.
Zend Optimizer: www.zend.com, free of charge. When downloading a UNIX version, you need to select the correct UNIX operating system type. when installing the version, you will be asked what directory to install (accept the default settings) and php. ini file location (usually/etc), apache bin directory (by default), apache httpd. the location of the conf file (which must be set based on the location where you installed it). after the file is installed, the system automatically installs and edits the file and restarts apache, it may take about two minutes to restart apache on FREEBSD, so please be patient and don't worry. When OK is enabled, a message is displayed. Just install it.
Check whether the installation is successful:
1. check the php. ini file and add ZEND settings at the end of the file. There are three lines (I don't know if other operating systems are the same ).
[Zend]
Zend_optimizer.optimization_level = 15
Zend_extension_ts =/usr/local/Zend/lib/ZendOptimizer_TS.so
Zend_extension =/usr/local/Zend/lib/ZendOptimizer. so
2. run the phpinfo () function page in the browser and check that ZEND is displayed as the following content. this is more than "with Zend Optimizer v2.1.0, Copyright (c)" after PHP is installed by default) 1998-2003, by Zend Technologies ".
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies

The above method can only be operated by the device administrator. if you run the phpinfo function on the VM and find that Zend Optimizer is not supported, you can contact the service provider for installation.
In addition, after Zend Optimizer is used, the memory consumption is increased; therefore, please upgrade your friends to consider whether your memory is sufficient; my memory is only 256 M, and the speed is also good, haha.
A Chinese cabbage replied: 10:08:30 is good. it should be an original post.
"To view the php. ini file, ZEND settings will be added at the end of the file, three lines (I don't know if other operating systems are the same )." Whether it is Unix, Linux, or Win32, the Zend installer adds these three sentences at the end of php. ini.
"It may take about two minutes to restart apache on my FREEBSD? It only takes about 10 seconds.
Han Yuliang replied: 12:16:49 is good. I have a deep understanding.
According to itbbs, at 17:53:48, I had a lot of dynamic modules in apache, but I didn't dare to cancel them at any time. However, after Optimizer was installed, apache restart was very fast, in less than one minute.
Love here reply: 09:42:38 I accelerated php in the window, the code only has two lines zend_optimizer.optimization_level = 15 zend_extension_ts = "C: Program FilesendlibendOptimizer. dll "and I found that when my php runs as cgi, it will not be optimized. when my php is used as the apache module, it will be optimized, because when I delete the above dll file, the above two methods run in, cgi mode can run normally, no prompt to find the file, however, when running with the apahce module, the system prompts that the dll file cannot be found, and the PHP file cannot run normally! Why ??

Bytes. When PHP is installed by default, only the Zend Engine is attached. according to Zend, after Optimizer is installed, PHP executes...

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.