Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Am I On the Right Track?


Sohgave

Recommended Posts

I have given up on the renaming of the "admin" folder. After 4 hours, countless calls to hosting support, 5 fresh installations of osCommerce, I could only arrive at a 500 Internal Server Error. I think the pinned article for this topic should be scrubbed for accurracy and caveats that users face. This is an important issue and I've noticed a variety of people struggle with it...

 

So far, I have a working storefront and as I progress I'm learning quite a bit. I'm looking for advice, corrections and encouragement please. Am I on the right track so far with this setup? Here are the items I've managed to accomplish so far:

 

1.) Set Folder Permissions using Security Directory Permissions utility within osCommerce. The recommended permissions match the displayed permissions.

 

 

2.) Modified SSL settings for

"[root]/catalog/admin/includes/configure.php" to be:

 

define('HTTP_SERVER', 'http://shop.[mydomainname].com');

define('HTTPS_SERVER', 'https://shop.[mydomainname].com');

define('ENABLE_SSL', 'true');

define('HTTP_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

define('HTTPS_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

...

 

 

"[root]/catalog/includes/configure.php" to be:

 

define('HTTP_SERVER', 'http://shop.[mydomainname].com');

define('HTTP_CATALOG_SERVER', 'http://shop.[mydomainname].com');

define('HTTPS_CATALOG_SERVER', 'https://shop.[mydomainname].com');

define('ENABLE_SSL_CATALOG', 'true');

...

 

 

3.) Modified file permissions for:

"[root]/catalog/admin/includes/configure.php" to be 504

"[root]/catalog/includes/configure.php" to be 504

 

 

4.) Double checked on:

- admin/filemanager.php (not present)

- $login_request = true; exists under "Released under the GNU General Public License" on "[root]/catalog/admin/login.php"

- "[root]/catalog/admin/filemanager.php" does not exist

- "[root]/catalog/admin/define_language.php" I deleted this then reset the "admin" folder permissions back to 504 as I needed to relax the permissions at the "admin" folder level in order to delete this file. I'm unclear on where the "link" is for "define_language.php" in "Tools"

 

Also, I don't understand why the folder "[root]/catalog/includes/local/" exists. The contents of this directory include only a README.txt file that states the directory should contain a "configure.php" file. However, and in explicit contrast to replies I've been getting from the forum, the "configure.php" in this folder should be removed...making the folder useless??? Weird.

 

 

I know that posting url's is helpful, but until I feel pretty confident I've taken every precaution to lock down the cart, I'm hesitant to post those.

 

Thanks everyone. I appreciate the assistance. If I can help you, please let me know...

Thanks,

Shawn

 

"Surface the ship! Prepare to muster all personnel to escape hatches.

Break out the rafts. Lash them to the deck.

We'll use them as shelters until the fleet arrives."

Link to comment
Share on other sites

