Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem installing please help


edward3

Recommended Posts

Hope somebody can help, i have spent 2 days trying to install the software, and its driving me crazy i have uploaded the software several times and i receive the same problem,

 

The problem is when i access -

 

http://........./catalog/install/install.php

 

All i receive is this -

 

<?php

/*

$Id: install.php,v 1.3 2003/07/09 01:11:04 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application.php');

 

$page_file = 'install.php';

$page_title = 'Installation';

 

switch ($HTTP_GET_VARS['step']) {

case '2':

if (osc_in_array('database', $HTTP_POST_VARS['install'])) {

$page_contents = 'install_2.php';

} elseif (osc_in_array('configure', $HTTP_POST_VARS['install'])) {

$page_contents = 'install_4.php';

} else {

$page_contents = 'install.php';

}

break;

case '3':

if (osc_in_array('database', $HTTP_POST_VARS['install'])) {

$page_contents = 'install_3.php';

} else {

$page_contents = 'install.php';

}

break;

case '4':

if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {

$page_contents = 'install_4.php';

} else {

$page_contents = 'install.php';

}

break;

case '5':

if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {

if (isset($HTTP_POST_VARS['ENABLE_SSL']) && ($HTTP_POST_VARS['ENABLE_SSL'] == 'true')) {

$page_contents = 'install_5.php';

} else {

$page_contents = 'install_6.php';

}

} else {

$page_contents = 'install.php';

}

break;

case '6':

if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {

$page_contents = 'install_6.php';

} else {

$page_contents = 'install.php';

}

break;

case '7':

if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {

$page_contents = 'install_7.php';

} else {

$page_contents = 'install.php';

}

break;

default:

$page_contents = 'install.php';

}

 

require('templates/main_page.php');

?>

 

it is probably something stupid i am doing.....

Link to comment
Share on other sites

From what i can remember you need to try

www.youraddress/install

In your initial post, you were asking it to open install.php, which it did, you want it to open the install folder. ie no .php after it.

If this then says you don't have permission, then you need to check the permissions set for the Install folder. It should be OK, but if not, right click on the folder, go to properties and set the permission to 777, once you have done the install, rename the folder to install_OK or something else or delete it.

 

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

Thanks for the help really appreciated i have tried -

 

http://......./INSTALL

 

changed the setting on this file and the install directory to 777

 

now i receive -

 

$Id: INSTALL,v 1.13 2003/07/12 09:38:07 hpdl Exp $

 

osCommerce 2.2 Milestone 2 Installation Guide

Copyright © osCommerce 2003

 

*** The information presented here is old. It will be updated throughout ***

*** the osCommerce 2.2 Milestone path. ***

 

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

Quick Installation Steps

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

 

Once having downloaded the archive from the downloads page, follow these steps

to get the online shop running:

 

1. Extract the files from within the package

 

unzip oscommerce-2.2ms2.zip

 

-- or --

 

tar -xzf oscommerce-2.2ms2.tar.gz

 

-- or --

 

use your favourite graphical application to extract the files, such as

WinZip (http://www.winzip.com)

 

2. This creates a directory called 'oscommerce-2.2ms2'. Enter this directory

and copy the 'catalog' directory to the webroot path of your webserver:

 

cd oscommerce-2.2ms2

cp -R catalog /usr/local/apache/htdocs/

 

For this example, '/usr/local/apache/htdocs/' is used as the webroot path

of the Apache webserver.

 

Do the same for the 'admin' directory but rename the directory to a

unique and secret name. This directory does not have to reside inside the

catalog directory, though may need to be manually configured.

 

3. Using your favourite browser, go to the following address:

 

http://[your site]/catalog/install

 

and follow the instructions on the screen.

 

IF YOU PREFER TO DO IT MANUALLY READ HERE:

 

1. Create the 'osCommerce' database and import the sample data:

 

mysqladmin create osCommerce

mysql osCommerce < ./install/oscommerce.sql

 

To check if the tables have been successfully imported, you can list them

by using mysqlshow:

 

mysqlshow osCommerce

 

4. View the file catalog/includes/configure.php and make necessary changes.

 

Now you can use your browser to view the pages which should be located at

'http://localhost/catalog/'. You can also use your browser, or a graphics

viewer/editor, to view the database model which is located in the directory

where you extracted the files

'oscommerce-2.2ms2/tep_database_model-pr2.1.gif'.

 

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

Apache/SSL/PHP Installation

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

 

This is a quick guide to install PHP as a dynamic apache module with SSL

features.

 

It is recommended to read through the documentation of each package for a more

in-depth installation guide.

 

The individual packages are available at:

 

OpenSSL.......: http://www.openssl.org

MOD_SSL.......: http://www.modssl.org

Apache........: http://www.apache.org

PHP...........: http://www.php.net

Zend Optimizer: http://www.zend.com

 

1. Extract the files from their packages:

 

tar -xzf openssl-0.9.6.tar.gz

tar -xzf mod_ssl-2.8.1-1.3.19.tar.gz

tar -xzf apache_1.3.19.tar.gz

tar -xzf php-4.0.4pl1.tar.gz

tar -xzf ZendOptimizer-1.0.0-PHP_4.0.4-FreeBSD4.0-i386.tar.gz

 

2. To install SSL support in Apache, we need to first install the OpenSSL

package:

 

cd openssl-0.9.6

./config

make

make test

make install

cd ..

 

3. Once OpenSSL is installed, it is now possible to install Apache with

MOD-SSL:

 

cd mod_ssl-mod_ssl-2.8.1-1.3.19

./configure --with-apache=../apache_1.3.19 --with-ssl=../openssl-0.9.6

cd ../apache_1.3.19

./configure --enable-module=ssl --enable-module=so

make

make certificate

make install

cd ..

 

4. Once Apache is installed, PHP can be installed as a dynamic module (DS0):

 

cd php-4.0.4pl1

./configure --with-mysql=/usr/local/mysql --disable-debug \

--with-apxs=/usr/local/apache/bin/apxs

make

make install

cp php.ini-dist /usr/local/lib/php.ini

cd ..

 

5. Edit the configuration files for Apache (httpd.conf) and PHP (php.ini).

Make sure the following is in the httpd.conf file:

 

LoadModule php4_module libexec/libphp4.so

AddType application/x-httpd-php .php

 

If you have ClearModuleList somewhere in the httpd.conf file, then you must

add this line:

 

AddModule mod_php4.c

 

6. To install ZendOptimizer v1.0, you must be using atleast PHP 4.0.4 with

debugging disabled:

 

cd ZendOptimizer-1.0.0-PHP_4.0.4-FreeBSD4.0-i386

mkdir /usr/local/Zend

mkdir /usr/local/Zend/lib

cp ZendOptimizer.so /usr/local/Zend/lib

 

Add the following to the php.ini

 

zend_optimizer.optimization_level=15

zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"

 

7. To start Apache with SSL:

 

/usr/local/apache/bin/apachectl startssl

 

Or, without SSL:

 

/usr/local/apache/bin/apachectl start

 

 

After the installation, you can create a file in the webroot directory which

contains <?php phpinfo(); ?> to see the php configuration variables.

 

Thanks again.....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...