Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

install


jvd

Recommended Posts

Hi all,

 

I tried to install oscommerce (latest) on two systems, but in both cases the install hangs at step 2, I think that is the step that installs the mysql database.

I installed and imported the database manually, but nothing happens.

 

RH Linux fedora, PHP 4.3.2 (cgi), Zend v 1.3.0

Mysql 4.1.7- standard

 

anybody any ideas ? Thanks in advance, Jan.

Link to comment
Share on other sites

Have you read the Installation Guide and Requirements in the Knowledge Base before attempting the install?

 

The most basic thing you need to do is to firstly create a blank database, which the install then populates with default information. Have you done this?

 

Vger

Link to comment
Share on other sites

Have you read the Installation Guide and Requirements in the Knowledge Base before attempting the install?

 

The most basic thing you need to do is to firstly create a blank database, which the install then populates with default information.  Have you done this?

 

Vger

 

Thanks for your response; Yes, I did: there is an automated procedure and a manual procedure;

First I tried the automated one but when it stopped I moved over to the manual procedure.

The automated procedure doesn't need to create a database manually, at least, I didn't find this in the documentation, but in trying the maunal one, I did create a database manually, but no results, unfortunately.

Of course I'm missing something....

Link to comment
Share on other sites

I tried to install oscommerce (latest) on two systems

 

What do you mean by 'latest'. Are you installing the current stable version osCommerce 2.2 MS2, or are you trying to install one of the cvs versions of MS3?

 

Vger

Link to comment
Share on other sites

Hi all,

 

I tried to install oscommerce (latest) on two systems, but in both cases the install hangs at step 2, I think that is the step that installs the mysql database.

I installed and imported the database manually, but nothing happens.

 

RH Linux fedora, PHP 4.3.2 (cgi), Zend v 1.3.0

Mysql 4.1.7- standard

 

anybody any ideas ? Thanks in advance, Jan.

 

I got exactly same problem, pls help

Link to comment
Share on other sites

There are different problems being raised here by different people. One problem is php 5 related, another problem relates to the version of MySQL being used (register_long_arrays), and the other problem relates to Register Globals being set to 'off' in php.ini.

 

Before creating and uploading a new .htaccess file to the root of your web you need to make sure that you won't be overwriting an existing one with something valuable in it. If your server is set up correctly then you won't be able to see .htaccess files when you FTP to your site (.htaccess only works on Apache servers running Unix/Linux operating systems). To unhide them, using WS FTP, you need to enter -la into the empty box below the MkDir box on the right of your screen, navigate out of that folder, then come back to it and you'll see the .htaccess file.

 

Providing that there is nothing useful enabled in the file then you can create a text document on your computer and rename it to .htaccess, and then put in the code mentioned above, which will cure the MySQL version problem and Register Globals being set to 'off' in php.ini (but Register Globals do have to be 'off').

 

Vger

Link to comment
Share on other sites

I have the same problem (only half the page is displayed in installation step 2)...

 

I installed the Apache 2.0.54, MySQL server 4.1, PHP 5, and the contribution that solves the "register_globals = on" issue...

This is my first installation of osCommerce...

 

I went through the topic and tried all the solutions, and still - I get nothing !

 

Can anyone help me on this ?

 

Thanks in advance

Link to comment
Share on other sites

Well, I've installed all the things in a different computer, and got over the previous error. But now I get a new error at the same install step.

The new error relates to MySQL - something about MySQL don't support the authentication protocol that was used (to build the DB), and that I should think about upgrading the MySQL client.

I have the latest MySQL (or at least I think I have...).

 

Anyone knows this error ?

 

Thanks in advance.

Link to comment
Share on other sites

I have the same problem (only half the page is displayed in installation step 2)...

 

I installed the Apache 2.0.54, MySQL server 4.1, PHP 5, and the contribution that solves the "register_globals = on" issue...

This is my first installation of osCommerce...

 

I went through the topic and tried all the solutions, and still - I get nothing !

 

Can anyone help me on this ?

 

Thanks in advance

 

dont use php 5 it doesnt play nice with osCommerce! :'(

Link to comment
Share on other sites

Hi , first sorry my english.....1? post

 

well i am new to oscommerce and i have the same problem about 2 weeks....

 

you may try this:

 

I install:

Fedora Core 4 ( text instalation / server instalation )

( the trick here is to , when installing the packages, press F2 and select all that say "php-mysq", "mysql-php", "mod???_php", "mod??_mysql_auht... etc , you can find this on "[MYSQL Server] and [WEB Server] items, i think its all ......)

 

then

 

copy oscommerce to you html root

 

then

 

edit httpd.conf

(about 12 page downs :) , where you see

 

