The ashoptest.php script can be used to ensure that the server configuration is compatible with AShop before uploading all of the progam files, creating a database, and installing the program.
The script is encypted, just as the progam files are. The ixed directory, which is distributed with the encrypted files, must be uploaded with along with the ashoptest.php script in order for it to run at all. See the help topic Source Guardian pxp Error for more information about this.
Checks Performed By ashoptest.php
PHP Version
PHP must be configured on the web server as a service and not as a CGI program and it must be version 4.1 or higher. This is a requirement for the AShop program files to run on the server.
Safe Mode
safe_mode is set in the php.ini configuration file for the server. It must be off for the AShop program files to run.
Dynamic Extension Loading enable_dl
enable_dl is set in the php.ini configuration file for the server. It must be on for the AShop program files to run.
File Uploads
file_uploads is set in the php.ini configuration file for the server. It must be on so that product and thumbnail image files can be uploaded through the AShop administration panel. If this setting is off, the program will run, but files will not upload through a browser.
The File Uploads test also checks the upload_max_filesize. This is an informational test. Product files that are larger than this limit must be uploaded to the ashop/products directory using FTP and then selected for each product through the administration panel Edit Catalogue menu. Files that are larger than this limit will not upload completely through a browser.
mySQL
This test simply checks to see if mySQL is available on the server. AShop requires all privileges on one mySQL database.
Curl
Curl is a tool on the server that is used for secure transmission of files with URL syntax. The AShop programs will run fine without Curl. It is only required in order to use payment gateways where credit card information is collected locally and transmitted to the payment gateway. Most of the payment gateways supported by AShop do not require Curl because they provide the secure payment form on their server.
Error Reporting
This test checks the error_reporting setting in PHP to see if it is set to: "E_ALL & ~E_NOTICE" which is the equivalent of: 2039. Some other settings will cause all kinds of warnings and other messages to be displayed at the top of AShop pages. There are other settings besides "E_ALL & ~E_NOTICE" that will work, but we are not sure which ones or how to check for all of them. If this test fails, you can still install and run AShop. If there are no PHP warning messages at the top of AShop pages, then the setting is probably ok.
Magic Quotes
Magic Quotes is a tool on the server that handles reserved or special characters when text is saved in the mySQL database. It does this by escaping special characters with a backslash. For instance if a quote is used in the text, it will be saved as \" instead of ". AShop will run with this setting off, but if quotes or special characters are used in the product name and desciption, it will cause unpredictable results.