Southern CA Event: Magento Meetup - Los Angeles, CA, Nov. 6. Meet the Magento Team!

Magento

Open Source eCommerce Evolved

Magento Forum

   
Installation Instructions for Magento on a VMWare Version of Ubuntu 7.10
 
developerx
Jr. Member
 
Total Posts:  25
Joined:  2007-10-24
 

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 wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
developerx
Jr. Member
 
Total Posts:  25
Joined:  2007-10-24
 

To install APC
sudo apt-get install perl
sudo apt-get install apache2-dev
sudo pecl install apc
sudo nano /etc/php5/apache2/php.ini

Append to the bottom of the file:

extension=apc.so

sudo /etc/init.d/apache2 restart

 
Magento Community Magento Community
Magento Community
Magento Community
 
developerx
Jr. Member
 
Total Posts:  25
Joined:  2007-10-24
 

Have realised there is a permission issue with:

developerx - 11 January 2008 06:28 AM

sudo chmod o+w app/code/core -R

had to use in the magento dir

sudo chmod o+w * -R

There must be another dir that is not writable by default

 
Magento Community Magento Community
Magento Community
Magento Community
 
STB
Jr. Member
 
Total Posts:  9
Joined:  2008-02-06
 
developerx - 11 January 2008 06:28 AM

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

If error occurs restarting apache (server 127.0.0.1 unknown), maybe your etc/apache2/apache.conf must be fixed adding :

ServerName localhost

bye… stefano.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ale acuna
Jr. Member
 
Total Posts:  2
Joined:  2008-06-18
 

I have followed all these instruction here, but I was doing as a root, not using ssh neither VMWare, trying to setup my Magento, but the Apache server was working before I follow these instruction and I was stucked on the folder write permission problems.
So now my http://localhost is not showing anything.
Apache is not working neither, when i do sudo /etc/init.d/apache2 restart
http (no pid file) not running
please help me!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
curiousEngine
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2008-08-16
Mauritius
 

Hello I have tried the same by following the instructions. Unfortunate apache2 is not working. here is the error:
httpd (no pid file) running
any help to resolve the issue would be kindly appreciated

This post might also interesting:
http://ubuntuforums.org/showthread.php?p=5593133

 Signature 

Software is like Sex, its better when its Free!

 
Magento Community Magento Community
Magento Community
Magento Community
 
curiousEngine
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2008-08-16
Mauritius
 

I have found the solution by following the instructions here:
http://ubuntuforums.org/archive/index.php/t-474152.html

and here:
http://www.theatons.com/ubuntu-install-php5-mysql-apache2-ssl-pdo-pdo_mysql#6

and I am happy to see apache working again:
from /var/log/apache2/error.log

[Sun Aug 17 13:05:37 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
PHP Fatal error:  PDO: driver pgsql requires PDO API version 20060511; this is PDO version 20060409 in Unknown on line 0
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_pgsql.so: undefined symbol: php_pdo_get_dbh_ce
[Sun Aug 17 13:23:40 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sun Aug 17 13:23:40 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g configured—resuming normal operations

However whilst trying to run magento, the following Error Submission Form:
Notice: Undefined index:  scheme in /var/www/magento/app/code/core/Mage/Core/Model/Store.php on line 729

 Signature 

Software is like Sex, its better when its Free!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
41770 users|585 users currently online|88966 forum posts