<directory />

Options Follow.....Links...

AllowOverride None ( change "None" to "all" )

<directory >

 

down 1 or 2 pages where is

AllowOverride None ( change "None" to "all" )

 

save

 

then go to your html web server root

 

in the catalog directory (or other ) edit the file .htaccess that come with osc and in the end of the file write what jfsso sad

 

php_flag register_globals on

php_flag register_long_arrays on

 

save

 

at the moment i can do the installation.... further i dont know

i know that is insecure solution but now i pass the 2 step ...

maybe this will help.....

 

huf .....every thing on linux is a war..... :)

Link to comment
Share on other sites

I've been struggling with installation for days, and finally cracked it, so here's another version. I'm using:

 

osCommerce 2.2 MS2

Fedora Core 4

PHP 5.0.4-10.3

MySQL 4.1.11-2

phpMyAdmin 2.6.3-pl1

 

I copied the catalog directory contents to the web root; then I updated paths in both configure.php files. Natch, I had to make the newbie mistake of doing it as root and then forgetting to change ownership of the whole mess. So I ran

 

chown 1000 * -R

chown 1000 *.* -R

chgrp users * -R

chgrp users *.* -R

 

and fixed that.

 

Using phpMyAdmin I created:

new database: freds

user: fred

password: fred

on hostname: Fedora4

 

Next I ran "chmod 777 includes/configure.php"

and "chmod 777 admin/includes/configure.php" from my web root.

 

But when I went to http://Fedora4/install I promptly stalled on Step 2. I went to my webroot .htaccess file and added the lines mentioned above:

 

php_flag register_globals on

php_flag register_long_arrays on

 

But guess what, I'm still not running. Exploring my /var/www/html/admin/.htaccess file, I see I need to update the file /etc/httpd/conf/httpd.conf to change settings for /var/www/html (document root):

 

<Directory "/var/www/html">

[stuff...]

AllowOverride Options

[other stuff...]

</Directory>

 

The default setting in this file is AllowOverride None, which seems to be the source of (one of) the tricky part(s). Now my web-based installation works. I step through to the last page: the Catalog button correctly connects me to my webroot index. But the Administration Tool button still just gives me a blank page.

 

Finally comes OceanRanch's posting below (thank you!), and the magic PHP5 solution:

Change line 31 in

<webroot>\admin\includes\classes\upload.php

to

//$this = null;

 

Together this whole messy procedure finally did it. I'm sure some of these mods are unnecessary, so I may try backing them out. As always, open to suggestions - thanks to everyone.

Glenn

Link to comment
Share on other sites

there is a different fix for $this which resolves that issue, thus the solution you have presented is incorrect. search for $this and you will find it.

also, please, read the prerequisites, it states php5 is not compatible.

most people do not even have access to shell/root/httpd.conf, so most will get lost with all that.

Link to comment
Share on other sites

the fix that you talk i:

 

unset($this);

 

If i understand the posts , this are people that are starting the first contact with oscommerce and have their own pc with a linux for testing.... ;)

 

also, please, read the prerequisites, it states php5 is not compatible

 

 

you are write , but i also can tell that the manual does not say explicity "does not support php5" and the reame have a date from 2003.

 

a im a beginer in linux and oscommerce.....i want to build a webserver for future...to learn php and maybe build a shop....

 

you have more expirience. Dou you can tellme oscommerce do not work in php5?

Link to comment
Share on other sites

there is a different fix for $this which resolves that issue, thus the solution you have presented is incorrect.  search for $this and you will find it.

also, please, read the prerequisites, it states php5 is not compatible.

most people do not even have access to shell/root/httpd.conf, so most will get lost with all that.

 

Thanks for your response. I've researched both my downloaded and the online documentation - could you point out the place where PHP5 is nixed? All I can find that's directly relevant is:

"osCommerce runs on all PHP versions from 4.0 to the latest version"

Sounds like this is causing some pain. Could the ban on 5 be more explicitly stated? I assumed PHP5 was the latest version.

 

It's true that many people experimenting with this app don't have root access. Also true that many do. And even if a person in the first category finds her installation doesn't work, it's good for her to have a solution to present to her ISP, so I didn't want to hide this knowledge.

 

On that "different fix for $this", I've run searches against the documentation and using the Forum Search Engine (learning in the process that quotes are mandatory for that search term), and found literally no results. Do you have a particular document in mind, or do you just mean search the web for $this?

 

I've always had to take a learn-as-I-go approach to PHP, but it's really great when people who know the deeper issues can clarify and simplify them for us "newbies." It's a shame for us to waste hours or days when someone more expert can write a short, clear, complete response. Thanks for your response, and for everything you have to offer-

Glenn

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...