Linux Server Web Environment one-click installation Package LANMP Series Tutorial Three

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, Apache struts vulnerability repair (online collection)

Because the recent Apache official direct how to use the loophole in the official website bulletin, hackers

There has been a surge in the use of this vulnerability to attack sites.

So I collected some methods to fix the loophole on the Internet, we can try and hope everyone dance

Jump supplements.

The Apache struts team has recently released the Struts 2.3.15.1 security update version. Big

Home can upgrade all Struts 2 related programs to the new version.

If you migrate from other branches to the 2.3.x branch, be aware that the branch minimum requirements

Servlet API 2.4, JSP API 2.0, and Java 5.

Download Address: http://struts.apache.org/

2, shared IP Cloud Host (VPS) play WDCP

At present, there are a lot of domestic performance is also a good share of IP VPS, but because there is no independent IP, so the environment configuration will be more trouble.

Because I am now using a shared IP VPS, so some configuration methods to share, for your reference.

The first is the system choice, according to experience CentOS 5.6 (32-bit) system will be compatible with WDCP some, 6.2 (64-bit) of the system used several times, there are the HTTP process of suspended animation phenomenon.

After installing the system, install the WDCP, install the installation method according to the forum.

And then mount the data disk, not to say, a lot of tutorials.

Then began to say that the sharing of IP VPS with independent IP difference operation.

1, WDCP background port settings, because the shared IP is the provider specified a number of ports for us to use, so it is not possible to have 8080 ports to everyone, we need to manually WDCP 8080 port modified to one of our available port,

2, FTP port settings, attention, because the most shared IP VPS will give you a separate FTP port, with this FTP port map to your VPS 21 port, so generally need to use the "passive link" way to connect. This time you need to modify/www/wdlinux/etc/ Pure-ftpd.conf, the PassivePortRange after the end of the paragraph, modify the port number you can use the paragraph, note that 2 port number corresponds to 1 simultaneous connections, if you want to 2 FTP clients simultaneously linked to the FTP server, you will need to occupy 4 ports. Finally, note that these ports are added to the firewall whitelist

After a few steps, basic your VPS can be used normally.

3. Add Pdo_mysql Module

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

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

Tar zxvf

Pdo_mysql-1.0.2.tgz

cd

pdo_mysql-1.0.2

/www/wdlinux/php/bin/phpize

./configure

--with-php-config=/www/wdlinux/php/bin/php-config

--with-pdo-mysql=/www/wdlinux/mysql

Make

Make install

Add to configuration file

# VI

/www/wdlinux/etc/php.ini

In the final join

Extension=/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so

Then restart the Web service, such as

Service httpd Restart

Service Nginxd Restart

4, the correct Lnamp support SSI Method! That is, support shtml and include calls!

Study of the afternoon, reference to a variety of methods, only to find that they are not complete, lack of one, it is not!

2 places must be modified: a conf file in Apache and Nginx

Step One: Modify the httpd.conf file in Apache

Find: AddType HTML shtml

Addoutputfilter recursively shtml

Remove the front # symbol

Modified to: AddType HTML. shtml. html

Addoutputfilter recursively. shtml. html (Add. HTML to allow HTML to also support include calls

Find: Options Indexes followsymlinks in the back plus recursively

Enter: Vhost folder, find your site configuration conf file,

Find: Options followsymlinks,

Modified to: Options FollowSymLinks recursively includesnoexec

When you modify here, go to your website and you will find that accessing the same page as www.abc.com and www.abc.com/index.shtml is different

In www.abc.com/index.shtml, the file that is called with include, the system cannot read out, but in the www.abc.com can read out, the middle reason is unknown!

And then the second step:

Enter Nginx, open nginx.conf file

In the HTTP, server, and location sections, add:

SSI on;

Ssi_silent_errors on;

Ssi_types text/shtml;

Then, reboot the server, OK!

This article is excerpted from Wdlinux Forum, reproduced 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.