Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newbie here...I could use a great deal of help.


Austin519

Recommended Posts

Posted

Hi, I'm a comp. engr. student going to UTexas at Austin, trying to start up a little company that sells car parts. So of course, being a comp. engr. student, the first thing I go look for is open source shopping cart software and find you guys.

 

So, in short, I want to run this open source shopping cart/site frontend on my website, and I also would like to give back and help you guys out if you want/need it. I know a little (am learning) PHP, but I was mainly just taught the staples, C C++ and JAVA. Is there any sort of tutorial/setup doc/etc that someone could link me to so I don't waste your time with stupid newbie questions?

 

The only other question I have is that, aside from the setup package I believe I downloaded, do I need anything else to start this running? Is this package coded so that I don't have to actually dig into the code myself, I can do it all from an administrative tool? And down the road, once I have my catalog populated with items etc, what kind of setup does it have for calculating shipping and processing credit cards? And for that matter, how do I go about processing those credit cards? I found out that costco.com processes cards out there for 2% non swiped...not bad, but how do I integrate that into this, or can I? And if you guys have better suggestions let me know.

 

I apologize for the peltering of newbie questions...but I appreciate you guys reading this. Hopefully once I get this running I can help contribute here instead of just taking. Thanks all!

 

Austin519

Posted

P.S. - I'm reading through this forum now as well as www.php.net. Thanks guys for any/all help you can give me!

 

Austin519

Posted

The_Bear:

Exactly what I was looking for! Thank you very much! That outlines just about everything. One quick Q, I just installed Apache 2.0 and am (with some difficulty) trying to install PHP 4.3.2 on Win2kSP3...is this what you would recommend running?

 

Austin519

Posted

You could install a all in one program like phpdev ( apache, php, mysql and phpmyadmin to managr mysql.

Installation is very easy

 

HTH

The_Bear

Posted

The_Bear:

For some reason I've decided to do it all separately...why, I don't know ;) Think it's worth it to remove everything and redo it with an all in one installer?

 

Austin519

Posted

The_Bear:

Okay so I'm running Apache 2 and PHP 5 on my computer. Aside from those two pieces of software, is there anything else that osCommerce relies on per se? I ask because I can't seem to "see" anything when I go to the configuration php's...any insight?

 

Austin519

Posted

PHP5 is a beta release, so don't expect for all of the PHP5 features to work perfectly, but it should be fine for running oscommerce. If you are looking for good php info, check out www.phparch.com also.

 

Eddie

Posted

You need MySQL as well. Also, remember that in order to work together, each of these modules needs to be compiled and linked with support for the others. I.e. Apache needs to be compiled and linked against PHP (and the module enabled). PHP needs to be compiled and linked against MySQL. This is the biggest reason to use one of the all in one contributions. They set up all these links for you.

 

Good luck,

Matt

Posted

peloke and iiinetworks:

Thank you both. I linked them up...everything seems to be running well...and I'm actually in the process of "installing" Oscommerce now. A quick Q, I don't seem to have the security_database.php file in my tep-docs of osCommerce 2.2-CVS Daily Snapshots...it doesn't look like it's in the snapshot yesterday or the current. Is that a link mistake...or...:?:

 

Another question...before I go jump in and start helping, I want to get my site up. What is the best version to use for that? I'm sure I'll find out shortly...but is SSL supported? And how are credit card transactions done? Thanks guys!

 

Austin519

Posted

Yes, I definitely need to know what version to run. I am trying to run 2.2 Milestone 2. I have downloaded and extracted the zip, placed it in my /www/directory, and correctly set all the permissions. Trying to do the web-based installation I input the following:

database server: localhost

username: my username

password: my password

database name: osCommerce

persistent connections: checked

session storage: in the database

 

That happens successfully...so then I go to import the oscommerce.sql, double checking that the install dir is under catalog, all my permissions are correctly set, etc...and when I continue...it says sql file /install/oscommerce.sql doesn't exist. So I cancel, and do it manually in phpmyadmin. It imports without a problem. Anyone know why this is the case?

 

Second, since I have that much working, I am sure there are a lot of little changes that the web based made to different configuration files, and I can't tell just from looking at them. Can anyone help me with that? (the install manually section just says, edit configuration.php...but what parts and to what?)

 

Third, going to the admin php, it gives me errors such as "Warning: open(/tmpsess_8f7e0c790d64cd31e8bf523df80aac6d, O_RDWR) failed: No such file or directory (2) in C:FoxServwwwadminincludesfunctionssessions.php on line 67" which again, I assume is because the web based didn't completely configure something. If anyone could tell me what I need to configure I'd seriously appreciate it.

 

