Magento Forum

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

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-23
 

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-23
 

Have realised there is a permission issue with:

developerx - 11 January 2008 05: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 05: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:  4
Joined:  2008-06-18
Paraguay
 

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

 
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

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaredwest
Jr. Member
 
Total Posts:  2
Joined:  2013-05-12
 

Thanks for posting these instructions. I didn’t even know it was possible to put Magento on Ubuntu. It’s users like you that make this forum great for sharing your knowledge.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sampeters
Jr. Member
 
Total Posts:  4
Joined:  2013-05-23
 

Agreed… more about instructions for getting apache up and running, that being said, it\’s useful information, especially the info about getting the permissions correct, those can always be tricky.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaredwest
Jr. Member
 
Total Posts:  2
Joined:  2013-05-12
 

I guess I’m a bit confused then, what exactly is Ubuntu then?

 
Magento Community Magento Community
Magento Community
Magento Community
 
sampeters
Jr. Member
 
Total Posts:  4
Joined:  2013-05-23
 

It’s an operating system for computers.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jillsanders
Jr. Member
 
Total Posts:  3
Joined:  2013-05-12
 

Ubuntu is a linux based operating system. It’s just like Mac or Windows, only it’s Linux based and is free.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sampeters
Jr. Member
 
Total Posts:  4
Joined:  2013-05-23
 

And it can also be run on servers, Jill.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sampeters
Jr. Member
 
Total Posts:  4
Joined:  2013-05-23
 

But this thread is more about getting it working on the famed apache2.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jillsanders
Jr. Member
 
Total Posts:  3
Joined:  2013-05-12
 

Of course, because it’s being installed on a local virtualized version of Ubuntu where a local serve with apache is then being installed so the whole thing can be tested.

 
Magento Community Magento Community
Magento Community
Magento Community
 
XComSteveJ
Magento Team
 
Avatar
Total Posts:  8
Joined:  2012-01-09
 

Update: Greetings, I am a technical writer at Magento. We’ve put a lot of effort into install and upgrade instructions, focusing on CE 1.8 and EE 1.13, although the same instrux will likely work for older versions also.

We’d love you to try these out and give us feedback.

1) How to set file system permissions and ownership before installing Magento (more secure than before):

http://www.magentocommerce.com/knowledge-base/entry/install-privs-before

2) How to set permissions after installation, how to secure the file system after installing extensions, and after Support patches (MUCH more secure than before):

http://www.magentocommerce.com/knowledge-base/entry/install-privs-after

3) Installation Guide:

http://www.magentocommerce.com/knowledge-base/entry/ce18-and-ee113-install-upgrade

4) Upgrade Guide:

http://www.magentocommerce.com/knowledge-base/entry/ce18-and-ee113-upgrading

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2