Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

plesk and php5


cdscn

Recommended Posts

Stay away from PHP5 on Plesk just as Vger stated.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Since PHP5 is a requirement in Plesk 8...

 

This is tricky and comes with no warranty :D

 

Scenario:

- A Windows box (Win2k Pro with IP 192.168.1.150) and a Linux box (Fedora Core 4 - Plesk 8 with IP 192.168.1.5)

 

On Windows

* Download and install Easy PHP

* Download OS Commerce

* Create a MySQL database called oscommerce and fill it with the query at /catalog/install/oscommerce.sql

* Install OS Commerce using Easy PHP

 

On Linux

* Get Samba working and add whatever user

service smb start
smbpasswd -a whateveruser

 

On Windows

* Open a explorer window pointing to C:\Program Files\EasyPHP1-8\www\

* Open a explorer windows pointing to \\192.168.1.5 (that's the Linux box, so you will need the whateveruser and its password)

* Create a folder called catalog in your Linux

* Copy the content from C:\Program Files\EasyPHP1-8\www\ to the newly created folder

* Go to http://localhsot/mysql/ and create a SQL export query. Under data, check 'Complete inserts' and 'Extended inserts'. Save the query as gzipped

* Copy the newly created query (something like oscommerce.sql.gz) to your /root/ folder

 

On Linux

* Copy the content from /root/catalog/ to /var/www/vhosts/default/htdocs/

cp /root/catalog/* /var/www/vhosts/default/htdocs/* -R

* Open your browser and log into Plesk

* Go to Server - Database Servers, click on Local MySQL server, then on the tab Databases and click on DB WebAdmin

* Create a database called oscommerce and import the query located in your /root/ folder

* Modify the table configuration to fit your needs. Basically, all you have to do is modify the folder for your temp files

update configuration set configuration_value='/tmp/' where configuration_key='DIR_FS_CACHE'
update configuration set configuration_value='/tmp/' where configuration_key='SESSION_WRITE_DIRECTORY'

* Modify both configure.php and change the directories to the ones in Linux

mcedit /var/www/vhosts/default/htdocs/includes/configure.php
mcedit /var/www/vhosts/default/htdocs/admin/includes/configure.php

 

That's it. It may not work for you but it does works for me :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...