define('HTTP_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

define('HTTPS_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

 

 

 

 

 

define('HTTP_COOKIE_DOMAIN', 'www.site.com');

define('HTTPS_COOKIE_DOMAIN', 'www.site.com');

 

 

 

 

 

assuming you have a dedicated SSL.

 

 

 

 

Satish

 

 

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

/catalog/includes/local/

 

 

 

 

used by developers if they want some local configuration while developing.

 

 

 

 

Satish

 

 

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

 

 

 

2.) Modified SSL settings for

"[root]/catalog/admin/includes/configure.php" to be:

 

define('HTTP_SERVER', 'http://shop.[mydomainname].com');

define('HTTPS_SERVER', 'https://shop.[mydomainname].com');

define('ENABLE_SSL', 'true');

define('HTTP_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

define('HTTPS_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

...

 

 

"[root]/catalog/includes/configure.php" to be:

 

define('HTTP_SERVER', 'http://shop.[mydomainname].com');

define('HTTP_CATALOG_SERVER', 'http://shop.[mydomainname].com');

define('HTTPS_CATALOG_SERVER', 'https://shop.[mydomainname].com');

define('ENABLE_SSL_CATALOG', 'true');

...

 

 

 

Thanks everyone. I appreciate the assistance. If I can help you, please let me know...

 

 

The first that you say is from admin/includes is actually part of a catalog configure.php

 

the second that you say is from catalog/includes is part of a admin configure.php

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Link to comment
Share on other sites

The first that you say is from admin/includes is actually part of a catalog configure.php

 

the second that you say is from catalog/includes is part of a admin configure.php

 

 

After comparing the source code that I posted (which you claim is incorrect) to source code from a clean download (obviously correct code), I believe that everything is fine. The code blocks match and therefore I remain confident in my original post. If you have specifics to back your claim up that I have identified them incorrectly, please post that evidence.

 

thanks,

s

Thanks,

Shawn

 

"Surface the ship! Prepare to muster all personnel to escape hatches.

Break out the rafts. Lash them to the deck.

We'll use them as shelters until the fleet arrives."

Link to comment
Share on other sites

I have clean un modified downloads of every version of since 2002 (2.2MS1).

 

None of the admin config files have ever referenced anything about cookie settings.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I have clean un modified downloads of every version of since 2002 (2.2MS1).

 

None of the admin config files have ever referenced anything about cookie settings.

 

I'll do some more investigation. Thanks.

 

Oh...by the way... where do you get your "clean un modified downloads" from? Let's start with that...

Thanks,

Shawn

 

"Surface the ship! Prepare to muster all personnel to escape hatches.

Break out the rafts. Lash them to the deck.

We'll use them as shelters until the fleet arrives."

Link to comment
Share on other sites

V2.3.1 you can download from the downloads page here.

 

The others I retrieved at sourceforge.net or from the downloads page here (when the applicable versions were listed there).

 

Not sure how many versions are still availble at sourceforge.net though.

 

If you can find a link to a free download of osc where the admin/includes/configure.php has anything at all about cookies I'd like to see it.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

V2.3.1 you can download from the downloads page here.

 

The others I retrieved at sourceforge.net or from the downloads page here (when the applicable versions were listed there).

 

Not sure how many versions are still available at sourceforge.net though.

 

If you can find a link to a free download of osc where the admin/includes/configure.php has anything at all about cookies I'd like to see it.

 

I just downloaded osCommerce 2.3.1 from the downloads page on this web site.

I unzipped the compressed file

I opened "catalog/includes/configure.php which is one of two files I referred to originally.

Lines 19-20:

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

 

...

How say you sir?

Thanks,

Shawn

 

"Surface the ship! Prepare to muster all personnel to escape hatches.

Break out the rafts. Lash them to the deck.

We'll use them as shelters until the fleet arrives."

Link to comment
Share on other sites

I have given up on the renaming of the "admin" folder. After 4 hours, countless calls to hosting support, 5 fresh installations of osCommerce, I could only arrive at a 500 Internal Server Error. I think the pinned article for this topic should be scrubbed for accurracy and caveats that users face. This is an important issue and I've noticed a variety of people struggle with it...

 

So far, I have a working storefront and as I progress I'm learning quite a bit. I'm looking for advice, corrections and encouragement please. Am I on the right track so far with this setup? Here are the items I've managed to accomplish so far:

 

1.) Set Folder Permissions using Security Directory Permissions utility within osCommerce. The recommended permissions match the displayed permissions.

 

 

2.) Modified SSL settings for

"[root]/catalog/admin/includes/configure.php" to be:

 

define('HTTP_SERVER', 'http://shop.[mydomainname].com');

define('HTTPS_SERVER', 'https://shop.[mydomainname].com');

define('ENABLE_SSL', 'true');

define('HTTP_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

define('HTTPS_COOKIE_DOMAIN', ''); // IT SEEMS LIKE I SHOULD HAVE A VALUE HERE

...

 

 

"[root]/catalog/includes/configure.php" to be:

 

define('HTTP_SERVER', 'http://shop.[mydomainname].com');

define('HTTP_CATALOG_SERVER', 'http://shop.[mydomainname].com');

define('HTTPS_CATALOG_SERVER', 'https://shop.[mydomainname].com');

define('ENABLE_SSL_CATALOG', 'true');

...

 

 

3.) Modified file permissions for:

"[root]/catalog/admin/includes/configure.php" to be 504

"[root]/catalog/includes/configure.php" to be 504

 

 

4.) Double checked on:

