Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Install Guide


Vger

Recommended Posts

  • Replies 2.4k
  • Created
  • Last Reply

Hi,

 

i installed osC now, but there were some difficulties during the installation:

 

1) "5. Then go to http://www.yourdomain.com/install and begin the install procedure. Your DB Server will probably be 'localhost', your db user name and password (for mysql access) will have been provided to you by your web hosting company. The name of the database you already know - because you just set it up. Do not enable SSL, elect to store sessions in the database and not files (untick the box), and do not enable persistent connections."

 

in my installationpanel there wasnt any checkboxes or options i could manipulate to "elect to store sessions" or to "enable persistent connections" and to "enable SSL". I made the installation and then resetted mySQL to install it again because i might have overseen this configurations. But i didnt, they just arent there.

 

2) And now i am getting an error message on top of my main store page:

 

Warning: session_save_path() [function.session-save-path]: SecureSSI Sicherheitsverletzung: Das Script (/usr/export/www/vhosts/funnetwork/hosting/tehsmile/index.php) hat versucht, ausserhalb von deinem Webspaceverzeichniss, auf die Datei (/tmp) zuzugreifen. Aus Sicherheitsgruenden ist dies nicht erlaubt! in /usr/export/www/vhosts/funnetwork/hosting/tehsmile/includes/functions/sessions.php on line 169

 

Its in german sry ... the script (/usr/export/www/vhosts/funnetwork/hosting/tehsmile/index.php) tried to get into (/tmp) beyond my webspacefolder. This isnt allowed due to security rules. (sry for the bad translation ... i hope that someone can still help me).

 

waiting for help. thank you very much.

 

greetings tehsmile

Link to comment
Share on other sites

Session Save Path and Safe Mode

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

The error is a by-product of using PHP in Safe Mode.

To get around the problem go to your osCommerce Admin Panel -->

Configuration --> Sessions and set Session Save Path to just tmp

with no forward slash before or after tmp. You get this error even if you

have elected to store sessions in the database.

 

If the error prevents you from accessing your admin panel then

access the database via phpMyAdmin, go to the 'configuration' table,

find the Session Save Directory entry (there are several pages of

entries for this table), open it for editing and change /tmp to

just tmp with no slash before (or after) it.

 

Vger

Link to comment
Share on other sites

Hi,

 

again a warning message:

 

Warning: file_exists() [function.file-exists]: SecureSSI Sicherheitsverletzung: Das Script (/usr/export/www/vhosts/funnetwork/hosting/tehsmile/admin/backup.php) hat versucht, ausserhalb von deinem Webspaceverzeichniss, auf die Datei (/usr/bin/gzip) zuzugreifen. Aus Sicherheitsgruenden ist dies nicht erlaubt! in /usr/export/www/vhosts/funnetwork/hosting/tehsmile/admin/backup.php on line 443

 

Warning: file_exists() [function.file-exists]: SecureSSI Sicherheitsverletzung: Das Script (/usr/export/www/vhosts/funnetwork/hosting/tehsmile/admin/backup.php) hat versucht, ausserhalb von deinem Webspaceverzeichniss, auf die Datei (/usr/local/bin/zip) zuzugreifen. Aus Sicherheitsgruenden ist dies nicht erlaubt! in /usr/export/www/vhosts/funnetwork/hosting/tehsmile/admin/backup.php on line 444

 

This appears when i try to backup the store to /admin/backup. I already set the permission on 777. It seems like a related problem to the one i posted before but i dont know how to solve it.

 

thank you for your time.

Link to comment
Share on other sites

Hi Guys,

 

I've just installed the latest V2 on a windows IIS6 Win2k3 server, everythings gone on OK but after the install I'm still getting the warning that it can write to the config file.

 

Both configure.php (includes and admin/includes) is set to Read only (write/execute/modify) all denied... Is there a way round this permissions problem or simply can you point me to the file check within the PHP so that I can disable it from there???

 

ThanX in advance

 

Kymmy

Link to comment
Share on other sites

  • 2 weeks later...

Hi, any kind soul could advise if...oscommerce can only be installed to .com domains?

I'm using byethost as webhost + addon .sg domain,

I have uploaded the catalog files/folders into the htaccess of my .sg domain and set all to 755 except the 2 relevant configure.php files to 755 permissions.

 

I still can't see the www.yourdomain.com/install.....

Please advise? thanks!!

Link to comment
Share on other sites

You've probably uploaded the files to the wrong place.

 

Upload to your main domain, not the alias.

 

The root web folder is usually called /public_html, or /html, or /htdocs or /apache - if in doubt check with your hosting company.

 

Vger

Link to comment
Share on other sites

:blush:

 

Bear with me, I'm new to OS Commerce and PHP/MySQL in general. Any advice would be appreciated.

 

*I'm confused by Step 4, not sure how to set permissions to my folders or where to do that.

 

*I've uploaded the OSCommerce files to my server and created a database server, and then went to yourdomain.com/catalog/install/. I entered the database server name, user name, password, and database name to follow the installation procedure.

 

While the database structure is being imported, it just hangs. From what I can tell the database has been imported; it looks complete from phpMyAdmin.

 

It just stays on Step 1 of the installation procedure and doesn't go forward to Step 2.

 

This is the message I get:

The database structure is now being imported. Please be patient during this procedure.

 

Any clues to what I should do?

 

Thanks everyone!

Sharlene K.

 

Did you hear about the dyslexic agnostic insomniac that stayed up all night wondering if there was a dog?

Link to comment
Share on other sites

Install gets stuck on page 2

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

The most common cause for installation getting stuck in step 2

is that most recent PHP installations have register_long_arrays = OFF

