Ecmall Installation Considerations under Linux (RPM)----Ecmall system Migration

Source: Internet
Author: User
Tags install php php and mysql

Linux+apache+mysql+php, and then began to install Ecmall under Linux and do the migration, sorting out the middle of the problems encountered.
1, the system chooses the environment is centos6.3, installs does not do the introduction.

2. Installation
Mysql
Start with the MySQL installation. Open HyperTerminal and enter:
[[email protected] ~]# yum install MySQL
Mysql-server
The installation is complete so that MySQL can start automatically with the system:
[Email protected] ~]# Chkconfig
--levels 235 mysqld on
[[email protected] ~]#/etc/init.d/mysqld start
Set up
MySQL Data root account password:
[Email protected] ~]#
Mysql_secure_installation
Press ENTER directly when prompted as follows:
Enter Current password for
Root
Appear as follows to enter again:
Set root Password?
[y/n]
The following prompts you to enter the password you need to set, enter after entering the confirmation:
New
Password
Then there will be four confirmations, namely:
Remove anonymous users? [y/n]
Disallow Root
Login remotely? [y/n]
Remove test database and access to it? [y/n]
Reload
Privilege tables now? [y/n]
You can enter directly.

3. Installing the Apache Component
Since CentOS has been encapsulated
Apache, run the installation directly:
[email protected] ~]# Yum install httpd
The same configuration system lets Apache
Boot with System:
[Email protected] ~]# chkconfig--levels 235 httpd on
Configuration complete, start
Apache:
[Email protected] ~]#/ETC/INIT.D/HTTPD
Start
Now you have access to your server, and you can see "Apache 2 Test page powered by CentOS" in an unexpected way.
's test page. Note that if the other machine is accessing this service and cannot display this page, it can be accessed directly on this server, usually CentOS
The firewall that comes with it is forbidden. You only need to enter the firewall, the "WWW" corresponding to the "80" port to open.
Note: The default root directory for Apache in CentOS is
/var/www/html, configuration file/etc/httpd/conf/httpd.conf. Other configurations are stored in the/etc/httpd/conf.d/
Directory.


4. Install PHP
[color= #ff0000] I test ecmall2.3 must be installed in the previous version of php5.3.3 contains 5.3.3, if the future version will be error, many methods are removed.
Enter the following command to install
Php:
[[email protected] ~]# Yum install PHP
Need to restart Apache
Service:
[Email protected] ~]#/etc/init.d/httpd restart
Test PHP
Related information
This step can actually be omitted, but in order to test whether the installation is successful, you can create a new PHP page to test, using vim
Editor NEW:
[Email protected] ~]# vi/var/www/html/info.php
Press "I"
Key to edit, enter:
<?php
Phpinfo ();
?>
After editing, press "ESC"
Key to exit edit mode, and then enter:
: Wq
Then enter, save and exit.
At this point you can access your site's address, for example
"Http://192.168.1.2/info.php" to see if you can see the relevant PHP information.
See on the instructions PHP
The installation was successful.


5. Associating the PHP module with the MySQL module

PHP and MySQL will also need to be
In order to work properly. Search module:
[email protected] ~]# Yum Search
Php
To install the relevant modules:
[email protected] ~]# Yum install php-mysql php-gd php-imap
Php-ldap php-odbc php-pear php-xml php-xmlrpc
Need to restart Apache
Module to take effect:
[Email protected] ~]#/etc/init.d/httpd restart
Refresh the "info.php" that was just created again
page, pull down to find the relevant MySQL
module to see if the relevant information is detected.

[color= #ff0000]php.ini file requires special attention to specify the default time zone (asia/chongqing[color= #ff00]) Otherwise the home page is blank after installation.
Vi
/etc/php.ini
Find 946 rows modified to Date.timezone =
Asia/chongqing
!wq Save exit

6. Installing Ecmall
Upload files Ecmall230-0918-scutf8\sc-utf-8\upload files to the server my path is/var/www/html/
Executive Chomod
-R 777
/var/www/html/
Enter the IP address to start accepting step-by-step installation many posts have been introduced here.

7. Migrating Ecmall to another server
Backing up the database: mysqldump
-U root-p ecmall>/var/www/html/ecmall.sql
Backup site: Tar zcvf ecmall.tar.gz
/var/www/html/
FTP upload to new server unzip tar zxvf ecmall.tar.gz to/var/www/html/

Recovery database: Mysql-uroot-p Ecmall </var/www/html/ecmall.sql
The site will be accessible.

8. Summarize a few common methods
MySQL New user command:
Insert into User (Host,user,password) values (' localhost ', ' ecmalluser ', Password (' Password '));
Flush privileges; [First time refresh]
Grant Select,insert,update,delete on
ecmalldb.* to ecmalluser @ ' localhost ' identified by "password";
Flush
privileges; [Second Refresh]

[color= #ff0000] Refresh one time may be error, or login when prompted to have no permissions.

If you migrated the MySQLdb directory, you need to make the settings:
Change the owner of the copy of the previous file to Mysql:mysql and change the permission to 660

Chown mysql:mysql/var/lib/mysql/mydb/*
chmod 660/var/lib/mysql/mydb/*


Ecmall if the runtime has a variety of problems you can check the Ecmall run log directory in the./temp/logs content as follows:

Tue, 11
Feb 11:29:17 +0800 [2]date_default_timezone_get (): It is not safe to rely
On the system ' s timezone settings. You is *required* to use the Date.timezone
Setting or the Date_default_timezone_set () function. In case you used any of
Those methods and you is still getting this warning, your most likely misspelled
The timezone identifier. We selected ' asia/chongqing ' for ' cst/8.0/no DST '
Instead/eccore/model/mysql.php 162
This error is due to forgetting to modify the php.ini time zone, the workaround is as follows:
Vi
/etc/php.ini found 946 rows modified to Date.timezone = Asia/chongqing

Original address: http://bbs.ecshop.com/thread-1169715-1-1.html

Ecmall Installation Considerations under Linux (RPM)----Ecmall system Migration

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.