- admin/filemanager.php (not present)

- $login_request = true; exists under "Released under the GNU General Public License" on "[root]/catalog/admin/login.php"

- "[root]/catalog/admin/filemanager.php" does not exist

- "[root]/catalog/admin/define_language.php" I deleted this then reset the "admin" folder permissions back to 504 as I needed to relax the permissions at the "admin" folder level in order to delete this file. I'm unclear on where the "link" is for "define_language.php" in "Tools"

 

Also, I don't understand why the folder "[root]/catalog/includes/local/" exists. The contents of this directory include only a README.txt file that states the directory should contain a "configure.php" file. However, and in explicit contrast to replies I've been getting from the forum, the "configure.php" in this folder should be removed...making the folder useless??? Weird.

 

 

I know that posting url's is helpful, but until I feel pretty confident I've taken every precaution to lock down the cart, I'm hesitant to post those.

 

Thanks everyone. I appreciate the assistance. If I can help you, please let me know...

How say you?

:unsure:

 

I stand on what I've already said.

 

The admin file doesn't reference cookies.

 

It never has.

 

From your last post:

 

I just downloaded osCommerce 2.3.1 from the downloads page on this web site.

I unzipped the compressed file

I opened "catalog/includes/configure.php which is one of two files I referred to originally.

Lines 19-20:

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

 

We're not talking about the same file, Sir.

 

The catalog config file has always had cookie settings in it.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

How say you?

:unsure:

 

I stand on what I've already said.

 

The admin file doesn't reference cookies.

 

It never has.

 

From your last post:

 

 

 

We're not talking about the same file, Sir.

 

The catalog config file has always had cookie settings in it.

 

Aha! Therein lies the issue. My admin/includes/configure.php does not have the cookies reference lines either. My original post is a misprint. I'll edit the post... thank you for pointing it out.

 

And you should try to relax a little bit man... its cool...

Thanks,

Shawn

 

"Surface the ship! Prepare to muster all personnel to escape hatches.

Break out the rafts. Lash them to the deck.

We'll use them as shelters until the fleet arrives."

Link to comment
Share on other sites

I am relaxed.

 

I was just agreeing with Julian.

 

You should read your posts more carefully.

 

Say what you mean and mean what you say.

 

And yes, it's all cool....

:)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I am relaxed.

 

I was just agreeing with Julian.

 

You should read your posts more carefully.

 

Say what you mean and mean what you say.

 

And yes, it's all cool....

:)

 

Mistakes happen dude. get over it. it doesn't really sound like your cool with it to be honest man. sounds like your disturb that somebody made a mistake on your watch. if you look around this forum, these posts are littered with mistakes. take your vengence out on everyone or chill... giant bold red text and then the lecture...wow. but it's all good right...

Thanks,

Shawn

 

"Surface the ship! Prepare to muster all personnel to escape hatches.

Break out the rafts. Lash them to the deck.

We'll use them as shelters until the fleet arrives."

Link to comment
Share on other sites

I'm not distubed about anything.

 

You make mistakes.

 

I make mistakes.

 

The emphasis was provided only to lead to clarification of the misunderstanding.

 

And I'm not "on watch".

 

I hang around to help.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I'm not distubed about anything.

 

You make mistakes.

 

I make mistakes.

 

The emphasis was provided only to lead to clarification of the misunderstanding.

 

And I'm not "on watch".

 

I hang around to help.

 

ok man. again. thanks. you were right. i was wrong.

Thanks,

Shawn

 

"Surface the ship! Prepare to muster all personnel to escape hatches.

Break out the rafts. Lash them to the deck.

We'll use them as shelters until the fleet arrives."

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...