OsCommerce installation on Ubuntu

Uit DeVliegendeWiki

Ga naar: navigatie, zoeken

Installing MySQL

I installed it simply by:

sudo apt-get install mysql-server

As part of the text-based procedure, it asked for the root password. Further, according to http://www.howtogeek.com/howto/ubuntu/install-mysql-server-5-on-ubuntu/, I also needed to do:

sudo apt-get install php5-mysql

MySQL worked at once. Probably, this setup can be done better, like getting it to operate within a designated account, or as a deamon. But for now, I only need a simple development server on my laptop. BTW: CentOS has MySQL default installed, within its own account. I found that really cool.

Installing PHP

Again through apt-get:

sudo apt-get install php5

Installing Apache

I thought I did it through

sudo apt-get install apache2

Web pages are being served out of /var/www

Or, all at once...

When I was halfway with installing the stuff mentioned above, I came across a page that explained I can set up the whole LAMP stack at once through

sudo tasksel install lamp-server

Installing osCommerce

At this domain, I will only use osCommerce. So after downloading I placed all documents from the directory catalog in /var/www. I used osCommerce v2.2 rc2.

The first time I open the catalog page, I usually get some errors. One concerning write permissions to file /var/www/include/configure.php. This was solved through

chmod 774 configure.php
Persoonlijke instellingen