Site Panel Help User Panel Help Panel Demo's Search Help

Categories

· Show all categories

New Customer FAQs
E-Mail
FTP - File Transfers
Domains
SSH and Telnet
Scripting Languages
Password Protection
MySQL
Stats
Power Tools

· FAQ Home

· EchoEcho+ Support

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&#039;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 &quot;read-only&quot; by default.
You need to change the file permissions so the owner can
read and write to
the files.
Otherwise you won&#039;t be able to save the updated files.
This can be done with an FTP program, using the
&quot;chmod&quot; 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(&#039;HTTPS_SERVER&#039;,
&#039;https://echoX.echoechoplus.com/example.com&#039;);
define(&#039;ENABLE_SSL&#039;, true);
define(&#039;HTTPS_COOKIE_DOMAIN&#039;, &#039;&#039;);
---------------

You need to replace &quot;echoX&quot; with the real name of
your server,
eg. echo8.
(If you don&#039;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 &quot;example.com&quot; with your
real domain
name.

When you&#039;ve edited both files, you need to set the
permissions back to
&quot;read-only&quot;.

That&#039;s it!</content>
	<author>EchoEcho Support</author>
	<date>12.07.2009, 21:21</date>
</article>
</phpmyfaq>

open XML-File

Copyright © EchoEchoPlus Hosting