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, about the binding domain name to everyone's suggestion, the novice is worth seeing
Everyone in the new site, the first line, the domain name that item, it is recommended not to fill in the top-level domain name, why? Because you fill out, is unable to modify, you later want to modify the time will be very troublesome, unless you delete the site or directly modify the configuration (not recommended).
Therefore, the proposed novice, do not fill in the domain name of the actual use of the domain name, so as not to be replaced later
There is also a need to remind, if you fill in the domain name is the beginning of the WWW, and so you create a new, then domain name will give you the WWW removed, in the bound domain name will appear with the WWW domain name. Therefore, in the domain name that is best not to fill out the WWW beginning of the domain name.
To give you a very useful way.
First of all, you have a domain name for a generic domain name, such as *.wdlin.domain.com resolution to your server.
After you create a new site, in the first line of domain name to fill in such a domain name is good a.wdlin.domain.com
Then in the second line of binding domain name you actually let the user access to the domain name, so that you can easily in the background to change the domain name
2, for LANMP/WDCP does not support the problem of microblogging/QQ login (HTTPS) solution
The reason is that Apache does not have the support of SSL, as long as the recompilation of Apache can be (Lamp/lnamp version of the environment)
Execution can be done as follows (for httpd-2.2.22 version)
wget http://down.wdlinux.cn/in/http2222_ssl.sh
SH http2222_ssl.sh
No error, install complete.
If the LNMP version of the environment, then use the following test (for the default php-5.2.17 version)
wget http://down.wdlinux.cn/in/lnmp_php_ssl_5217.sh
SH lnmp_php_ssl_5217.sh
The above is for the httpd-2.2.22 version, if not this version, can be changed to the corresponding version number can be
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 "jammed"
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, solve Nginx 502 Bad gateway problem, [method] recompile WDCP fpm-php
Recently in the Joomla 1.5.18 a site from the virtual host of Apache moved to another VPS host Nginx, according to Joomla official Nginx rewrite rules modified Nginx configuration, the results of most of the pages are normal display, Only one Contact Us page encountered an error when sending mail: Nginx 502 Bad Gateway
System environment:
CentOS 6.4 86x64
Wdcp:wget http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
0C5D80FD4B28B7049D18275962F1FC09 lanmp_laster.tar.gz
Nginx 1.0.15
MySQL 5.1.63
PHP 5.2.17
There are 2 errors that are notable:
Tail/www/wdlinux/nginx_php-5.2.17/logs/php-fpm.log
[WARNING] Fpm_children_bury (), line 215:child 16523 (pool default) exited in signal after Sigterm From start
Tail/www/wdlinux/nginx/logs/error.log
[ERROR] 16501#0: Pocket recv () failed (104:connection reset by peer) while reading response header from upstream, client:123 .456.789, server:www.shop-yishunbike.com, request: "Post/index.php?option=com_contact&view=contact&id=1 &itemid=210 http/1.1 ", Upstream:" fastcgi://127.0.0.1:9000 ", Host:" ... ", referrer:" ........................."
Use site: () Search:
Site: (wdlinux.cn) recv () failed (104:connection reset by Peer)
Google Baidu on the above error search results are to modify the php.ini,php-fpm.conf,nginx.conf and other configuration, the results were unsuccessful
Turn around and think about these 2 error prompts, the Nginx error should be due to the Nginx submitted to PHP-FPM (127.0.0.1:9000) request did not get the correct reply, so it may be php-fpm problem.
So think of recompiling fpm-php, and the results are successful.
Recompile process:
Refer to the installation path for the lanmp.sh script in WDCP:
./Configure--prefix= $IN _dir/$PHP _dir--with-config-file-path= $IN _dir/$PHP _dir/etc--with-mysql= $IN _dir/mysql- WITH-ICONV=/USR--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr- Disable-rpath--enable-discard-path--enable-inline-optimization--with-curl--enable-mbregex WITH-MCRYPT=/USR--with-gd--enable-gd-native-ttf--with-openssl--with-mhash--enable-ftp- Enable-zip $NV
Then refer to the Nginx article of the Big Brother, run the following command:
Tar zxf php-5.4.13.tar.gz
CD php-5.4.13
libs= "-lm-ltermcap-lresolv" dyld_library_path= "/www/wdlinux/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/ Usr/lib64/:/usr/local/lib64 "
Ld_library_path= "/www/wdlinux/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"
#./Configure phase, followed by the-n option does not generate configuration, only test whether it can pass through, remove-N, and then run again
./configure--PREFIX=/WWW/WDLINUX/PHP2--with-config-file-path=/www/wdlinux/php2/etc--with-mysql=/www/wdlinux/ MySQL--with-mysqli=/www/wdlinux/mysql/bin/mysql_config--with-mcrypt=/usr--with-iconv-dir=/usr--with-libxml-dir =/USR--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--enable-xml- Enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl--enable-mbregex Enable-mbstring--with-gd--enable-gd-native-ttf--with-openssl--with-mhash--enable-pcntl- With-xmlrpc--enable-zip--enable-soap-n
Make zend_extra_libs= '-liconv '
Make install
Close the original PHP-FPM
/ETC/INIT.D/PHP-FPM stop
Open a new PHP-FPM process
/www/wdlinux/php2/sbin/php-fpm
Open the Contact Us page, send the message, and send it successfully
This article is excerpted from the Wdlinux Forum, reproduced please specify ~
Linux Server one-click installation package LANMP one of a series of tutorials
Linux Server Web Environment one-click installation package LANMP Series two tutorials
Linux Server Web Environment one-click installation Package LANMP Series Tutorial Three