E-commerce online retail Mall (ecstore) configuration

Source: Internet
Author: User
Tags ssh port

View Contos version number rpm-q centos-release contos Minimum 6.0


Project entry Wwwroot directory    unzip tar zxvf   xxxx.gz   Extract file
3. Execution: cd/root/lnmp1.1-full && ./ vhost.sh 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" background: URL ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/> Modify config virtual domain name /usr/local/nginx/conf/vhost/www.xxxx.com.conf
code is as follows:

www.hepinmeidu.com ;

Index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/www.xxxx.com;

Include other.conf;
#error_page 404/404.html;
Location ~ [^/]\.php (/|$)
{
# comment try_files $uri = 404; To enable PathInfo
#try_files $uri = 404;
Fastcgi_pass Unix:/tmp/php-cgi.sock;
Fastcgi_index index.php;
Include fastcgi.conf;
Include pathinfo.conf;
}
Location ~. *\. (gif|jpg|jpeg|png|bmp|swf) $
{
Expires 30d;
}
Location ~. *\. (JS|CSS)? $
{
Expires 12h;
}

& nbsp        access_log /home/wwwlogs/ www.xxxx.com .log  access; & nbsp;         error_log  /home/wwwlogs/ .error.log; 

4./usr/local/php/etc Modify the php.ini file
The last line adds
[Zend Optimizer]
zend_extension=/usr/local/zend/zendguardloader.so (automatic generation of. So files in LNMP environment)
Zend_loader.enable=1
Zend_loader.disable_licensing=0
Zend_loader.obfuscation_level_support=3
Zend_loader.license_path=/home/wwwroot/license

(When the authorization file only one time directly write authorization file, multiple Zend_loader.license_path point to a directory, the directory contains multiple DEVELOPER.ZL files, please avoid Developer.zl file name, Developer.zl Files in the Confing folder)




5. Restart Service nginx restart
Service PHP-FPM Restart

You should be able to access it here: The following are some of the issues that arise with your personal configuration:

A After you have configured it, you still cannot access the project path (the configured virtual domain name does not resolve)

1. No resolution may be the domain name is not opened, that is, the domain name does not point to the IP, in the local hosts to configure their own point

2. PHP version is not ecstore only for php5.3 version, please check whether the PHP version is 5.3
6. Local hosts IP and domain name Mapping (if the domain name is open, do not need to map)

7. Database creation

CREATE  DATABASE ' test2 ' DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci; Create a database ( the database must be UTF8 encoded, or the first page will report the wrong code after the installation is complete )
8. Assigning 777 to the Data,config,public directory
Chmod-r 777/wwwroot/ecstore.yiyon.com.cn/data
Chmod-r 777/wwwroot/ecstore.yiyon.com.cn/configchmod-r 777/wwwroot/ecstore.yiyon.com.cn/public

Two Unable to link database after clicking Install
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
1. Do not connect to the database to see if the Pdo_mysql.default_socket=/tmp/mysql.sock is open
2. Command line mysql–uroot–pxxx (XXX refers to the database password) –h 127.0.0.1 can connect to the database, if not the command line mysql–uroot–pxxx (XXX refers to the database password) –h localhost can connect to the database 127.0.0.1 can't even talk. The firewall is forbidden to viewiptables-lFirewall state See if MySQL has been drop, if dropped out of executioniptables-d INPUT 1("1" means the drop is the first few)
or Vim/etc/sysconfig/iptables.
Modify the Iptables configuration file to open 3306 ports
*filter
: INPUT ACCEPT [19:1282]
: FORWARD ACCEPT [0:0]
: OUTPUT ACCEPT [12:1820]
-A input-p tcp-m tcp--dport 80-j ACCEPT
-A input-s 127.0.0.1/32-p tcp-m tcp--dport 3306-j ACCEPT
-A input-i eth0-p tcp-m tcp--dport 3306-j ACCEPT
-A input-s 127.0.0.1/32-i eth0-p tcp-m tcp--dport 3306-j ACCEPT
COMMIT
Restart Service
/etc/init.d/iptables Restart

9. After the above steps, you should be able to install the page, in the browser input xxx.xxx.com.cn out the following interface:

    • Click "Start Install", Jump Out "Protocol dialog", click "Agree agreement and Next"

This is required to create a new MySQL database: Create database ' test2 ' DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci The newly created databases must be in UTF8 encoded format, If the UTF8 format is not available by verifying that the installation was successful, a code error occurred during the last access.

Description: Database host, database user name, database password are entered before automatically bring out is the database name, the above information is completed after the installation began
After the installation is complete, the following error occurred in the access page, the error should be the permissions issue, when the installation of some apps lack of permissions caused many services are not installed,
Please do: chown-r www:www erp.ghs.net (erp.ghs.net project name)
Chmod-r 777 data (data directory in Data project)
App/base/cmd Update or no, reinstall
After the Linux server installs the LNMP environment, after the uploading website uses the vhost.sh to bind the domain name, (the server IP also resolves), still cannot visit the website:
First of all, to determine whether it is really resolved, you ping the domain name, to see if it points to the IP, if it is, the resolution is successful;
Second, to determine whether the domain name has been bound, into the/usr/local/nginx/conf/vhost/directory to see if there is a domain name
configuration file, and configured correctly;

Then restart all services, re-visit to see if access is successful, can successfully indicate that the firewall is restricted, modify the firewall, save the restart.
Write the port number (Web port) (SSH port) that can be accessed according to the following

/sbin/iptables-i input-p tcp--dport 21-j ACCEPT (FTP port)

Then Save:
/etc/rc.d/init.d/iptables Save

Restart

/etc/init.d/iptables restart


This article is from the "Chuncoquan" blog, make sure to keep this source http://kequan.blog.51cto.com/10815369/1705552

E-commerce online retail Mall (ecstore) configuration

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.