Site Panel Help | User Panel Help | Panel Demo's | Search | Help |
Categories· New Customer FAQs · FAQ Home |
XML-File<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> <!-- XML-Output by phpMyFAQ 1.3.8 --> <phpmyfaq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:NamespaceSchemaLocation="http://www.phpmyfaq.de/xml/faqschema.xsd"> <article id="71"> <language>en</language> <category>Power Tools</category> <keywords></keywords> <theme>POWERTOOL: osCommerce</theme> <content xmlns="http://www.w3.org/TR/REC-html40">On this page you can find solutions to known and common problems with osCommerce. <b>IMAGES NOT DISPLAYING</b> On some servers, the default permission for uploaded files are non-viewable. Since osCommerse does not specify the permissions for images uploaded through the admin login, you may therefore need to update the code. If you can't view the images that are uploaded by osCommerce, you need to modify the admin/includes/functions/general.php file. Look for this (around line 784): <pre>function tep_copy_uploaded_file($filename, $target) { if (substr($target, -1) != '/') $target .= '/'; $target .= $filename['name']; move_uploaded_file($filename['tmp_name'], $target); }</pre> and add this to the end: <pre>chmod ("$target", 0644);</pre> so it should look like this: <pre>function tep_copy_uploaded_file($filename, $target) { if (substr($target, -1) != '/') $target .= '/'; $target .= $filename['name']; move_uploaded_file($filename['tmp_name'], $target); chmod ("$target", 0644); }</pre> <b>How do I enable https / SSL for osCommerce?</b> The configuration is stored in two files: Inside your osCommerce folder, you will find these files: ---------------------------- admin/includes/configure.php includes/configure.php ---------------------------- Both files are "read-only" by default. You need to change the file permissions so the owner can read and write to the files. Otherwise you won't be able to save the updated files. This can be done with an FTP program, using the "chmod" options. (Chmod them to 755 while editing them, and back to 400 when done.) The exact procedure to follow depends on your FTP program. You can read about chmod and permissions in the FTP FAQ. Once you have changed the permissions, you can make the changes to the config files. You need to change the lines where HTTPS_SERVER, ENABLE_SSL and HTTPS_COOKIE_DOMAIN are defined. The lines should look like this: --------------- define('HTTPS_SERVER', 'https://echoX.echoechoplus.com/example.com'); define('ENABLE_SSL', true); define('HTTPS_COOKIE_DOMAIN', ''); --------------- You need to replace "echoX" with the real name of your server, eg. echo8. (If you don't know what your server name is, you can login to your site owner panel. On the login page, the servername is at the beginning of the URL.) You also need to replace "example.com" with your real domain name. When you've edited both files, you need to set the permissions back to "read-only". That's it!</content> <author>EchoEcho Support</author> <date>12.07.2009, 21:21</date> </article> </phpmyfaq> |
Copyright © EchoEchoPlus Hosting |