Beruflich Dokumente
Kultur Dokumente
3 X-Cart:Installation
3.1 Procedure
You can install the X-Cart shopping cart either manually or using the Installation Wizard that will do the most of the necessary jobs for you. The
recommended method is to install X-Cart through the Wizard; manual installation should be performed by advanced users when it is impossible to install
the software through the Wizard. For instruction on how to install X-Cart refer to the following sections:
Installing X-Cart Using the Installation Wizard
Installing X-Cart Manually
3.3 FAQ
3.3.1 What are correct file permissions for my X-Cart installation?
See X-Cart:Setting up file permissions page.
Permissions
Write-able/executable
7
Readable Writeable Executable file - most programs are this
Note: it is insecure to keep config.php file writable for everyone. After the installation, you should change the permissions: chmod 644 config.php
3
The <computer> string should be replaced with the name of your computer.
It is the C at the end after the colon that means setting 'Change' permission.
Here is more information on permissions on Windows
The permissions on Windows systems are all selectable with two boxes which are:
Allow - Grant the permission.
Deny - Any denied permission for a group or user will override any allow permission, even if the user is in a group that is granted that
permission.
If neither box is checked, the permission is not granted for the user or group, but if the user is in another group that has the permission, it will not be
denied. Normally, if a user is a member of several groups that have different levels of permissions to an object, the least restrictive permissions apply
unless the user, or one of their groups have the no access box checked for that permission.
Standard File and Folder Permissions
Read(R) - View attributes, contents, and permissions. Can synchronize.
Write(W) - Can change attributes, and file contents. Can create files or folders. Can synchronize.
Read(R) and Execute(E) - Can change sub folders, perform read operations, and execute a file.
List Folder Contents - Can perform read and execute permissions on folders. Can view folder contents, attributes, permissions. Can
synchronize and change to subfolders.
Modify - Perform Read, Execute, and Write permissions along with ability to delete.
Full Control - Can perform Modify functions (above), take ownership, and modify permissions.
Permissions assigned to directories are inherited (default) by all files and subdirectories that are contained in the directory. The inheritance option,
selected by default, may be deselected. Each file or directory has an Access Control List (ACL). To set permissions for additional users or groups, they
are added to the ACL of the file or directory. Windows Explorer or the Cacls command line utility can be used to set permissions.
Special File and Folder Permissions
On the file or folder properties dialog, click the "Security" tab and the "Advanced" button to assign special file or folder permissions.
Traverse Folder/Execute File - .
List Folder/Read Data - .
Read Attributes - The user can read the attributes (archive, compress, hidden, etc.) of the file, but not read the contents of the file.
Read Extended Attributes - .
Create Files/Write Data - .
Create Folders/Append Data - .
Write Attributes - .
Write Extended Attributes - .
Delete Subfolders and Files - .
Delete - The user can delete the file.
Read Permissions - The user can read the file.
Change Permissions - Lets the user change permissions for the file, but not view or change the contents of the file.
Take Ownership - The user can take ownership of the file, but can't give it back.
These permissions can be applied to directories, files, and subdirectories with one of the following selections:
This folder, subfolders and files
This folder only
This folder and subfolders
This folder and files
Subfolders and files only
Subfolders only
Files only
3.3.5 How to disable SELinux security restrictions for httpd on Fedora Core & RedHat?
1. Edit the file '/etc/selinux/SELINUXTYPE/booleans' and add the string
httpd_disable_trans=1
3.4 Troubleshooting
3.4.1 500 Internal server error
Internal server errors can be usually caused by one of the issues discussed here.
3.4.3 Fatal error: Can't connect to the MySQL server" on step 2 of installation
Possible causes are as follows:
a) Incorrect username/password/database name of your MySQL database. You should contact your hosting administrators and ask them to specify
correct access information for MySQL database (please note, this information is case sensitive).
b) If your MySQL server and X-Cart are located on different hosts there is a possibility that connection from your host to MySQL server is disabled. You
should contact your hosting administrator to ask if there are any restrictions of this kind.
3.4.5 Installation error - Warning: opendir(/[xcart_root_dir]/.pgp.def): failed to open dir: No such file or directory in
/[xcart_root_dir]/include/install.php on line 599
X-Cart '.pgp.def' folder wasn't extracted from the installation package. You should create this folder manually ('mkdir .pgp.def') and reinstall X-Cart.
In order to fix this issue, please apply the File:Product deletion error in 4 1 11.txt patch.
This issue is fixed in the X-Cart 4.1.12 and higher.
3.4.11 The size of the data package being transmitted is greater than maximum allowed by the server
The size of the data package being transmitted is greater than maximum allowed by the server
The above error is caused by the fact that there was an attempt to transmit via MySQL the data package, which size was greater than the
'max_allowed_packet' MySQL option value.
6
3.4.13 User 'mysqluser' has exceeded the 'max questions' resource (current value: 50000)
You receive the following SQL errors:
INVALID SQL: 1226 : User 'mysqluser' has exceeded the 'max_questions' resource (current value: 50000)
MySQL allows to limit any user's activity. The max_questions option contains a number of queries of 'SELECT' type which a user can execute per hour.
If such an error is received, this means that X-cart executes a lot of queries and exceeds the limit. You can find more info about this option here:
http://dev.mysql.com/doc/refman/5.1/en/user-resources.html
The problem can be resolved in the following ways:
increase the max_questions value
the following workaround can be used: it is required to create a few MySQL users, realize in the config.php a random choice of user from the
list. Since every user has a limit of max_questions, X-Cart will be able to fulfill the following number of queries: max_questions * the number of
users in the config.php
move the images to the file system, disable the unnecessary modules, disable the statistics, which will decrease page load time
change the hosting provider
3.4.14 User [name] has already more than 'max_user_connections' active connections
Warning: mysql_connect(): User [name] has already more than 'max_user_connections' active connections
in /home/[path_to_xcart_dir]/include/func.php on line 43
Could not connect to SQL db
This means that your mysql user has exceeded the max_user_connections limit (mysql configurable parameter). For example, when several users
browse your site, several instances of x-cart scripts are called and the scripts try to connect to the mysql database. If the number of those scripts
instances is higher than the max_user_connections limit defined on your server, user will see such error message.
You should contact your hosting administrators and ask them to increase the limit number of mysql connections per mysql user, i.e.
'max_user_connections' limit.
It means that the MySQL table '%table_name%' has been crashed in the database. Occasionally, under circumstances involving high load on the
server, multiple INSERTs and UPDATEs, coupled with many SELECTs, or hardware failure, your database server may corrupt a table. According to the
MySQL manual, you can get corrupted tables if some of the following things happens:
The mysqld process being killed in the middle of a write.
Unexpected shutdown of the computer (for example, if the computer is turned off).
A hardware error.
You are using an external program (like myisamchk) on a live table.
A software bug in the MySQL or MyISAM code.
In order to fix this issue try to connect to your store MySQL database and executed the following MySQL query:
REPAIR TABLE '%table_name%';
10