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 includeCall! 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:
2Add apacheCGI supportedProgram 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
3About 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.
4One-click installation package, directory, startup, lnamp, wdcpPort 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
WdcpBackground service environment installation directory (Wdcp2After,1. XNo) /Www/wdlinux/wdapache wdcp apache used in the background
/Www/wdlinux/wdphp wdcp php used in the background
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.