PDA

View Full Version : Oscommerce


rd42
12-9-02, 07:10 PM
Has anyone had any success setting up oscommerce on powweb?

I haven't found anything in the message boards.

Jade Dragon
12-10-02, 09:04 AM
I have for a client.

http://www.cmdiecasttoys.com

be aware there is no easy solution to setting up this application, everything needs to be hand coded for changes. The OScommerse site does have some documentation on the program to get you started. I do suggest reaading through this as it covers some of the basic changes. The forums are fairly good though you may wait days for an answer and you might want to check out the dowloads for the contributions to help you out.

Another documentation site for oscommerce http://www.oscdox.com/

It took me about two days of recoding to get the site up and themed, and another 10 hours or so of tweaking and loading up the products.

Once you are set up, it is a pretty sweet (free) commerce package.

rd42
12-11-02, 12:06 PM
Thanks for the response. I going to start reading........

rd42
12-11-02, 01:35 PM
I'm am reading the docs off of oscdox and it mentions some files which I don't have. I downloaded the unix version and uploaded it to powweb in ASCII.

it says to change the permissions for /catalog/includes/configure.php, this file is not there. the only config file is in /admin/configuration.php

it mentions and install.php during the setup process. It supposed to be located in /catalog/install/install.php? where is it?

Which version of OScommerce did you install successfully?

rd42
12-11-02, 01:44 PM
pardon my dumb *** attack, I had the docs for the wrong version.

Jade Dragon
12-11-02, 04:14 PM
Just a note.

when you start loading products & images use the "add product" to fill in the info. It also does an FTP upload on the images within the "add product" screen. If you try to upload the images first then link to them, it will over write the images data with a 0k (zero k) file. this is also true when you go to edit a product, you will need to reup the images within their FTP on the "add product" form.

dump I know, I haven't found a work around yet.

rd42
12-11-02, 05:06 PM
Thanks for the heads up. I was just getting ready to start playing with the products

Thanks again for the link to oscdox, it was a huge help. I have been putzing around with this on my on linux box for a while now.

rd42

rd42
12-11-02, 05:13 PM
Do you know of a way to mount the web directory on powweb to edit and preview with something like dreamweaver or frontpage?

Jade Dragon
12-11-02, 09:45 PM
Sorry I did everything hand coded. Most of it once you get into the admin pannel you can go to "file Manager" and when you click "edit" it will pop up in a simple text editor.

The oscommerce engine is very complex in itself and I would strongly suggest not using front page as it does not like php at all. (I have FP 2002) I do not know how Dreamweaver handles php or how it can tract the links. There's Tons of them. I think that made up most my first day of setting up is trying to track all the links on where things were to change them. Mind boggling tis was. Expecially since this was my first real attempt at modifying a php engine site. Huge learning curve on my part.

OSC does make phpNuke seem like childs play in comparison. ;)

Best thing to do to find something and then, right click and select properties. Then follow that path to the file you want to change.

Lots & Lots & Lots of changes.

It's been a while since I set this up, but if you have a question I'll do my best to answer.

JD

rd42
12-12-02, 10:01 AM
I have the permissions set to 755, 644, and 00 for /catalog/includes/configure.php and /admin/includes/configure.php, I when I load the page, in pink, at the top, I get...

Warning: I am able to write to the configuration file: /www/p/pharosman/htdocs/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

I have been changing all my permission through ftp in a IE Browser window.

thanks for any help.

Jade Dragon
12-12-02, 11:40 AM
I have mine set to 644, and it workd fine. Just on an off chance try 605, it's what I used on another php application to get it to work. Odd I know but it worked, don't know why you are having an issue with the config.php.

Perhaps check to make sure your settings are correct in the config file itself?

define('HTTP_SERVER', 'http://yoursite.com'); // eg, http://localhost - should not be NULL for productive servers
define('HTTPS_SERVER', 'https://server.powweb.com:XXXX'); // eg, https://localhost - should not be NULL for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?


and

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

Jade Dragon
12-12-02, 11:49 AM
Ok here's what I did for a workaround. I set the permissions to 644 so they're good then I escaped the whole error code in the ../includes/header.php




