Forums / Installing on a Linux/Unix Server / 2 Issues...Wrong Folder and Authorize.net AIM

2 Issues...Wrong Folder and Authorize.net AIM

Views: 3,864

Results 1 to 17 of 17
27 Sep 2013, 8:12 PM
#1
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

2 Issues...Wrong Folder and Authorize.net AIM

Hi! I have 2 issues, and I think that the first one is causing the 2nd one.

1st Issue: I screwed up and installed the Zen Cart v 1.5.1 into a sub-folder, http://www.SelfMadeCustoms.com/sitekikstore2013. From there I started building the site and it is currently up and running perfectly...BUT the website it is supposed to be running from is http://www.KIKStore.com. If you go to https://www.KIKStore.com, it looks great until you click on anything and it re-directs you to https://www.SelfMadeCustoms.com/sitekikstore2013. Again, works fine, but I'm afraid it will confuse my customers, so if this issue is "fixable", I prefer for it to stay in the https://www.KIKStore.com folder.

2nd Issue: I installed Authorize.net SIM and again, everything works great. The SSL is now done and I wanted to switch it over to AIM, so I followed all of the instructions in the "How do I enable SSL after I have installed Zen Cart?" tutorial, but it is still giving me the same ALERT: For security reasons, Installation of this module is disabled until your Admin is configured for SSL. Both configure.php's show it is pointing to https://selfmadecustoms.com with "true" selected.

I am brand new to Zen Cart, SSL, and Authorize.net...so how would I go about fixing these problems?

27 Sep 2013, 8:47 PM
#3
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

Re: 2 Issues...Wrong Folder and Authorize.net AIM

So you are saying I should go back to those 2 configure.php files and change them to point to https://kikstore.com. Will that change all of the info in GoDaddy...database, etc.?

And the 2nd step of the link you posted says to go into the Session Directory...this is what it shows now:

/home/content/s/m/c/smcinc2009/html/sitekikstore2013/cache

...and our entire site is stored inside the /sitekikstore2013 folder, so I think that's correct...?

27 Sep 2013, 8:58 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 Issues...Wrong Folder and Authorize.net AIM

You state that you want this to be

the website it is supposed to be running from is http : //www.KIKStore.com
But you have this in your configure file
Both configure.php's show it is pointing to https : //selfmadecustoms.com
Not sure that GD supports "addon domains" so you should get hosting for the domain you desire

Zen-Venom Get Bitten

27 Sep 2013, 9:03 PM
#5
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

Re: 2 Issues...Wrong Folder and Authorize.net AIM

kobra:

You state that you want this to be

But you have this in your configure file

Not sure that GD supports "addon domains" so you should get hosting for the domain you desire

It's a LINUX server, so both sites are currently hosted by GoDaddy. https://www.SelfMadeCustoms.com is the main folder, with https://www.KIKStore.com "inside" it. I hope that makes sense, I don't feel like I'm explaining this very well.

27 Sep 2013, 9:36 PM
#6
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

Re: 2 Issues...Wrong Folder and Authorize.net AIM

I changed both of the configure.php files from https://selfmadecustoms.com to https://kikstore.com. No changes on the site, the home page still loads as https://www.kikstore.com, and if you click on anything it redirects you to https://www.selfmadecustoms.com. Again, all pages look the way they are supposed to look, everything works fine, just the https://www.selfmadecustoms.com is throwing me off...which I think is throwing off the SSL stuff.

27 Sep 2013, 10:26 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 2 Issues...Wrong Folder and Authorize.net AIM

If your site for kikstore.com has your data in the root of that domain things should work as stevesh and kobra have indicated ...

To test out the situation ...

Could you post, from the server, the file in:
/includes/configure.php

without your database information and password ...

NOTE: be sure you are posting the information contained in the file on the server, not what you have on your computer, as you may not be updating the file or something which is causing this issue ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Sep 2013, 3:02 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 2 Issues...Wrong Folder and Authorize.net AIM

Right. These are all issues with the contents of your configure.php files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2013, 1:05 PM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: 2 Issues...Wrong Folder and Authorize.net AIM

And if you post the contents of one of the configure.php files (after Xing out the database name and login stuff), we can probably spot the problem.

30 Sep 2013, 1:53 PM
#10
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

Re: 2 Issues...Wrong Folder and Authorize.net AIM

Ajeh:

If your site for kikstore.com has your data in the root of that domain things should work as stevesh and kobra have indicated ...

To test out the situation ...

Could you post, from the server, the file in:
/includes/configure.php

without your database information and password ...

NOTE: be sure you are posting the information contained in the file on the server, not what you have on your computer, as you may not be updating the file or something which is causing this issue ...

When I downloaded the includes/configure.php straight out of our GoDaddy FTP this morning, the http server info (where I put the arrows) are showing selfmadecustoms.com, so I changed them back to kikstore.com and the site does NOT work correctly...all I can assume is I did not alter/save them correctly on Friday. Soooo...back to square one!

I switched them back to selfmadecustoms.com AGAIN and downloaded the info for y'all to look at. Again, everything works correctly, just the home page says kikstore.com until you click on something, then everything switches to selfmadecustoms.com/...

