Linux Server Web Environment one-click installation package LANMP Series two 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, 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!

2, add Apache support CGI program

Apache has supported CGI by default, but it is not enabled by default, and if CGI support is required, the following methods can be used

1

Vi/www/wdlinux/apache/conf/httpd-wdl.conf

At the end of the increase

AddHandler cgi-script. cgi. pl

Or

echo "AddHandler cgi-script. cgi. pl" >>/www/wdlinux/apache/conf/httpd-wdl.conf

2

Modify the virtual host configuration file/www/wdlinux/apache/conf/vhost/wdlinux.cn.conf, as follows

< directory/www/web/wdlinux.cn/public_html >

Options FollowSymLinks

AllowOverride All

Order Allow,deny

Allow from all

</directory >

Modify Replace with

< directory/www/web/wdlinux.cn/public_html >

Options FollowSymLinks execcgi

AllowOverride All

Order Allow,deny

Allow from all

</directory >

Actually, it adds "execcgi."

Back up Apache

Service httpd Restart

Now you can test

vi/www/web/wdlinux.cn/public_html/test.cgi

#!/usr/bin/perl

print "content-type:text/html nn";

foreach $var (sort (%env)) {

$val = $ENV {$var};

$val =~ s|n|\n|g;

$val =~ s| "| \ "|G;

Print "${var}=" ${val} "n";

}

Save

There is also a need to pay the right to execute this document, as

chmod 755/www/web/wdlinux.cn/public_html/test.cgi

3, about the installation of a key package in the MySQL compile "stuck" instructions

When installing a key pack or WDCP, someone often reacts when installing MySQL "stuck", as shown below

#FormatImgID_0

It's not a card, it's a MySQL build. The installation itself takes longer than any other apache,php,nginx.

Generally 10-30 minutes, but also according to the machine hardware configuration, high configuration of the machine will be faster, low configuration naturally longer a little

So please use a key package to compile, more patience to wait

You can also determine whether MySQL is in the installation or is really jammed by the following method

On the SSH connection terminal, view resources with top

If you can see some make,cc1,install and so on the process of beating, instructions are in the installation, patience is

If there's nothing, it could be real stuck or the network's broken.

But as far as I know, the basics rarely get stuck, sometimes because of network outages.

4, about a key installation package, directory, startup, LNAMP,WDCP Port

Port description

By default, the WDCP background is used to 8080 ports, which can be modified

Lamp environment

HTTPD 80 ports.

LNMP Environment

Nginx 80 ports.

In the Lnamp environment

HTTPD 88 port (not modifiable)

NGINXD 80 ports.

I hope no one asks why in the Lnamp environment, httpd into 88 ports

Related startup commands

Service Wdapache start|stop|restart WDCP background start | stop | reboot

Service Nginxd start|stop|restart nginx Services start | stop | reboot

Service httpd start|stop|restart httpd services start | stop | reboot

Service PUREFTPD start|stop|restart FTP service start | stop | reboot

Service mysqld start|stop|restart MySQL services start | stop | reboot

WDCP Background Service Environment installation directory (WDCP2, 1.X not)

/www/wdlinux/wdapache WDCP Background Apache

PHP/www/wdlinux/wdphp WDCP Background

Related Software Installation directory

/www/wdlinux/nginx Nginx installation directory

/www/wdlinux/apache Apache installation directory

/WWW/WDLINUX/PUREFTPD PUREFTPD installation directory

/www/wdlinux/zend Zend installation directory

Default MySQL database file and log directory

/www/wdlinux/mysql/var

Virtual Host configuration file

/www/wdlinux/nginx/conf/vhost

/www/wdlinux/apache/conf/vhost

Related configuration Files

/www/wdlinux/etc/my.cnf

/www/wdlinux/etc/php.ini

/www/wdlinux/nginx/conf/nginx.conf

/www/wdlinux/php/etc/php-fpm.conf

/www/wdlinux/apache/conf/httpd.conf

/www/wdlinux/apache/conf/httpd-wdl.conf

/www/wdlinux/etc/pure-ftpd.conf

/www/wdlinux/etc/pureftpd-mysql.conf

Default Web Log directory

/www/wdlinux/nginx/logs

/www/wdlinux/apache/logs

You can also set the default in the background

/www/web_logs

Default backup file directory (background can be set)

/www/backup

Default Recycle Bin directory (background can be set)

/www/trash

This article is excerpted from Wdlinux Forum, reproduced please specify!

Linux Server Web Environment one-click installation package and tutorial

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.