Jump to content


Corporate Sponsors


Latest News: (loading..)

how to "hand install" MS3 Alpha 3


15 replies to this topic

#1 flying_kites

  • Community Member
  • 55 posts
  • Real Name:flyingkites

Posted 03 September 2006, 19:04

Hi

The auto installation does not work on my server. I can't get access to the SQL server due to the server setup.

I am used to hand installed MS2.2. So I tried to do that with this alpha release. I loaded the code. I created the database and I loaded the sample data.

But it falls over.

Notice: Use of undefined constant MODULE_SERVICES_INSTALLED - assumed 'MODULE_SERVICES_INSTALLED' in /home/ozeworks/public_html/demo/MS3/oscommerce/includes/classes/services.php on line 20


I am guessing I missed some site setup in the installation. So how do I work around this?

thanks
Kym

#2 pbcomm

  • Community Member
  • 5 posts
  • Real Name:Paul B.
  • Location:NY

Posted 03 September 2006, 21:23

Did you run the install script after you created the database?

#3 rkoechel2004

  • Community Member
  • 126 posts
  • Real Name:Ryan
  • Gender:Male
  • Location:Madison, WI

Posted 03 September 2006, 22:19

View Postpbcomm, on Sep 3 2006, 09:23 PM, said:

Did you run the install script after you created the database?


I'm curious how the installer can't access your database but the installed oscommerce can?


-Ryan
rkoechel2004

#4 Harald Ponce de Leon

  • Manager
  • 3,148 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 06 September 2006, 13:42

Manually importing the oscommerce.sql file into the database is no longer sufficient for new 3.0 based installations, as the installation procedure makes calls to the installation methods of modules to further insert data into the database.

We'll look into providing a "dump" of a clean database installation to remedy this, but will not be an official installation means due to the need of a default store administrator account.
Harald Ponce de Leon
osCommerce, Sell With Emotion

#5 cannuck1964

  • Corporate Sponsor
  • 1,108 posts
  • Real Name:Peter McGrath
  • Gender:Male
  • Location:Ontario, Canada

Posted 08 September 2006, 12:11

I do hope that a default way of just uploading the DB manually will be added or made easy to accomplish. 99% of the time I do my installations this way. In actual fact, I do not remember the last time I used the installation tool.

If the installation script changes some field values, do some of these fields contain MD5 encyption? If so, I assume that the default login set up when you use the installation script can be changed once within the admin tool, so having a dump with a standard login is fine to have, just would need to update the login info....

cheers,
Peter M
Peter McGrath
-----------------------------
See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation



#6 jcall

  • Community Member
  • 3,092 posts
  • Real Name:Jared Call
  • Gender:Male
  • Location:Saratoga Springs, UT

Posted 22 October 2006, 23:30

I do most of my installations the same way as Peter as well.

-jared

#7 RL2000

  • Community Member
  • 162 posts
  • Real Name:René Luckow
  • Location:Denmark

Posted 24 October 2006, 08:15

Well, then making a dump of a clean db your selves after an install would suffice, no?
Insert clever remark here

#8 oschellas

  • Community Member
  • 938 posts
  • Real Name:OSC Hellas
  • Gender:Male
  • Location:Athens, Greece

Posted 06 November 2006, 12:15

View PostRL2000, on Oct 24 2006, 10:15 AM, said:

Well, then making a dump of a clean db your selves after an install would suffice, no?

I don't think this is a solution since we don't want to go through the installation setup.

Edited by oschellas, 06 November 2006, 12:15.


#9 RL2000

  • Community Member
  • 162 posts
  • Real Name:René Luckow
  • Location:Denmark

Posted 06 November 2006, 12:54

Well, having to do that ONCE is not exactly hard work...
Insert clever remark here

#10 jcall

  • Community Member
  • 3,092 posts
  • Real Name:Jared Call
  • Gender:Male
  • Location:Saratoga Springs, UT

Posted 09 November 2006, 03:35

View PostRL2000, on Nov 6 2006, 07:54 AM, said:

Well, having to do that ONCE is not exactly hard work...

Perhaps. I have not seen the nature of the data that gets added to the db as part of the installation, but it stands to reason that the main point of putting it in as part of the installation has to do with some choices that are made during the install. It follows that one data set then does not fit all installations as it has done in the past.