// check if the configure.php file is writeable

// if (WARN_CONFIG_WRITEABLE == 'true') {

// if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && //(is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

// tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);

// }

// }

Upon thinking I aslo tried allthe permissions and got an error like that. I figure it is a mismatch between the php powweb is running and how the scripts call each other.

I'm not a guru on php by any means, however it did work for me, and I haven't had any troubles with it.

rd42
12-12-02, 03:21 PM
Sounds good to me. I will try it.

Pilámaya. Wakhan Thánka níci un. Akhé ú wo.

Jade Dragon
12-12-02, 10:06 PM
U mayasi.

Nituktel he?

Or do you really not know Lakota?

nonner
12-12-02, 11:34 PM
Hello Jade Dragon & rd42, I started install on this and am very happy to find you guys discussing the topic of my current project. I'll be joining in if you don't mind.

rd42 could you tell me the docs location I got docs for 2.2 but the dwnlod for 2.1 where'd you find your docs and what version are you installing? Please post the links for both.

Jade Dragon. Kudos on the cmdiecasttoys site.
I'm hoping to get mine to look like
SonyXplode's (http://www.sonyxplod.co.uk/) website.

I'll take a look at the oscdox to see if I find the right docs. I too read of directories that don't exist.

I just finished MySql tables setup. Now I'm reading about permissions for /admin/images and possible issues.
What permissions did you guys set for this?

Jade Dragon
12-13-02, 12:15 AM
dwnlod for 2.1

you should really find v 2.2 much more stable....

Download HERE v 2,2 (http://osc.chainreactionweb.com/demo/november-loaded/november-loaded.zip)
heres the download link that I used.

rd42
12-13-02, 12:18 AM
It would be cool if I knew Lakota, unfortunately, just google.


Install Doc on oscdox.com
http://www.oscdox.com/modules.php?op=modload&name=Downloads&file=index&req=viewdownload&cid=1


Nonner, the problem I had with the missing directories was because I was reading the docs for osCommerse 2.1 and the docs are for 2.2. I am not aware of any documentation for previous versions.

osCommerse 2.2 CVS can be found here:
http://www.oscommerce.com/downloads.php/snapshot/sid,fd6cb3bf50a55d899f1ddbed8cfe4319

Jade Dragon
12-13-02, 12:19 AM
Thanks for the complement. I'm off for the night.

try downloading and installing v2.2 you'll be much happier with it. Also a good idea to read up before you start. The boring way I know. Also make a complete backup copy of your files before you start editing. & editing & editing ;)

Good luck,

JD

Jade Dragon
12-13-02, 12:25 AM
If you want to know what is said in Lakota:

Pilámaya. = Thanks.

Wakhan Thánka níci un. = May the Great Spirit go with you and guide you

Akhé ú wo = come again

U mayasi. = you told me to come.

Nituktel he? = Where are you?

I’m only just to the sentence structure, been studying it for about two months.

OK so this post was WAY off topic. :D

nonner
12-13-02, 01:14 AM
What language is Lakota?
BTW: Thanks for the links guys.
12:30 EST and reading. Good night...

Jade Dragon
12-13-02, 08:46 AM
Lakota is Native American Souix.

Good luck on your site.

JD

WnJBirds
1-12-03, 12:38 PM
Originally posted by Jade Dragon
Ok here's what I did for a workaround. I set the permissions to 644 so they're good then I escaped the whole error code in the ../includes/header.php




// check if the configure.php file is writeable

// if (WARN_CONFIG_WRITEABLE == 'true') {

// if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && //(is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

// tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);

// }

// }

Upon thinking I aslo tried allthe permissions and got an error like that. I figure it is a mismatch between the php powweb is running and how the scripts call each other.

I'm not a guru on php by any means, however it did work for me, and I haven't had any troubles with it. okay, now I'm totally lost..
// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);
}
}
To me, they look the same..

Jade Dragon
1-12-03, 12:55 PM
by putting "//" infront of the line of code you don't want to be parsed, you eliminate the error.


// php doesn't read this.

php will read this

WnJBirds
1-12-03, 01:10 PM
*smacking forehead* Duhhhhhhh!
Thanks, I missed that part!

