Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin not working correctly after relocating the shop on a root server


jkz

Recommended Posts

Posted

Hi there,

 

Unfortunately I had to change my shop to a root server.

Before relocating the site onto the new server everything worked just fine for almost a year now.

Now it isn't working correctly anymore.

After having corrected the paths in the configure files, the shop backend looks fine and works correctly.

 

But there are two major problems:

- Problem A - A cookie issue is not allowing customers to put articles into the shopping basket nor to log in.

(I found several people in the forum having the same troubles, but didn't get help in clear words. I spent one and a half day searching forums (including this one).)

- Problem B - A path issue that is not allowing me to make any actions anymore within the Admin panel

(In some menues I get variables showing up instead of the texts for these variables. When clicking on any action to process informations, nothing works.)

 

I have my shop on the https://-side running, while on the http://-side there is a wordpress database.

So nothing wrong about having both URL-paths leading to the secure site.

(Everything worked fine like this on a shared server for almost a year now.)

 

- Problem A - In my opinion must have something to do with the SSL certificate or with an incorrect path for the cookies.

- Problem B - must have something to do with the paths for the ADMIN directory or with locating the languages or with the PHP.ini

"register_long_arrays Off Off" or "safe_mode Off On".

(However, I've asked my hosting provider to change this into "register_long_arrays On On" or "safe_mode Off Off" a moment ago.)

 

Every help is much appreciated!

Unfortunately I'm no Geek, I work on a try and error basis, so please be patient with me and try to tell me things from the ground

(However, I got my shop working back in 2009... (And the geeks that can help me come back from their holidays only in a few weeks.))

 

-----------------------

Version: OcCommerce 2.2 RC2

-----------------------

 

 

-----------------------

PHP Version 5.1.6

-----------------------

PHP Core

Directive Local Value Master Value

allow_call_time_pass_reference Off Off

allow_url_fopen On On

always_populate_raw_post_data Off Off

arg_separator.input & &

arg_separator.output & &

asp_tags Off Off

auto_append_file no value no value

auto_globals_jit On On

auto_prepend_file no value no value

browscap no value no value

default_charset no value no value

default_mimetype text/html text/html

define_syslog_variables Off Off

disable_classes no value no value

disable_functions no value no value

display_errors Off Off

display_startup_errors Off Off

doc_root no value no value

docref_ext no value no value

docref_root no value no value

enable_dl On On

error_append_string no value no value

error_log no value no value

error_prepend_string no value no value

error_reporting 2047 2047

expose_php On On

extension_dir /usr/lib64/php/modules /usr/lib64/php/modules

file_uploads On On

html_errors On On

ignore_repeated_errors Off Off

ignore_repeated_source Off Off

ignore_user_abort Off Off

implicit_flush Off Off

include_path .: .:

log_errors On On

log_errors_max_len 1024 1024

magic_quotes_gpc Off Off

magic_quotes_runtime Off Off

magic_quotes_sybase Off Off

mail.force_extra_parameters no value no value

max_execution_time 30 30

max_file_uploads 20 20

max_input_nesting_level 64 64

max_input_time 60 60

memory_limit 32M 32M

open_basedir /var/www/vhosts/***.com/httpsdocs:/tmp no value

output_buffering 4096 4096

output_handler no value no value

post_max_size 8M 8M

precision 14 14

realpath_cache_size 16K 16K

realpath_cache_ttl 120 120

register_argc_argv Off Off

register_globals On On

register_long_arrays Off Off

report_memleaks On On

report_zend_debug On On

safe_mode Off On

safe_mode_exec_dir no value no value

safe_mode_gid Off Off

safe_mode_include_dir no value no value

sendmail_from no value no value

sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

serialize_precision 100 100

short_open_tag On On

SMTP localhost localhost

smtp_port 25 25

sql.safe_mode Off Off

track_errors Off Off

unserialize_callback_func no value no value

upload_max_filesize 2M 2M

upload_tmp_dir no value no value

user_dir no value no value

variables_order EGPCS EGPCS

xmlrpc_error_number 0 0

xmlrpc_errors Off Off

y2k_compliance On On

zend.ze1_compatibility_mode Off Off

-----------------------

 

 

-----------------------

Apache Environment

-----------------------

Variable Value

HTTPS on

HTTP_HOST ***.com

SERVER_SIGNATURE <address>Apache/2.2.3 (CentOS) Server at ***.com Port 443</address>

SERVER_SOFTWARE Apache/2.2.3 (CentOS)

SERVER_NAME ***.com

SERVER_ADDR 000.000.000.000

SERVER_PORT 443

 

 

-----------------------

admin/configure.php

-----------------------

define('HTTP_SERVER', 'https://www.***.com/');

define('HTTP_CATALOG_SERVER', 'https://www.***.com/');

define('HTTPS_CATALOG_SERVER', 'https://***.com/');

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/***.com/httpsdocs/');

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

define('DIR_FS_ADMIN', '/var/www/vhosts/*.com/httpsdocs/admin/');

define('DIR_WS_CATALOG', '../');

define('DIR_FS_CATALOG', '/var/www/vhosts/***.com/httpsdocs/');

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', '***');

define('DB_SERVER_PASSWORD', '***');

define('DB_DATABASE', '***');

define('USE_PCONNECT', 'true');

define('STORE_SESSIONS', 'mysql');

?>

 

-----------------------

configure.php

-----------------------

define('HTTP_SERVER', 'https://www.***.com/');

define('HTTPS_SERVER', 'https://www.***.com/');

define('ENABLE_SSL', true);

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

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '../../../');

define('DIR_WS_HTTPS_CATALOG', '../../../');

define('DIR_FS_CATALOG', '/var/www/vhosts/***.com/httpsdocs/');

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_DOWNLOAD', DIR_FS_CATALOG . 'download/');

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

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '***');

define('DB_SERVER_PASSWORD', '***');

define('DB_DATABASE', '***');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

SafariSchnappschuss040.jpg

SafariSchnappschuss041.jpg

Archived

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

×
×
  • Create New...