Linux Server one-click installation package LANMP one of a series of tutorials

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

After we installed the Linux Server Web environment a key installation package LANMP, there may be a lot of questions there is the use of the process of the problem, the following for you to sum up a few more common, if there are other questions, you can go to the Wdlinux forum to find relevant tutorials.

1, how to see the Apache has compiled which modules or support which modules

Apache can be said to be strong enough that too many modules can basically meet most of the requirements or applications

But some not commonly used modules, also do not need to compile, so in the resources, performance, there will be some help

In WD a key package, wdos, basic some commonly used, are compiled into, such as some rewrite

There are times when you can see which modules are available, and sometimes someone asks, what do you support, what you don't support, and so on.

No, it looks like it.

/www/wdlinux/apache/bin/httpd-l

Can see here, it is already supported, if the page is not effective, it is likely to be configured or set the problem

2. How to turn off the default access log for Nginx,apache

The default Web Access log is open

This log, personally feel, is generally useless, but for some need to analyze the data is very useful

If not, it can be turned off, and the shutdown will also improve the performance of the point Oh, here is the default server Web default log

If you open a log for the site, there will still be, but the default directory is in the/www/web_logs

The site log is recorded at the beginning of the site's domain name

Site log, can also be based on the actual situation is open, the site in the WDCP backstage there are

Three ways

1 directly in the WDCP background shut down "system settings"

2 perform/www/wdlinux/tools/web_logs.sh On/off//On/Off (wdcp_v2.5 version)

3 manual operation as follows

Nginx Shutdown method

Sed-i '/log_format/a

Access_log off; '/www/wdlinux/nginx/conf/nginx.conf

Apache Shutdown method

Sed-i ' S#customlog ' logs/access_log ' common#customlog/dev/null common# '/www/wdlinux/apache/conf/httpd.conf

3, to add modules for PHP method

The default installation, PHP is only installed some common or basic modules, others will be added when you can

The modules are divided into two types

One is PHP's own module, that is, the source code is there, do not download

One is to download additional installation modules, such as adding modules for PHP, such as adding pdo_mysql:

The default PHP installation, only installed a common default module, some not commonly used or less used, there is no default install

This can be increased by using the following methods to increase pdo-mysql as an example

1. wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz

2. Tar zxvf pdo_mysql-1.0.2.tgz

3. CD pdo_mysql-1.0.2

4./www/wdlinux/php/bin/phpize

5./configure--with-php-config=/www/wdlinux/php/bin/php-config--with-pdo-mysql=/www/wdlinux/mysql

6. Make

7. Make Install

Copy Code

Add to configuration file

# Vi/www/wdlinux/etc/php.ini

In the final join

Extension=pdo_mysql.so

Then restart the Web service, such as

Service httpd Restart

Service Nginxd Restart

Other modules are similar, but names and references may be different

Here we only introduce the modules that come with PHP

Like soap.

First, make sure that you have downloaded a key package before, and if not, download it first (or 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

/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

And then restart the service.

Service httpd Restart

Or

Service Nginxd Restart

All other modules, refer to these two examples to complete the installation

4, ImageMagick program installation Tutorial

There are a lot of pictures of the forum, this gadget is particularly useful, especially discuz! Forum for processing thumbnails and watermarks for image processing libraries. GD is the most extensive processing library but uses more system resources. ImageMagick faster system resources occupy less, so this recommendation to use and install, because it is relatively simple, so do not post pictures.

1, run putty, log in and run the command line:

# wget http://downloads.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz

2, over a few minutes after downloading, continue to run the following command:

# tar XZVF imagemagick-6.4.0-0.tar.gz

# CD ImageMagick-6.4.0

#./configure--prefix=/usr/local/imagemagick.6.4--enable-shared--without-perl

# make

# make Install

Configure environment variables as follows

Enter edit file:/etc/profile

Add to:

Export Ld_library_path=:/usr/local/lib:/usr/local/imagemagick.6.4/lib

Export Dyld_library_path=:/usr/local/lib:/usr/local/imagemagick.6.4/lib

Export classpath= $CLASSPATH:/usr/local/lib

Finally completed in the Forum background ImageMagick path as follows:

/usr/local/imagemagick.6.4/bin

The above tested, fully functional.

This tutorial is excerpted from the Wdlinux forum, please specify

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.