Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

installing on linux under lamp


Guest

Recommended Posts

Hello everyone

 

For the first time i decided to dip into creating a virtual server on my pc using xampp, at the moment im having some trouble with a couple things. Firstly xampp seems to be working ok, im getting all the relevant services running.

 

My issues are:

i tried to install a new site but im not sure how to change permissions under Linux, so the configure.php files cant be configured correctly.

i have tried the standard

sudo chmod 777 '/opt/lampp/htdocs/simon/images'

And i have tried running a php script that would alter the permissions but get a permission denied returned

If you could tell me how to do this it would be great.

 

To get round this i used a site i have have already made and reconfigured the configure.php manually, but not the images dont load but the general structure and images sizes do any advice? this is my includes/configure.php file

 

<?php
 define('HTTP_SERVER', 'http://localhost');
 define('HTTPS_SERVER', 'http://localhost');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'http://localhost');
 define('HTTPS_COOKIE_DOMAIN', 'http://localhost');
 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', 'localhost');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osc');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

 

Thanks to everyone willing to give me a hand

Link to comment
Share on other sites

just an update i managed to alter the file permissions so that i could install the new site, but all the links lead to a file not found page locally, any help?

Link to comment
Share on other sites

just an update i managed to alter the file permissions so that i could install the new site, but all the links lead to a file not found page locally, any help?

The Apache log file should be giving you a hint on what is wrong. You may need to enable some debug on the re-write rules to see where the file name / file access to going wrong.

 

I'm not sure your configure.php file is correct. The following parameters are only correct if your website is in the root directory defined in the Apache configuration file and not in a sub-directory:

 

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

I'm quite certain the follow parameter is wrong (it should be a directory path, not a hostname):

 

define('DIR_FS_CATALOG', 'localhost');

 

Ben

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...