Jump to content

Archived

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

quikscream

Checkout to Nowhere

Recommended Posts

well i think thats all, thank you so much, i cant believe anyone would stick by me through this.

Well, I'm sitting in a real store, it's still open and not very busy right now.


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites
one more thing, in admin it says to chang my config file because it cannot create a backup

create a 'backups' folder in the admin directory using your ftp program


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites
i have one

Go into admin via http://www.tshirtgod.com/catalog/admin and it will most likely find it.

 

All this is a whole lot easier if you have your own certificate because then the only change is from http to https, no fooling around with proxies. You already have a unique IP.

 

Certs aren't real expensive, ask your host.


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites
no, i tried going in secure, and non secure, neither can make a backup

Well, that could take some experimenting because you might to track down the real machine path to your www directory. Double check the spelling and case of the directory name.

 

instead of using:

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

 

That will be in your hosting control panel. Leave it for now and worry about backups tomorrow.


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites

alright then, good night, thanks for everything

 

and if you get a chance you can PM me the backup issue thing because I dont completly understand what you meant, and after that i swear i wont hound you anymore.

 

thanks again

brian aldrich

Share this post


Link to post
Share on other sites

Try changing

 

define('DIR_WS_ADMIN', '/admin/');

 

to

 

define('DIR_WS_ADMIN', '/catalog/admin/');


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites

create a file called phpinfo.php

 

put this in it

 

<?

phpinfo();

?>

 

(remember, no white space before or after)

 

Upload it to your server to somewhere like http://www.tshirtgod.com/ or a new directory like

 

http://www.tshirtgod.com/utils/

 

then type in http://www.tshirtgod.com/utils/phpinfo and you'll get a whole lot of info about your envronment.

 

Scroll down till you find Environment then you'll find DOCUMENT_ROOT

 

What's happening now is osC is making a call to find your DOCUMENT_ROOT but you can set it explicitly in the config files (I do).

 

Or as an experiment try changing this

 

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

to

 

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'admin/backups/');

 

If it doesn't work change it back.

 

I'm not sure why it's not finding the directory but like I said, I use the explicit path for all FS settings.


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites

alright I meddled for about 2 hours, and i got the back up to work yah!

 

now, do you have any suggestions in customization? I already installed tempalate customizer, but there are so many files, I dont know which ones to edit to change what.

Share this post


Link to post
Share on other sites
alright I meddled for about 2 hours, and i got the back up to work yah!

 

now, do you have any suggestions in customization? I already installed tempalate customizer, but there are so many files, I dont know which ones to edit to change what.

What did you do? What was wrong? At least now you can help the next person.

 

(and I don't mess with much custom stuff, too little time, too much work. I have to sell stuff, make some stuff, take pictures, etc, etc.)

 

I just use what I really need.


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites

I can't say exactly but here is my final product.

 

<?php
/*
$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce
Released under the GNU General Public License
*/
// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
define('HTTP_SERVER', 'http://www.tshirtgod.com/catalog/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.tshirtgod.com/');
define('HTTPS_CATALOG_SERVER', 'https://secure40.nocdirect.com/~jaldrich/tshirtgod/');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/jaldrich/public_html/tshirtgod/catalog/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
define('DIR_WS_ADMIN', 'admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
define('DIR_WS_CATALOG', 'catalog/');
define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
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', DIR_WS_CATALOG . 'includes/languages/');
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_BACKUP', DIR_FS_ADMIN . 'backups/');
// define our database connection
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'jaldrich_tshirt');
define('DB_SERVER_PASSWORD', 'PASSWORD');
define('DB_DATABASE', 'jaldrich_xmb1');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

Share this post


Link to post
Share on other sites
I can't say exactly but here is my final product.

ummm... good idea to change one thing at a time, then change it back if it doesn't work.

 

Just for the record in case someone finds this thread in the future.

 

The change he made that made it work was this:

 

define('DIR_FS_DOCUMENT_ROOT', '/home/jaldrich/public_html/tshirtgod/catalog/');

 

instead of:

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

 

 

 

He introduced some new, minor mistakes by putting slashes ( '/') in the wrong places

 

The slashes should be in the paths ie: '/catalog/' not in the url

 

Not like this: define('HTTP_CATALOG_SERVER', 'http://www.tshirtgod.com/');

 

It will work the other way but it may lead to other problems in the future.

 

 

This is just wrong.

 

define('HTTP_SERVER', 'http://www.tshirtgod.com/catalog/');

 

should be

 

define('HTTP_SERVER', 'http://www.tshirtgod.com');


Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Share this post


Link to post
Share on other sites

×