Centos6.5 install ecshop
Step 1:
Shell> yum install httpd
Shell> yum installPHP
Shell> yum installMySQL
Set to start chkconfig -- levels 235 mysqld on chkconfig -- levels 235 httpd on
Start mysql service mysqld start
Set the password for the root account of MySQL Data:
[Root @ localhost ~] # Mysql_secure_installation
Press enter when prompted as follows:
Enter current password for root
Press enter again as follows:
Set root password? [Y/n]
The following prompt is displayed: enter the password you want to set. Press enter and enter a confirmation message:
New password:
There will be four further confirmations:
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]
Press enter.
Step 2:
Upload the upload folder under ecshop_v2.7.3_utf8_release0411.zip to/var/www/html/
Renamed mvuploadecshop
Modify the apache configuration file
Vi/etc/httpd/conf/httpd. conf
################### Modify (ADD) the object at the end of the file) #####################
<VirtualHost: Your linux IP address 192.168.1.111>
ServerAdmin root
DocumentRoot/etc/www/html/ecshop
</VirtualHost>
In the httpd. conf file, replace/ecshop with the actual installation directory of your store.
<Directory/ecshop> ------- "changed to/var/www/html/ecshop
Options FollowSymLinks
AllowOverrideAll -------- previously none
</Directory>
3. Search for LoadModule rewrite_module in httpd. conf and delete the # sign before the row.
If your Apache version is 1.3.x, you also need to find AddModule mod_rewrite.c,
Delete the previous.
4. Disable the firewall and selinux mechanism. Restart the machine.
Step 3: Access http: // ip
Problem 1: What should I do when ecshop is installed? Display does not support mySQL, GD, JPEG, GIF, and PNG
To solve this problem, install the following software online. The sequence cannot be "yum-y install mysql-server mysql-devel php-mysql gd-devel httpd php-gd" (Press ENTER ),
Basically all are supported, but jpeg is not supported. I have found many websites, and this problem has also plagued me for a day. One method is to downgrade php to 5.2, and the other is to solve the problem.
When checking the environment, the system prompts: whether JPEG is supported is not supported.
Solution: Row 100th in lib_installer.php, JPEG is written as JPG, which should be correct:
$jpeg_enabled = ($gd_info['JPEG Support'] === true) ? $_LANG['support'] : $_LANG['not_support'];
When the installation continues, the following error occurs: Warning: date_default_timezone_get (): solution:
Find the php installation directory and modify php. ini.
[Date]
; Defines the default timezone used by the date functions
Http://php.net/date.timezone
Date. timezone = Asia/Shanghai