カスタム検索
tomo.gif (1144 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)To previous pageTo home pageMailing to me

osCommerce2.2-MS1 のダウンロードからインストール

Modified: 14 November 2005


 ダウンロード  

"osCommerce" のホームページは以下です。

http://www.oscommerce.com/

"osCommerce" の日本語版は、以下からダウンロードできます。

http://sourceforge.jp/projects/tep-j/

Linux版は、2004年12月22日に、"oscommerce-2.2ms1j-R6a.tar.gz" がダウンロードできました。

 上記英語の公式サイトからもダウンロードできますが、すべてのパッケージでなかったり、日本語対応でなかったりしますので、"sourceforge.jp" からダウンロードしたほうがいいです。

 
 インストール

# tar zxvf oscommerce-2.2ms1j-R6a.tar.gz
       :
# cd oscommerce-2.2ms1j
# cp -R catalog /var/www/html
# cp -R admin /var/www/html

アクセス権を一時的に設定します。後で、元に戻します。

# cd /var/www/html
#
chmod 706 catalog/includes/configure.php
# chmod 706 admin/includes/configure.php


 PHPのインストール

以下の3つをインストールしますが、私の場合は、すでにインストールされていました。

# rpm -q php
php-4.3.9-3
# rpm -q php-ldap
php-ldap-4.3.9-3
# rpm -q php-mysql
php-mysql-4.2.2-17
#

"/etc/php.ini" を変更します。

    :

register_globals = On

    :

default_charset = "EUC-JP"

    :

[mbstring]
; language for internal character representation.
mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
mbstring.internal_encoding = EUC-JP

; http input encoding.
mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
mbstring.http_output = SJIS

; enable automatic encoding translation accoding to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
; portable libs/applications.
mbstring.encoding_translation = On

; automatic encoding detection order.
; auto means
mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
mbstring.func_overload = 0

    :


 MySQLのインストール

MySQLのサーバーを確認します。

# rpm -q mysql
mysql-3.23.58-1
# rpm -q mysql-server
mysql-server-3.23.58-1
#

MySQLのサーバーを起動します。

# chkconfig mysqld on
# service mysqld start
MySQL データベースを初期化中:  [ OK ]
MySQL を起動中:                    [ OK ]
#

データベースを作ります。

# mysqladmin create oscommerce
#

ユーザ("tomo")を権限を設定しながら登録します。

# mysql oscommerce
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.23.58

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant all on oscommerce.* to tomo@localhost identified by 'passwd';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> \q
Bye
#


 Apacheの起動

# chkconfig httpd on
# service httpd start
httpd を起動中:  [ OK ]
#


 起動してみます

http://192.168.0.7/catalog/install

「New Install」のところをクリックし、MySQLのデータベースの情報を入力します。


「Continue」を押し続けると、以下の画面になります。

「Catalog」ボタンで、サイトが開きます。「Administration Tool」ボタンで、管理画面のログイン画面が開きます。

以下は、管理画面のログイン画面です。

 ユーザ: admin、パスワード:admin でログオンできます。

以下がサンプル画面です。

 画面上部の警告の対策をします。

# chmod 644 catalog/includes/configure.php
# chmod 644 admin/includes/configure.php
# rm -rf catalog/install

To previous pageTo home pageMailing to meJump to Top of pageline.gif (927 ツバツイツト)line.gif (927 ツバツイツト)tomo.gif (1144 ツバツイツト)
カスタム検索


Tweet