IOW, if the end result of this iteration of osCommerce is that there is no longer a "generic" data set that can be used for a quick setup of a new site, then every site will have to be installed.

That concern, good sir, is quite different from lazy reluctance to do a one-time install and subsequent backup. :thumbsup:

-jared

Edited by jcall, 09 November 2006, 03:36.


#11 RL2000

  • Community Member
  • 162 posts
  • Real Name:René Luckow
  • Location:Denmark

Posted 09 November 2006, 07:14

In any case, an official dump or you're own is EXACTLY only divided by lazy reluctance.

In any case it would just be a matter of looking what data is created by the install script and looking into what changes you have to make for each site, if any. My guess is that some changes are merely chioces, so if you choose som default ones to begin with like admin account etc. that should do it for you.

No matter what, it's either very simple to do yourself or not possible, but as Harald did write they would provide a dump, then I can't really see what should keep you back from doing the same.

Anyone who has this concern should probably take a look at what's being done instead of waiting for a dump from Harald.
Insert clever remark here

#12 jcall

  • Community Member
  • 3,092 posts
  • Real Name:Jared Call
  • Gender:Male
  • Location:Saratoga Springs, UT

Posted 09 November 2006, 12:49

You mean actually install the thing a few times and do a diff? Do some actual research? Perish the thought. :D

#13 AlanR

  • Community Member
  • 3,711 posts
  • Real Name:Alan Rogers

Posted 09 November 2006, 12:54

View PostRL2000, on Nov 9 2006, 02:14 AM, said:

INo matter what, it's either very simple to do yourself or not possible, but as Harald did write they would provide a dump, then I can't really see what should keep you back from doing the same.
Exactly. There's nothing to stop anyone who wants to do multiple installs without running the install procedure from doing their own generic install, then creating their own dump for future use.

I've found the install procedure to be very smooth and very quick on properly configured servers.
Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux
Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

#14 cannuck1964

  • Corporate Sponsor
  • 1,108 posts
  • Real Name:Peter McGrath
  • Gender:Male
  • Location:Ontario, Canada

Posted 14 November 2006, 14:54

The running of the installation script I am sure is a straight forward thing to do. I just rather upload a DB dump is all, since generally it is far faster for me to do it this way.

Yes I can get a dump of a standard osC install and just use it, this is not a huge deal to do.

How about this instead, how about a list of changed values (ie what the script changes due to code inserting data) so then others can have two dumps, one which is standard to all shops, and the second being an update to the data which is changed via scripting changes from the install process.

Yes, I know I can go through all of the code to figure this out, but if an existing list is already present, then I would just use it and save me some time (after all that is what Open Source is about as well ;) )

cheers,
peter M
Peter McGrath
-----------------------------
See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation



#15 Frank Heinen

  • Community Member
  • 212 posts
  • Real Name:Frank Heinen
  • Gender:Male
  • Location:The Netherlands (Aalten)

Posted 14 November 2006, 19:40

Don't think this list exists already, so you can create one if you like and share it with us. Thats whats Open Source is also about ;)

#16 celine

  • Community Member
  • 1 posts
  • Real Name:Céline

Posted 20 November 2006, 14:25

I've the same error... But my db was clean.

After the osCommerce 3.0a4pre installation process, I realised that the tables hadn't been created. I installed the tables manually using the oscommerce.sql file. Then, the admin section worked perfectly, I could read and write data :-).
But I can't access to the catalog area (blank page). :-(

In the Apache error log :
 [error] [client ] PHP Notice:  Use of undefined constant MODULE_SERVICES_INSTALLED - assumed 'MODULE_SERVICES_INSTALLED' in /usr/local/htdocs/includes/classes/services.php on line 20
[error] [client ] PHP Warning:  startservice(includes/services/MODULE_SERVICES_INSTALLED.php) [<a href='function.startservice'>function.startservice</a>]: failed to open stream: No such file or directory in /usr/local/htdocs/includes/classes/services.php on line 49
 [error] [client ] PHP Warning:  startservice() [<a href='function.include'>function.include</a>]: Failed opening 'includes/services/MODULE_SERVICES_INSTALLED.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/htdocs/includes/classes/services.php on line 49
 [error] [client] PHP Fatal error:  Call to a member function on a non-object in /usr/local/htdocs/index.php on line 17

My mysql error log is empty.
I'm using mySQL 5 and PHP 4.4