Home > Backend Development > PHP Tutorial > Share to speed up your XOOPS_PHP tutorial

Share to speed up your XOOPS_PHP tutorial

WBOY
Release: 2016-07-13 17:27:48
Original
920 people have browsed it


The actual operation of this method is not mainly for XOOPS, but for optimizing PHP. When PHP is installed by default, it only comes with Zend's Engine; according to Zend, after installing Optimizer in addition, PHP execution speed will increase by 40%-100%. I just installed Optimizer, and it feels much faster, especially when opening articles with a lot of content, or BBSs that are more obvious. If you make reasonable use of the CACHE function of XOOPS, you can speed up a lot.
Zend Optimizer download address: www.zend.com, free. When downloading the UNIX version, you need to select the correct UNIX operating system category; during installation, you will be asked what directory to install to (accept the default settings), the location of the php.ini file (usually /etc), and the bin directory of apache (accept the default settings) , the location of apache's httpd.conf file (set it according to the location where you originally installed it, it must be correct); after completion, it will automatically install and edit the relevant files, restart apache, and it may take 2 to restart apache on my FREEBSD It takes about a minute, so please be patient and don’t be impatient. There will be a prompt after starting OK. Just install it.
Check whether the installation is successful:
1. Check the php.ini file. There will be three lines of ZEND settings added at the end of the file (I don’t know if it is the same for other operating systems).
[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 through the browser and see that the ZEND display is as follows, which is more than the default installation of PHP "with Zend Optimizer v2.1.0, Copyright (c) 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 yourself as a device administrator. If you are using a virtual host and run the phpinfo function and find that there is no Zend Optimizer support, you can contact the service provider to install it. It should not be a problem.
Another: After using Zend Optimizer, the memory consumption increases; so friends who are upgrading please consider whether their memory is enough; my memory is only 256M, and the speed is not bad, haha.
A little cabbage replied on: 2003-06-15 10:08:30 Not bad, it should be an original post haha ​​
“Look at the php.ini file, the ZEND setting will be added at the end of the file , three lines (I don’t know if it is the same for other operating systems). "Whether it is Unix, Linux or Win32, it is like this. The Zend installation program will add these three sentences at the end of php.ini
"In my FREEBSD It took about 2 minutes to restart apache." Haha, your apache has too many dynamic modules loaded, right? Mine only takes about 10 seconds
Han Yuliang replied on: 2003-06-15 12:16:49 Very good, I understand it deeply
itbbs replied on: 2003-06-15 17:53 :48 My apache has a lot of dynamic modules, but I dare not cancel them casually for a while; however, after installing Optimizer, apache restarts very quickly, less than 1 minute.
Fall in love with this reply on: 2004-03-25 09:42:38 I accelerated php under window. The code only has two lines of zend_optimizer.optimization_level=15 zend_extension_ts="C:Program Files endlib endOptimizer. dll" and I found a problem: when my php is run as cgi mode, it will not be optimized. When my php is run as an apache module, it will be optimized, because when I deleted the above dll file, run it in the above two ways. The cgi mode can run normally without prompting that the file cannot be found. However, when running the apahce module, not only does it prompt that the dll file cannot be found, but also the php file cannot be found. It works! What is the reason for this? ?

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531848.htmlTechArticleThe actual operation of this method is not mainly for XOOPS, but for optimizing PHP. When PHP is installed by default, it only comes with Zend's Engine; according to Zend, after installing Optimizer, PHP executes...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template