WnJBirds
1-12-03, 01:19 PM
That was the ticket!
Thanks for your patience and help!
On to the next thing...: (LOL)
You know anything about php_website, or phpnuke?

Jade Dragon
1-12-03, 01:30 PM
Yup! :D

Just put up a Website just for Powweb users interested in phpNuke. (less than a week old) It gives more info than just the installation. & new tuts are going up almost daily.

http://www.pownuke.com

Check out the Tutorials. We are waiting on 6.5 final before putting up info for that, (after we test wil powweb servers).

andydavis27
1-22-03, 01:54 AM
Hey, thanks for the help about removing the pink warning banner at the top of osCommerce, Jade Dragon! I have been pulling my hair out over that one for a long, long time! lol

With permissions set at 644, I don't know why php thinks that file is writeable, but as long as it's fixed, I'm happy!

Thanks Again!

Andy

:D

RCPartsHKG
1-22-03, 12:02 PM
JD,

FYI - PHP-Nuke 6.5 Beta 5 runs very stable on Powweb. I have had it up and running for over a week now and I must say its the best build so far.

I just hope that the upgrade to 6.5 final is painless, as I really do not want to go through a complete upload again. :)

xmac
1-25-03, 06:30 PM
I have a full store with oscommerce here on powweb (asteroid.powweb.com)

check it:

http://www.xmac.no/store (it's in norwegian)

http://www.xmac.no (to get the full interface)

cheers!
mats staugaard
oslo, norway

megahertzman
1-26-03, 11:49 PM
Does anyone know of any place of themes I can download for OSCommerce so it's just as easy like installing new themes for phpBB?

Jade Dragon
1-27-03, 12:06 AM
As far as I know there are none. Every thing is hand coded.

To change logo look at /includes/header.php

header/footer/title are controlled by the /include/language files.

along with the welcome page at /includes/language/english/default.php

just need to look through the include files for the various scripts which create the design for the site.

JD

megahertzman
1-27-03, 12:21 AM
Okay thanks Jadey. But it would've been cool if there were a kind of theme-for-all kind of site out there.

Moderator now, huh? Congrats! :)

erodzen
2-6-03, 12:29 AM
Jade - You have suggested oscommerce to me in another thread so I have been searching, reading, studying. I took a look at your http://www.cmdiecasttoys.com/ and I am impressed.

Wondered if the "conditions of use" came with the install or if you wrote all of that? Can I have your permission to steal it when/if I set up our ecommerce site?

Also, noticed that the "shipping and returns" link on the site is not giving any info - you may want to remove it or change its output?

Thanks a ton for all your help here, both direct answers to me and prior answers that I have searched up in the forums - you are definitely a big part of the cream of the crop that makes powweb the best!

:cool:

nonner
2-9-03, 11:55 PM
Hi All,

As I setup my oscommerce I am coming across this issue.

It appears that POWWEB will not let the file remain without owner write access.

I tested. I removed write by owner and refreshed and looked to find write still enabled. No matter what I did the file could not be changed. Could this be the issue here?

regards,

nonner

Originally posted by rd42
I have the permissions set to 755, 644, and 00 for /catalog/includes/configure.php and /admin/includes/configure.php, I when I load the page, in pink, at the top, I get...

Warning: I am able to write to the configuration file: /www/p/pharosman/htdocs/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

I have been changing all my permission through ftp in a IE Browser window.

thanks for any help.

erodzen
2-10-03, 12:12 AM
I just looked at mine and it is set to 644 like they say it should be. That sets Owner: Read and Write, Group: Read, and Public: Read. If I want to turn off Owner: Write it looks like I can but that makes it 444. Is yours acting different?

Also, as long as the admin subdirectory is properly password protected is there really any problem with the file security?

nonner
2-10-03, 07:10 AM
The file security alarm that oscommerce flags is the configure file being writable. Apparently no matter in what way if it's writable it flags it. I did the workaround by remarking the code per Jade Dragons suggestion. I was curious why it stayed an issue when we complied with the requisite chmod.

