One of the lanmp series tutorials

Source: Internet
Author: User
After we install the one-click installation package lanmp, there may be a lot of questions about the problems encountered in the use process. The following are some common examples. if you have other questions, go to the wdlinux forum to find related tutorials. How to check which modules or supported modules have been compiled by apache... After we install the one-click installation package lanmp, there may be a lot of questions about the problems encountered in the use process. The following are some common examples. if you have other questions, go to the wdlinux forum to find related tutorials.
How to View apache
Which modules have been compiled or supported?
Apache can be said to be powerful enough. there are too many modules that can basically meet most of the requirements or applications.
However, some modules that are not commonly used do not need to be compiled. this will be helpful for resources and performance.

In the one-click package of WD and WDOS, some common ones are compiled, such as some rewrite

Sometimes, how can we check which modules are available? some people may ask from time to time what you support and what you do not support?

No. you can see it later.

/Www/wdlinux/apache/bin/httpd-l

As you can see here, it indicates that it is supported. if it does not work on the webpage, it may be a problem of configuration or setting.
 
How to disable nginx and apache Default access log
The default web access log is on.
This log is useless in general, but it is useful for data analysis.

If you don't need it, you can disable it and it will also improve the performance. here, the default server web default log is disabled.

If logs are still available for the site, the default directory is/www/web_logs.
Site logs are recorded as file names starting with the website domain name
Site logs can also be enabled based on the actual situation.

Three methods
1. directly disable "system settings" in the wdcp background
2. run/www/wdlinux/tools/web_logs.sh on/off // on or off (after wdcp_v2.5)
3. perform the following manual operations:

How to disable nginx
Sed-I '/log_format/\
Access_log off; '/www/wdlinux/nginx/conf/nginx. conf

How to disable apache
Sed-I's # CustomLog "logs/access_log" common # CustomLog/dev/null common # '/www/wdlinux/apache/conf/httpd. conf
 
For php How to add a module
By default, PHP only installs some common or basic modules. you can add other modules when necessary.
There are two modules:
One is the built-in php module, which is included in the source code, and does not need to be downloaded.
One is the installation module to be downloaded separately, such
Http://www.wdlinux.cn/bbs/thread-4-1-1.html

Here we will only introduce the modules that come with PHP.
For example, SOAP

First, confirm that a one-click package has been downloaded. if not, download the package (you can also download the PHP package separately)
Wget http://dl.wdlinux.cn: 5180/lanmp_last.tar.gz
Tar zxvf lanmp_last.tar.gz
Cd lanmp
Tar zxvf php-5.2.17.tar.gz
Cd php-5.2.17
Cd ext/soap
/Www/wdlinux/php/bin/phpize

./Configure -- with-php-config =/www/wdlinux/php/bin/php-config
Make
Make install


Echo 'extension = soap. so'>/www/wdlinux/etc/php. ini

Then restart the service.
Service httpd restart
Or
Service nginxd restart

Install all other modules by referring to the two examples.
 
This document is excerpted from http://www.wdlinux.cn!
Related Article

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.