Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configure.php


LondonTown

Recommended Posts

Posted

Hi, I have just changed domain to my osc store and now can't get into in admin login area to my osc shop. After a long think about it, I think it maybe to do with my configure.php files but I can't work out whats up with it. I was wondering if somebody could take a look and advise me on what the problem maybe.

 

Here is my configure.php codes

 

Many Thanks

 

 

 

[code]  define('HTTP_SERVER', 'http://www.mydomain.com');
 define('HTTPS_SERVER', 'http://www.mydomain.com');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/a000000000ublic_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

 

admin>includes>configure.php

 

 

<?php
 define('HTTP_SERVER', 'http://www.mydomain.com');
 define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');
 define('HTTPS_CATALOG_SERVER', 'http://www.mydomain.com');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/home/a0000000/public_html/catalog/');
 define('DIR_WS_ADMIN', '/catalog/admin/');
 define('DIR_FS_ADMIN', '/home/a0000000/public_html/catalog/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/home/a0000000/public_html/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/');

Posted

you have some big mistakes there

 

this is what you must have in your configure.php in admin

 

 

<?php
/*
 $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 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', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', '');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // 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', '');
 define('DB_SERVER_USERNAME', 'mysql');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', '');
?>

 

 

and this is for includes/configure.php

 

<?php
/*
 $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

 

now as i can see you have some errors in the path

 

define('DIR_FS_CATALOG', '/home/a000000000ublic_html/');

 

define('DIR_FS_CATALOG', '/home/a0000000/public_html/catalog/');

 

you forgot that /

Posted

I've checked and double checked it and uploaded the following and went to mydomain.com/admin but still isn't uploading to admin login page and going straight to my host.

 

Can someone check it and see whats up with it, if there is even a problem with it all.

 

 

Admin>Includes>configure.php

 

<?php
 define('HTTP_SERVER', 'http://www.mydomain.com');
 define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');
 define('HTTPS_CATALOG_SERVER', 'http://www.mydomain.com');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/home/a0000000000/public_html/catalog/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/home/a0000000000/public_html/catalog/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/home/a0000000000/public_html/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/');

 

 

Includes>Configure.php

 

<?php
 define('HTTP_SERVER', 'http://www.mydomain.com');
 define('HTTPS_SERVER', 'http://www.mydomain.com');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'http://www.mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', 'http://www.mydomain.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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/');

Posted

catalog/includes configure.php paths are showing that your shop is located in root

 

admin/includes/configure.php paths are showing your shop is located in /catalog/ and NOT in root

Posted
catalog/includes configure.php paths are showing that your shop is located in root

 

Isn't it meant to be showing in root :?

 

admin/includes/configure.php paths are showing your shop is located in /catalog/ and NOT in root

 

Could you advise what I would ned to do to correct this issue?

Posted
Isn't it meant to be showing in root :?

 

 

 

Could you advise what I would ned to do to correct this issue?

 

 

Anyone else know?

Posted
Anyone else know?

This has been dragging on for a while.

 

You need to decide whether your site is in root or catalog, not both.

Posted
This has been dragging on for a while.

 

You need to decide whether your site is in root or catalog, not both.

 

 

I don't know what it means root, people keep saying it but I don't know what it is and how I would change the code or what ever I need to to.

 

I agree it's been dragging for a while and it's pissing me off something rotten.

 

I got site working, domain work and cant get into the admin section to add products.

Posted
I don't know what it means root, people keep saying it but I don't know what it is and how I would change the code or what ever I need to to.

 

I agree it's been dragging for a while and it's pissing me off something rotten.

 

I got site working, domain work and cant get into the admin section to add products.

Your root directory is public_html. If your shop is installed in root, the path to your shop index page would be www.domain.com/index.php. If the shop was in the catalog directory, the path would be www.domain.com/catalog/index.php. Once you figure out whether you are going to put your shop in root or in the catalog directory, you can enter the correct paths in the configure files and upload them to your server.

Posted
I don't know what it means root, people keep saying it but I don't know what it is and how I would change the code or what ever I need to to.

A site is in root means, in your case, inside public_html folder and not inside another subfolder such as catalog folder.

 

I got site working, domain work and cant get into the admin section to add products.
That means that the front end of your store is working. According to your previous post in this thread, your site is in root based on the configure.php file you posted. Your admin is/should be also in root.

 

Here are the changes for admin/includes configure.php

define('HTTP_SERVER', 'http://www.mydomain.com');
define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');
define('HTTPS_CATALOG_SERVER', 'http//www.mydomain.com');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/home/a0000000000/public_html/');
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/home/a0000000000/public_html/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_FS_CATALOG', '/home/a0000000000/public_html/');

 

If you have any redirect via htaccess for your admin, disable them by commenting them #.

Posted

Thanks Bryce, much appreciated.

 

I got admin page to come up and managed to login. However when I click to look at anything in my shop admin page it redirects me to host, Does this mean I need to unpack all admin files to my public_html?

 

For example when I click catalog, it will redirect me to host and will do this to anything I click.

 

Thanks Again

Posted
... Does this mean I need to unpack all admin files to my public_html?
That's a big NO.

When you place the cursor in any of the links in admin, what is displayed?

 

For example: www.mydomain.com/admin/configuration.php

Posted

When I login to my admin, I come to the admin area of my shop, thats all normal.

 

It's when I click any links or just anything on admin page it redirects me to my host.

 

I can login but can't do anything.

Posted

Try these...

 

1. go to your htaccess file and delete DirectoryIndex line and try again.

 

If #1 doesn't work, answer #2.

 

2. Place the cursor in any of the links in admin but do not click, what link is displayed?

Look at the lower left of your browser.

Posted

London Boi,

You're making a nightmare out of this for yourself. :blink:

 

First off, what happened? Did you move your site or did the osC install go bad?

I won't comment on your statement that someone told you to have an empty htaccess file for security... Hahahaha oop's my bad! :blush:

 

Ok, let's stop jerking around and fix your configure.php files so your site works. So far it seems the URL link to your site would look something like this - http://mydomain.com and NOT http://mydomain.com/catalog. Please correct me if wrong!

 

File = includes > configure.php

 

define('HTTP_SERVER', 'http://mydomain.com'); // Change to your domain name

define('HTTPS_SERVER', 'https://secure.hostname.com/~yourlinuxsitename'); //Only when using an SSL certificate.

define('ENABLE_SSL', true); // secure webserver for checkout procedure? True only if SSL activated or else false.

define('HTTP_COOKIE_DOMAIN', mydomain.com'); // Change to your domain name

define('HTTPS_COOKIE_DOMAIN', 'secure.hostname.com'); //Only when using an SSL certificate.

define('HTTP_COOKIE_PATH', '/'); // used to be /catalog/

define('HTTPS_COOKIE_PATH', '/'); // used to be /catalog/

define('DIR_WS_HTTP_CATALOG', '/'); // used to be /catalog/

define('DIR_WS_HTTPS_CATALOG', '/'); // used to be /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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

File = admin > includes > configure.php

 

define('HTTP_SERVER', 'http://mydomain.com'); // Change to your domain name

define('HTTP_CATALOG_SERVER', 'http://mydomain.com'); // Change to your domain name

define('HTTPS_CATALOG_SERVER', 'https://secure.hostname.com/~yourlinuxsitename'); //Only when using an SSL certificate.

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module, depends on SSL cert.

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server.

define('DIR_WS_ADMIN', '/admin/'); // Used to be /catalog/admin/

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/'); // Used to be /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/');

 

Change the bold red text to your actual domain name.

Change the normal red text to whatever your SSL certificate calls for, or leave blank ' '.

 

I have no idea why you have this - '/home/a0000000000/public_html/' ? Specifying public_html isn't usually necessary as most hosting companies point to that as your root automatically. Any directories or files outside of your root (public_html) are for your and your host eyes only and should not be accessable by the public.

 

;)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted
When I put my cursor over configuration, this is what I see bryce in bottom left.

 

http://www.mydomain.com/admin/configuratio...x=configuration

 

I also checked my .htaccess and it's completly blank. I think the reason it's blank is because I got told if I delete code in the .htaccess that it would make my site safer.

I saw the htaccess prior to your edit which was still pointing to catalog/greenmania.

 

One reason you keep ending to your host site is because you are somehow being redirected to a url that doesn't exist or invalid.

 

According to you, your htaccess is now blank.

Both your configure.php files are working fine. This I am sure (read previous posts on this thread).

So, everything should be working well.

 

I got told if I delete code in the .htaccess that it would make my site safer.
LOL

 

Good luck

 

:::Stick a fork in me. I am done:::

Posted

jhande I have my shop installed, domain working fine, I can login to my admin page to my shop , but when I click to do anything in there for example add a product, it loads up here.

 

http://error.000webhost.com/not_found.html

 

And will show this message below

 

HTTP Error 404 Not Found

 

http://www.000webhost.com/

 

 

I am also sure my configure.php is correct, Do I need to unpack admin files outside of public_html

 

 

Although bryce you may find it funny, it really fucking isn't somebody said to me thats what I needed to do, this is why I keep getting knockbacks because people keep say do different things all the time, it's really pissing me off. I just want a straight answer to my question but with people saying so many things, I then try and then have to keep rectifying the problem.

 

jhande yes my site shows as http://www.mysite.com/

Posted

Here are my configure.php files jhande, you can check em but Im almost 99% sure they are correct.

 

 

Admin>Includes>configure

 

<?php
 define('HTTP_SERVER', 'http://www.mysite.com');
 define('HTTP_CATALOG_SERVER', 'http://www.mysite.com');
 define('HTTPS_CATALOG_SERVER', 'http://www.mysite.com');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/home/a00000000/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/home/a00000000/public_html/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/a00000000/public_html/');
 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/');

 

 

Includes>configure.php

 

<?php
 define('HTTP_SERVER', 'http://www.mydomain.com');
 define('HTTPS_SERVER', 'http://www.mydomain.com');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/a000000/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Posted
Here are my configure.php files jhande, you can check em but Im almost 99% sure they are correct.

 

 

Admin>Includes>configure

 

 

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

define('HTTP_CATALOG_SERVER', 'http://www.mysite.com');

define('HTTPS_CATALOG_SERVER', 'http://www.mysite.com'); // Should be blank as you don't have an enabled SSL yet, leave ' '.

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/a00000000/public_html/'); // Should be $DOCUMENT_ROOT

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

define('DIR_FS_ADMIN', '/home/a00000000/public_html/admin/'); // Should be DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', /home/a00000000/public_html/'); // Should be 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/'

 

 

Includes>configure.php

 

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

define('HTTPS_SERVER', 'http://www.mydomain.com');

define('ENABLE_SSL', false);

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

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/a000000/public_html/'); // Should be dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Make a backup of your configure.php files and either try my suggestions or check with your host to make sure the changes are correct.

 

Also look in your admin folder for any .htaccess files. Might have some code in their messing you up. No you don't have to unpack your admin folder to anywhere else.

 

The reason why you can access your admin panel is because it is a direct path so to speak - http://mysite.com/admin/.

Notice in your configure.php file the line - define('DIR_WS_ADMIN', '/admin/'); the DIR = directory, WS = web server, ADMIN = the name of the directory being called for, /admin/ = sub-directory in your root (public_html) where the files are located.

 

A possible reason why you can't do anything from your admin panel is because the path & links are broken. Notice in your configure.php file the line - define('DIR_FS_ADMIN', '/home/a00000000/public_html/admin/'); All it is doing is pointing to your admin folder. Again; DIR = directory, FS = file server, ADMIN = the name of the directory being called for. In this case you need to point to files in both your root and admin directories, hence the DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN.

 

By the way, I hope you have the premium account and not the free one. You'll need some specific benifits that the free account doesn't offer. ;)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Archived

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

×
×
  • Create New...