I cannot remove owner write to eliminate it as an issue. Perhaps someone else once at this stage can check if they to are not able to remove owner write at a powweb server. It would then eliminate that as being the point oscommerce is complaining about.

Oh well, I got passed it, now I'm working on broken images.
Pesky issues never end,

regards,

nonner

erodzen
2-10-03, 02:04 PM
If your broken images are the ones that they supply it's probably because you followed the install directions just like I did and used ASCII upload for everything, and we all know better than to do that for image files! I had to ftp up new copies of all the images using AUTOMATIC (binary) upload to make mine work.

And yes, I used Jade's work around as well.

NYColt
2-10-03, 03:07 PM
Hello Jade Dragon,

You always offer great help and advice and I thank you for it..

I was wondering if you might be able to take a look at these warnings I get at the final stage of install of OSC. The file that it says is not there is actually there. I am puzzled by the warning completely.

Step 2: osCommerce Configuration


Warning: fopen(/www/d/dhenders/htdocs/OSCommerce/catalog/catalog/admin/includes/configure.php) [function.fopen]: failed to create stream: No such file or directory in /www/d/dhenders/htdocs/OSCommerce/catalog/catalog/install/templates/pages/install_5.php on line 164

Warning: fputs(): supplied argument is not a valid stream resource in /www/d/dhenders/htdocs/OSCommerce/catalog/catalog/install/templates/pages/install_5.php on line 165

Warning: fclose(): supplied argument is not a valid stream resource in /www/d/dhenders/htdocs/OSCommerce/catalog/catalog/install/templates/pages/install_5.php on line 166

The configuration was successful!

Any Insight?
Thanks
NYColt

NYColt
2-10-03, 03:44 PM
Do these warnings mean anything to you Jade Dragon;

osCommerce
Open Source E-Commerce Solutions

New Install

Step 2: osCommerce Configuration


Warning: fopen(/www/d/dhenders/htdocs/OSCommerce/catalog/catalog/admin/includes/configure.php) [function.fopen]: failed to create stream: No such file or directory in /www/d/dhenders/htdocs/OSCommerce/catalog/catalog/install/templates/pages/install_5.php on line 164

Warning: fputs(): supplied argument is not a valid stream resource in /www/d/dhenders/htdocs/OSCommerce/catalog/catalog/install/templates/pages/install_5.php on line 165

Warning: fclose(): supplied argument is not a valid stream resource in /www/d/dhenders/htdocs/OSCommerce/catalog/catalog/install/templates/pages/install_5.php on line 166

The configuration was successful!

Thanks
NYColt

nonner
2-10-03, 03:50 PM
Hi Guys, erodzen, I hadn't thought of that but when I view the images locally before even sending them ftp they're still the same seeming corrupt. My current install was untar'd at the server location so this shoudln't have been an issue if I'm not mistaken. Oh well I still needed to customize anyways. Thatnks for the tip.

NYColt, I think your problems a path issue for reasons the directory tree needs to be exact for the install to work.

Here's how it should be:

catalog (base directory)
----install (subdirectory)
----admin (subdirectory)

Note you have to remove one directory level before installing the catalog and admin directories example (once extrated they look like this...)

catalog
----catalog
----install

admin
----admin

You need to remove the first catalog and admin dir before install. I see from your error directory tree that you have catalog/catalog/ this shows you didn't set up the dir tree properly.

correct dir structure before install

catalog (base directory)
----install (subdirectory)
----admin (subdirectory)

check out the install instructions at oscdocs.com or org


FYI: for security reasons you may want to ??? or blank the actual directory names of your install when posting on a forum. example:

/www/?/????/htdocs/OSCommerce/catalog/catalog/install/templates/pages/install_5.php on line 166

Good luck and regards all,

nonner

greenmfg
2-11-03, 11:56 AM
I just got off the phone with powweb tech support about this issue. OSCommerce docs say to set configure.php to 644 but many users have found that 444 is necessary because the server is running as the owner. Powweb will not allow you to set a file to 444. Your FTP software will attempt to set it to 444 and will not give any indication that it failed. It will remain 644 though. If you call tech support they will manually change any file you want to 444 then oscommerce will not give you an error any more. If you use you ftp software to look at the dir info you will see...

