diff options
| author | davidtsadler <davidtsadler@googlemail.com> | 2012-04-30 20:42:01 +0100 |
|---|---|---|
| committer | davidtsadler <davidtsadler@googlemail.com> | 2012-04-30 20:42:01 +0100 |
| commit | 5b2629f3350cd448ab02f87c89dd972bc607e52a (patch) | |
| tree | cf6f2c9c25221f24e6addc4e60781d7e32009a0f /_site_build/_posts | |
| parent | 115592c9b76e42c526234c88a325793b4ec5d150 (diff) | |
Save work in progress of first post.
Diffstat (limited to '_site_build/_posts')
| -rw-r--r-- | _site_build/_posts/2012-04-21-how-to-install-magento-on-ubuntu.markdown | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/_site_build/_posts/2012-04-21-how-to-install-magento-on-ubuntu.markdown b/_site_build/_posts/2012-04-21-how-to-install-magento-on-ubuntu.markdown index ce0e112..0ef8a87 100644 --- a/_site_build/_posts/2012-04-21-how-to-install-magento-on-ubuntu.markdown +++ b/_site_build/_posts/2012-04-21-how-to-install-magento-on-ubuntu.markdown @@ -9,10 +9,10 @@ comments: true google_plus: true twitter_share: true facebook_like: true -published: false +published: true licensed: true --- -By the end of this guide you will have installed Magento, and some sample data, locally on Ubuntu. This will allow you to get to grips with the software before installing it onto a production server. In addition to Magento I will take you through installing Apache, PHP and MySQL. I'm going to assume that you are using Ubuntu 11.10 (Oneiric Ocelot) and that you wish to install version 1.6.2.0 of Magento. You're results may vary if you are using different versions. +By the end of this guide you will have installed Magento, and some sample data, locally on Ubuntu. This will allow you to get to grips with the software before installing it onto a production server. In addition to Magento I will take you through installing Apache, PHP and MySQL. I'm going to assume that you are using Ubuntu 12.04 (Precise Pangolin) and that you wish to install version 1.7.0.0 of Magento. You're results may vary if you are using different versions. As this is quite a long post I have broken it down into various sections. Feel free to ignore those parts that are not relevent for you. @@ -92,16 +92,40 @@ sudo service apache2 restart {% endhighlight %} <h2 id="php">Installing the PHP scripting language.</h2> -asfsadfdsfsdfs +As can be seen from the list of system <a href="http://www.magentocommerce.com/system-requirements" rel="external nofollow" target="_blank" title="Go to the list of Magento requirements">requirements</a>, Magento needs PHP version 5.2.13 or later with the following extensions. + +* PDO_MySQL +* simplexml +* mcrypt +* hash +* GD +* DOM +* iconv +* curl +* SOAP + +We will therefore install PHP with the following command. + +{% highlight bash %} +sudo apt-get install php5 php5-curl php5-gd php5-mcrypt php5-mysql -y +{% endhighlight %} <h2 id="mysql">Installing the MySQL database server.</h2> -asfdsfsd +The command below will install MySQL. Note that the install process will ask you to create and confirm a password for the root user. Remember the password that you enter as it will be needed later. + +{% highlight bash %} +sudo apt-get install mysql-server -y +{% endhighlight %} <h2 id="directory">Creating the directory from which Magento will be served from.</h2> -asfdsafdf +Before we get into the business of creating the directory I need to point out a few things. The process below is heavly infulenced by how I setup websites when developing locally. The actual whys and wherefores of how I do this is are too long to go into detail in this post but can be summarised as such. + +* Each site is served from its own directory named after the site's domain name. E.g, `my-example-site.com` +* Group ownership of these directories, and their contents, is set as `www-data`. The same group that the Apache process runs under. +* The directories are located in a `public_html` directory that has been created in my home directory. + +Many of the commands that follow use absoulte paths when refering to directories located in my home directory. Since the username on my computer is `dev` you will need to replace any occurrences of this with your own username. Feel free to also change the location of any of the directories. Just remember that you must use the correct location when configuring the virtual host later on. <h2 id="vhost">Configuring the Apache Virtual Host.</h2> -safsdfsdfdsf <h2 id="magento">Installing Magento.</h2> -sfsdafdsfad |