I appreciate everyone's patience. Thanks!

 

Austin519

Posted

you will have to edit includes/configure.php in both caalog and admin

 

you need to set HTTP_SERVER and your FS paths etc

Posted

meltus:

Alright...got most of that finished. The only things I have Q's about are in the catalog file...

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

 

What do I fill in for those? Also the DB server is (since I have mySql installed) the mySql information? i.e. I need to put in there my mySql password etc?

 

I think aside from that I've just screwed up my permissions for things...need to figure out how to set directory permissions properly ;). Appreciate it.

 

Austin519

Posted

why dont you just delete it all and start over - as you have already imported the database you can opt not to do that next time round.

Posted

meltus:

I get this now...

 

Warning: fopen("/www/store/catalog/includes/configure.php", "w") - No such file or directory in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 209

 

Warning: fputs(): supplied argument is not a valid File-Handle resource in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 210

 

Warning: fclose(): supplied argument is not a valid File-Handle resource in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 211

 

Warning: fopen("/www/store/catalog/admin/includes/configure.php", "w") - No such file or directory in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 259

 

Warning: fputs(): supplied argument is not a valid File-Handle resource in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 260

 

Warning: fclose(): supplied argument is not a valid File-Handle resource in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 261

The configuration was successful!

 

I assume I'm not putting in exactly what it's asking for...I'm putting in the webserver root as: /www/store/catalog/ ....I successfully suck at this...

 

Austin519

Posted

your webserver root is /foxserv/www/store/

 

your catalog directory is catalog/

Posted

meltus:

Thank you...now I only get three errors:

 

Warning: fopen("/Foxserv/www/storeincludes/configure.php", "w") - No such file or directory in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 209

 

Warning: fputs(): supplied argument is not a valid File-Handle resource in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 210

 

Warning: fclose(): supplied argument is not a valid File-Handle resource in C:FoxServwwwstorecataloginstalltemplatespagesinstall_7.php on line 211

The configuration was successful!

 

Would this be related to my permissions? Currently just for testing I have:

Alias /catalog/ "C:FoxServ/www/catalog/"

 

<Directory "C:FoxServ/www/catalog/">

Options All

Options MultiViews

AllowOverride All

Order deny,allow

Allow from all

</Directory>

 

Alias /admin/ "C:FoxServ/www/admin/"

 

<Directory "C:FoxServ/www/admin/">

Options All

Options MultiViews

AllowOverride All

Order allow,deny

Allow from all

</Directory>

 

Alias /tep-docs/ "C:FoxServ/www/tep-docs/"

 

<Directory "C:FoxServ/www/tep-docs/">

Options All

Options MultiViews

AllowOverride All

Order allow,deny

Allow from all

</Directory>

 

Alias /install/ "C:FoxServ/www/install/"

 

<Directory "C:FoxServ/www/install/">

Options All

Options MultiViews

AllowOverride All

Order allow,deny

Allow from all

</Directory>

 

I tried a Deny from all, Allow from localhost, but that doesn't work. So I'm just trying to leave everything in the www directory wide open. It doesn't seem to be recursive though...anyone?

 

Austin519

Posted

My steps:

1) Clicked automatic configuration

2) www address: www.modernsandp.com

webserver root dir: /Foxserv/www/store/

http cookie domain: .modernsandp.com

http cookie path: /catalog/

3) databaes server: localhost

username: my username

password: my password

database name: osCommerce

session storage: database

 

That's all I did. And it gives me those errors and I can't see the store...it just reloads the install page...

 

Austin519

Posted

ive never installed on a windows box - im assuming your problem is that you need to put the c: in your webserver root

Posted

meltus:

Quite right...that's what it seems like. That fixed the rest of the errors...that and I didn't realize I had to place admin inside of catalog.

 

How do most people organize their www folder for osCommerce? Do they place the catalog dir in something like /store/ or a similar directory...or do they just leave it in the root?

 

Austin519

Posted

Seems the only way it will work for me under win32 is yes, as you said meltus, actually typing in c:/Foxserv/www/catalog/ as my root ...and I can't have something like /store/catalog/, catalog has to be at the root. Once I have that though, everything seems to be working great. Guess permissions weren't the problem.

 

So I guess my two questions now are security. First, does the catalog/ need to be writable for any reason? I'm obviously going to only allow admin from localhost. Second, for SSL, (again for dev reasons right now I'm on win32) how do I install SSL? I know I need to get a certificate...

 

Austin519

Archived

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

×
×
  • Create New...