|
After many hours of trying to get Magento 0.7.14800 to work with scratch version of Ubuntu, I finally got it working, below are steps I followed:
Install Ubuntu Gutsy Gibbon (7.10) with LAMP Option
Prepare Ubuntu
sudo apt-get update
sudo apt-get install make
sudo apt-get install curl
sudo apt-get install php5-curl
sudo apt-get install php5-mcrypt
sudo apt-get install php5-mhash
sudo apt-get install php5-dev
sudo apt-get install php-pear
sudo apt-get install libmysqlclient15-dev
sudo pecl install pdo
sudo pecl install pdo_mysql
sudo nano /etc/php5/apache2/php.ini
Append to bottom of file:
extension=pdo.so
extension=pdo_mysql.so
Prepare Apache
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/rewrite.load
sudo nano /etc/apache2/sites-enabled/000-default
Change AllowOverride from None to All
sudo /etc/init.d/apache2 restart
Prepare Network
sudo nano /etc/network/interfaces
Change iface from dhcp to static and append to bottom of file:
address 192.168.0.10
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
sudo /etc/init.d/networking restart
Download and Prepare Magento
wget http://www.magentocommerce.com/downloads/assets/0.7.14800/magento-0.7.14800.tar.bz2
sudo mv magento*.bz2 /var/www
cd /var/www
sudo tar -xf magento*.bz2
sudo chown root magento -R
sudo chgrp root magento -R
cd magento
sudo chmod o+w var var/.htaccess app/etc
sudo chmod o+w media -R
sudo chmod o+w lib/pear/download -R
sudo chmod o+w app/code/core -R
^ These steps are missing from the installation notes, or at least are needed by this version
Prepare MySQL
sudo mysql
create database magento;
grant all on magento.* to ‘magento’@’localhost’ identified by ‘magento’;
flush privileges;
Install Magento
Browse to http://192.168.0.10/magento
Set locale details, click Continue
Click “Process with Automatic Download (Beta)”, click OK
Set MySql details
Change secure Connection to http and port 80
Untick “Do not use Apache Rewrites”, and tick “Skip URL validation”, click Continue
Enter personal Information, click Continue
You’re finished!
Notes that are useful
To Change the MySQL database details edit file /var/www/magento/app/etc/local.xml
To Change website url in magento edit table core_config_data, paths web/unsecure/host and web/secure/host
Enjoy
|