cmscartfound cmscart (http://www.cmscart.org).
following install.txt, at the terminal, installed mysql
> sudo apt-get install mysql-server
specifying a password for root on the way.
unzip the downloaded file. moved the file at /var/www.
> sudo chown -R www-data:www-data /var/www/cmscart104 >mysql -u root -p mysql>create database cmscart; mysql> use cmscart; mysql> source /var/www/cmscart104/cmscart/sql/mysql/cmscart.sql; Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.00 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.01 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.00 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.00 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.01 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.00 sec)admin/admintemplates.php?SiteName=mars Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.01 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.01 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.01 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.01 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.00 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (0.01 sec) mysql>\q
edit config.php
$dbuser = "root"; $dbpass = "********"; > > > > (read on...)
edit /etc/apache2/sites-available/default add
AddType application/x-httpd-php .php DirectoryIndex index.php
save it as cmscart
> sudo a2ensite cmscart > sudo /etc/init.d/apache2 restart
access on browser http://localhost/admin/adminsites.php
ugrrrrr... doesn't work
edited admin/includes/Zip.php
//Excluded due to minimal code need
// require_once 'PEAR.php';
//Creates OS Constants
if (substr(PHP_OS, 0, 3) == 'WIN') {
//define('OS_WINDOWS', true);
//define('OS_UNIX', false);
//define('PEAR_OS', 'Windows');
OS_WINDOWS=true;
OS_UNIX=false;
PEAR_OS='Windows';
} else {
//define('OS_WINDOWS', false);
//define('OS_UNIX', true);
//define('PEAR_OS', 'Unix'); // blatant assumption
OS_WINDOWS=falst;
OS_UNIX=true;
PEAR_OS='Unix';
needed
> sudo apt-get install php5-mysql
too many places to admust. giving up.
• Wrote Teru at 10:07 | read 41× | 1 Comments
icon is the article's permalink.