This needs to be turned to ON in the php.ini file (you will need to

stop and restart your server to get this change to take effect.)

 

Vger

Link to comment
Share on other sites

Hi,

 

Brand new with all this, but keen to learn. This has probably been covered somewhere else, but not sure where to look.

 

I've installed the /catalog/ & subdirectories and then ran the install.

 

1st 3 steps were OK. Got to page 4 telling me I had a successful install. Then I clicked on Admin and I get a screen saying....

 

"

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 32556 is not allowed to access /tmp owned by uid 0 in /home/gingerne/public_html/catalog/admin/includes/functions/sessions.php on line 165

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/gingerne/public_html/catalog/admin/includes/functions/sessions.php:165) in /home/gingerne/public_html/catalog/admin/includes/functions/sessions.php on line 102

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/gingerne/public_html/catalog/admin/includes/functions/sessions.php:165) in /home/gingerne/public_html/catalog/admin/includes/functions/sessions.php on line 102

 

Warning: Cannot modify header information - headers already sent by (output started at /home/gingerne/public_html/catalog/admin/includes/functions/sessions.php:165) in /home/gingerne/public_html/catalog/admin/includes/functions/general.php on line 22"

 

Any help please?

 

Tim

Link to comment
Share on other sites

I have it installed and

 

I went into Admin - worked well - I changed the settings I needed.

 

That was last night. This morning I went into the store got a couple of error messages on the store side (remove install directory and set configure.php back to 644). Did that and did both c0nfigure.php files.

 

I went back to the store and got:

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/gingerne/public_html/catalog/includes/application_top.php on line 312

 

I changed the configure.php files back to 777, but this did not help.

 

I searched the forums with some/all of these words and could not find anything?

 

Help anyone?

Link to comment
Share on other sites

Yay Vger, thanks! Finally got it up & running. but Can't seem to remove:

 

Warning Warning: Installation directory exists at: /home/vol5/byethost11.com/b11_2327256/yourslovingly.sg/htdocs/install. Please remove this directory for security reasons.

 

I've tried setting the folder + its entire subdirectory to chmod 400 already but the warning sign is still there.

Do I really need to delete the entire folder?

 

Thanks!

Link to comment
Share on other sites

Why would the system tell you this if they didn't honestly believe it?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Whilst you leave the install folder in place it IS a security risk. Even if you change permissions on the files within it as long as those files can be served it can be used to overwrite your configure.php files, and your database.

 

I don't see the point in keeping it online. If you ever need to reinstall your website then all you need do is to upload that one folder again.

 

It appears that you are just creating problems for yourself where none should exist.

 

Vger

Link to comment
Share on other sites

hey everyone,

i think i've followed the instructions, but i can't log-in or create a new accnt. The SSL Certificate is installed on the current server where the website is being hosted.

 

The web address changes to https:// but then comes up, cant be displayd

 

this is the admin/includes

 

<?php

define('HTTP_SERVER', 'http://chixstix.com.au');

define('HTTP_CATALOG_SERVER', 'http://chixstix.com.au');

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

define('ENABLE_SSL_CATALOG', true);

define('DIR_FS_DOCUMENT_ROOT', '/home/chixstix/public_html/Scart/');

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

define('DIR_FS_ADMIN', '/home/chixstix/public_html/Scart/admin/');

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

define('DIR_FS_CATALOG', '/home/chixstix/public_html/Scart/');

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('DB_SERVER', 'localhost');

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

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

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

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

and this is the includes/

 

<?php

define('HTTP_SERVER', 'http://chixstix.com.au');

define('HTTPS_SERVER', 'https://chixstix.com.au');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.chixstix.com.au');

define('HTTPS_COOKIE_DOMAIN', 'chixstix.com.au');

define('HTTP_COOKIE_PATH', '/Scart/');

define('HTTPS_COOKIE_PATH', '/Scart/');

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

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

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/chixstix/public_html/Scart/');

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

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

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

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

any tips to solve my prob?

 

the site is www . chixstix . com . au/Scart . The site looks a mess, so ignore that part

cheers

Link to comment
Share on other sites

Error code -12263 usually means you don't have a ssl cert or your ssl cert is not installed properly.

 

IMPORTANT: You just made your database information public, a serious security risk.

You better change your log in credentials to your database ASAP, such as RIGHT NOW!!!

 

Duplicate posts are not allowed. --> Here

 

It's not unusual to wait several hours to get replies.

 

This is not a chat room.

 

hey everyone,

i think i've followed the instructions, but i can't log-in or create a new accnt. The SSL Certificate is installed on the current server where the website is being hosted.

 

The web address changes to https:// but then comes up, cant be displayd

 

this is the admin/includes

 

<?php

define('HTTP_SERVER', 'http://chixstix.com.au');

define('HTTP_CATALOG_SERVER', 'http://chixstix.com.au');

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

define('ENABLE_SSL_CATALOG', true);

define('DIR_FS_DOCUMENT_ROOT', '/home/chixstix/public_html/Scart/');

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

define('DIR_FS_ADMIN', '/home/chixstix/public_html/Scart/admin/');

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

define('DIR_FS_CATALOG', '/home/chixstix/public_html/Scart/');

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

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

 

 

and this is the includes/

 

<?php

define('HTTP_SERVER', 'http://chixstix.com.au');

define('HTTPS_SERVER', 'https://chixstix.com.au');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.chixstix.com.au');

define('HTTPS_COOKIE_DOMAIN', 'chixstix.com.au');

define('HTTP_COOKIE_PATH', '/Scart/');

define('HTTPS_COOKIE_PATH', '/Scart/');

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

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

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

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

 

define('DIR_FS_CATALOG', '/home/chixstix/public_html/Scart/');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...