Lanmp one-click installation package Series 3

Source: Internet
Author: User
After we have installed the linux server WEB environment with one-click installation package lanmp, there may be many questions about the problems encountered during the use process. The following are some common examples. if you have other questions, go to the wdlinux forum to find related tutorials. 1. correct lnamp supports SSI... after we have installed the linux server WEB environment with one-click installation package lanmp, there may be many questions about the problems encountered during the use process. The following are some common examples. if you have other questions, go to the wdlinux forum to find related tutorials.
1. correct lnamp supports SSI Method! SHTML is supported. And include Call!
After studying it for one afternoon, I used various methods to find that they were not completely talking about it. if they were missing one, they would not be able to do it!

You must modify the conf file in apache and nginx.


Step 1: modify the httpd. conf file in apache


Search: AddType text/html. shtml



AddOutputFilter between Des. shtml

Remove the # symbol


Modify to: AddType text/html. shtml. html



AddOutputFilter into DES. shtml. html (add. HTML to make HTML support include calls)




Search: Options Indexes FollowSymLinks. append des


Go to the: VHOST folder and find your site configuration CONF file,


Search: Options FollowSymLinks,
Modify to: Options FollowSymLinks INCLUDES IncludesNOEXEC


When you modify it, go to your website and you will find that accessing www.abc.com and www.abc.com/index.shtmlare similar pages, and the contents are different.


In success!


Then go to Step 2:


Go to nginx and open the nginx. conf file.


Add the following content to the http, server, and location segments:


Ssi on;
Ssi_silent_errors on;
Ssi_types text/shtml;

Then, restart the server. OK! All done!
 
 
2 Add apache CGI supported Program
CGI is supported by apache by default, but it is not enabled by default. to support CGI, use the following method:
1
Vi/www/wdlinux/apache/conf/httpd-wdl.conf
Add at last
AddHandler cgi-script. cgi. pl
Or
Echo "AddHandler cgi-script. cgi. pl">/www/wdlinux/apache/conf/httpd-wdl.conf

2
Modify the VM configuration file/www/wdlinux/apache/conf/vhost/wdlinux.cn. conf.

Options FollowSymLinks
AllowOverride All
Order allow, deny
Allow from all

Replace

Options FollowSymLinks ExecCGI
AllowOverride All
Order allow, deny
Allow from all

Actually, "ExecCGI" is added"

Restart apache
Service httpd restart

Now let's test it.
Vi/www/web/wdlinux.cn/public_html/test.cgi
#! /Usr/bin/perl
Print "Content-type: text/html \ n ";
Foreach $ var (sort (keys (% ENV ))){
$ Val = $ ENV {$ var };
$ Val = ~ S | \ n | g;
$ Val = ~ S | "| \" | g;
Print "$ {var }=\" $ {val} \ "\ n ";
}
Save

You also need to pay for the execution right of this file, as shown in figure
Chmod 755/www/web/wdlinux.cn/public_html/test.cgi
 
3 About installing a one-key package in mysql " Stuck" Description
When installing a one-click package or wdcp, some people often respond to "getting stuck" when installing mysql, such


In fact, it is not stuck, but it takes a long time to compile and install mysql. it takes longer than any other apache, php, and nginx.
It generally takes 10 to 30 minutes. the specific configuration depends on the hardware configuration of the machine. the high-configuration machine will be faster, and the low configuration will take a little longer.

So please wait patiently when compiling with one-click package

You can also use the following method to determine whether mysql is being installed or is stuck.
Connect to the terminal through ssh and use top to view Resources
If you can see that make, install, and other processes are running, it indicates that the process is being installed.
If there is nothing, it may be that the network is really stuck or disconnected.
But as far as I know, it rarely gets stuck, sometimes due to network interruptions.
 
4 One-click installation package, directory, startup, lnamp, wdcp Port description
Port description
By default, the wdcp backend uses port 8080, which can be modified.

In lamp environment
Httpd uses port 80.

In the lnmp environment
Nginx uses port 80

In the lnamp environment
Httpd uses port 88 (unchangeable)
Nginxd uses port 80.

I hope no one will ask why httpd has changed to port 88 in the lnamp environment.

Related startup commands
Service wdapache start | stop | restart wdcp background start | stop | restart
Service nginxd start | stop | restart nginx service start | stop | restart
Service httpd start | stop | restart httpd service start | stop | restart
Service pureftpd start | stop | restart ftp service start | stop | restart
Service mysqld start | stop | restart mysql service start | stop | restart


Wdcp Background service environment installation directory ( Wdcp2 After, 1. X No)
/Www/wdlinux/wdapache wdcp apache used in the background
/Www/wdlinux/wdphp wdcp php used in the background

Related software installation directory
/Www/wdlinux/nginx installation directory
/Www/wdlinux/apache installation directory
/Www/wdlinux/pureftpd installation directory
/Www/wdlinux/Zend zend installation directory

Default Mysql Database files and log directories
/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 value in the background
/Www/web_logs


Default backup file directory ( Configurable background )
/Www/backup

Default recycle bin directory ( Configurable background )
/Www/trash
 
This document is taken from the wdlinux Forum. For more information, see!
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.