Okay here is my current includes/configure.php downloaded straight out of my GoDaddy FTP:

<?php /** * @package Configuration Settings circa 1.5.1 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2013-09-04 11:33:05 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://selfmadecustoms.com'); <---------------------------------------- define('HTTPS_SERVER', 'https://selfmadecustoms.com'); <----------------------------------------- // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/sitekikstore2013/'); define('DIR_WS_HTTPS_CATALOG', '/sitekikstore2013/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/content/s/m/c/smcinc2009/html/sitekikstore2013/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/home/content/s/m/c/smcinc2009/html/sitekikstore2013/logs'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_CHARSET', 'latin1'); define('DB_SERVER', 'Database'); define('DB_SERVER_USERNAME', 'Database'); define('DB_SERVER_PASSWORD', 'Password'); define('DB_DATABASE', 'DataBase'); // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/content/s/m/c/smcinc2009/html/sitekikstore2013/cache'); // EOF One more thing...the SSL seems to be being recognized by Zen Cart now, it made me change my password when I logged in a few minutes ago...but the AIM payment module still says "ALERT: For security reasons, Installation of this module is disabled until your Admin is configured for SSL."
30 Sep 2013, 2:43 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 Issues...Wrong Folder and Authorize.net AIM

but the AIM payment module still says "ALERT: For security reasons, Installation of this module is disabled until your Admin is configured for SSL.
Have you enabled ssl in your /secret_admin/includes/configure.php file???

Zen-Venom Get Bitten

30 Sep 2013, 3:47 PM
#12
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

Re: 2 Issues...Wrong Folder and Authorize.net AIM

kobra:

Have you enabled ssl in your /secret_admin/includes/configure.php file???

I enabled SSL in 2 spots:

includes/configure.php
admin/includes/configure.php

I assume the 2nd one is the secret_admin?

30 Sep 2013, 5:21 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 Issues...Wrong Folder and Authorize.net AIM

Post the contents of your admin/includes/configure.php file from a fresh download of the file
Blank out database details

Zen-Venom Get Bitten

30 Sep 2013, 7:58 PM
#14
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

Re: 2 Issues...Wrong Folder and Authorize.net AIM

kobra:

Post the contents of your admin/includes/configure.php file from a fresh download of the file
Blank out database details

Here ya go:

<?php /** * @package Configuration Settings circa 1.5.1 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2013-09-04 11:33:09 */ /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ /** * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN: * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries: */ define('HTTP_SERVER', 'http://selfmadecustoms.com'); define('HTTPS_SERVER', 'https://selfmadecustoms.com'); define('HTTP_CATALOG_SERVER', 'http://selfmadecustoms.com'); define('HTTPS_CATALOG_SERVER', 'https://selfmadecustoms.com'); // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_ADMIN', 'true'); // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_CATALOG', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path']; define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_CATALOG', '/sitekikstore2013/'); define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_HTTPS_CATALOG', '/sitekikstore2013/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/'); //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/content/s/m/c/smcinc2009/html/sitekikstore2013/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/home/content/s/m/c/smcinc2009/html/sitekikstore2013/logs'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_CHARSET', 'latin1'); define('DB_SERVER', 'Server'); define('DB_SERVER_USERNAME', 'Username'); define('DB_SERVER_PASSWORD', 'Password'); define('DB_DATABASE', 'Database'); // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/content/s/m/c/smcinc2009/html/sitekikstore2013/cache'); // Define the webserver and path parameters // Main webserver: eg-http://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com /* * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings */ // EOF
30 Sep 2013, 8:03 PM
#15
kristx avatar

kristx

New Zenner

Join Date:
Sep 2013
Location:
Texas
Posts:
30
Plugin Contributions:
0

Re: 2 Issues...Wrong Folder and Authorize.net AIM

AND ANOTHER ISSUE...ugh! We received orders all weekend just fine, I enabled the SSL's this morning, and now the Authorize.net is acting up again. This is what it is saying now when an order comes through:

Your script timed out while we were trying to post transaction results to it.
Transaction ID: 5575244583
Transaction Result: This transaction has been approved.

The following message was displayed to the customer:

------------------------------An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.

This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service.

Going to disable the SSL for now until we can figure out what is going on.

***Just did a test order and disabling the SSL worked to fix the Error shown above. No clue what is happening or why.

30 Sep 2013, 8:13 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 Issues...Wrong Folder and Authorize.net AIM

Check your private messages

Zen-Venom Get Bitten

4 Oct 2013, 6:50 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 2 Issues...Wrong Folder and Authorize.net AIM

KrisTX:

/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. /
/
**** The 2 files should be kept separate and not used to overwrite each other. ***********/

/**

  • WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
  • To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
    /
    define('HTTP_SERVER', 'http
    *s**://selfmadecustoms.com');
    define('HTTPS_SERVER', 'https://selfmadecustoms.com');
    define('HTTP_CATALOG_SERVER', 'http://selfmadecustoms.com');
    define('HTTPS_CATALOG_SERVER', 'https://selfmadecustoms.com');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');

As per the instructions in the comments, highlighted here in blue, you need to make the change shown in red.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.