-rw-r--r-- configure.php

Then issue chmod 444 and look again...

it is still

-rw-r--r-- configure.php

Tech support will change it to
-r--r--r-- configure.php

NYColt
2-11-03, 12:18 PM
After reading your reply I changed the chmod to 444 and went back and checked it and it did say it was 444, but it still doesnt work..hmmm

NYColt
2-11-03, 12:34 PM
Thanks Greenmfg

I had tech do it and it worked. I appreciate your help on that.

LexF
2-11-03, 01:01 PM
As stated above...

At this time, to chmod 444, you must send an email into support@powweb.com.

greenmfg
2-11-03, 01:59 PM
This should be in a faq. I wasted a lot of time figuring this out.

erodzen
2-11-03, 02:35 PM
Is my site at risk if I do not ask powweb to make this change? If they do change it will I ever need it changed back to make mods?

greenmfg
2-11-03, 04:34 PM
I would think it is a risk. You can change it yourself to 644 from 444 but cannot go back from 644 to 444.

NYColt
2-11-03, 04:53 PM
hi greenmfg,

I am also having another problem that seems to be a permissions problem. I was wondering if you were having anything similiar.

The Continue Buttons on my New Customer page here:
http://thebestcarepackages.com/catalog/login.php

do not come up. When I check the path:

http://thebestcarepackages.com/catalog/includes/languages/english/images/buttons/button_continue.gif

I get this message:
Forbidden
You don't have permission to access /catalog/includes/languages/english/images/buttons/button_continue.gif on this server.

When I check the permissions for images dir for that path it is set to 777.
Does anyone have any idera what else could be causing the problem?

Thanks
NYColt

erodzen
2-11-03, 05:15 PM
My
/catalog/includes/languages/english/images/buttons
directory is set to 755. Is that wrong? (Mine works.)

greenmfg
2-11-03, 05:47 PM
Can you see that file with your ftp client?

Is there an .htaccess file in that directory?

djsingle
2-11-03, 08:41 PM
why is MySQL giving me this error message???

Warning: (null)() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0

it is messing up my shopping cart program. i have two mysql data base and it is saying that in both. i know its not my shopping cart program.

WnJBirds
2-11-03, 08:46 PM
Originally posted by djsingle
why is MySQL giving me this error message???

Warning: (null)() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0

it is messing up my shopping cart program. i have two mysql data base and it is saying that in both. i know its not my shopping cart program.
I've been wondering about that one myself.
No response from tech support either on the issue.
I have the same errors in other scripts too.

NYColt
2-12-03, 11:36 AM
hi greenmfg

There is a .htaccess file that comes with OSC in the includes directory, which further down holds the images I need.

Do you think that .htaccess file could be causing a problem?
How important is that .htaccess file?

NYColt

greenmfg
2-12-03, 11:59 AM
Originally posted by NYColt
hi greenmfg

There is a .htaccess file that comes with OSC in the includes directory, which further down holds the images I need.

Do you think that .htaccess file could be causing a problem?
How important is that .htaccess file?

NYColt

Comment out whatever is there temporarily and see what happens. Also what permissions are on the file and the directory they are in?

NYColt
2-12-03, 12:21 PM
includes dir permissions were set to 744 and worked when changed to 755. Everything seems to ok now.

How are you making out? everything running ok?

NYColt

greenmfg
2-12-03, 12:42 PM
I'm just testing right now and am not totally set up. I always get a connection error when trying to use SSL. Haven't had time to tackle that yet.

Jade Dragon
4-22-03, 02:46 PM
bringing this back up for those interested in oscommerce.

=)
Jade

giftsntreasures
9-20-04, 01:54 AM
Hi Jade, I have been reading and re-reading this thread for a week at least. THANK YOU! :D I was finally able to install oscommerce, but cannot figure out how to get to the "easy" administration interface. I am able to make changes the HARD way in phpmyadmin (I've had to re-install twice today after making fatal changes), but can't find the screen shown in the oscommerce tutorials. I have searched high and low for any postings about this. Please advise!

P.S. When I click the button that says "Administration Tool" from the last screen of the install, I get an "HTTP 404 Page not found" message. :confused: