Comments on How to Install Magento with Nginx on Ubuntu 15.10
Magento is an open source e-commerce software and content management system for e-commerce websites based on the PHP Zend Framework. It uses MySQL or MariaDB as database backend. The Magento development has been started in 2008 by Varien. Inc. In this tutorial, I will show you how to install Magento 2 with Nginx, PHP-FPM, and MariaDB as the database. I will use ubuntu 15.10 (Wily Werewolf) as a basis for the installation.
9 Comment(s)
Comments
Hi, I followed everything through with no errors right until the end. Nothing works because my nginx root is /var/www/html and my magento folder is in www. Can you tell me where I went wrong please?Thanks :)
/var/www/html is the default nginx vhost, this tutorial creates a new one in the file /etc/nginx/sites-available/magento
Check that you created that file, that you changed the domain name inside, that you reloaded anginx and that you access the website trough that exact domain name. If you use another domain name that points to the same server or when you use the Ip, then you'll end up in the default vhost and not the magento site.
Yes, file /etc/nginx/sites-available/magento exists and the url looks good for my site. When I go to url it does show the default
Welcome to nginx!
Just deleted my server instance and started again from the beginning. Still not showing my Magento and going straight to nginx default page.
I found that single quotes instead of double quotes would let complex passwords pass on the setup:install line without trouble. Anything else would freak it out. I also never needed the developer creds on install. I used 2.0.2 downloaded from their website.
bin/magento setup:install --backend-frontname="adminlogin" \
--key="23dlasdf2vade2sdg4SJA5umasdfafKsI" \
--db-host="localhost" \
--db-name="magento" \
--db-user="magento" \
--db-password='tRau}?>Zd)' \
--language="en_US" \
--currency="USD" \
--timezone="America/New_York" \
--use-rewrites=1 \
--use-secure=1 \
--base-url="http://store.mag.com" \
--base-url-secure="https://store.mag.com" \
--admin-user="admin" \
--admin-password='lI=sff[YD' \
--admin-email="[email protected]" \
--admin-firstname=admin \
--admin-lastname=user \
--cleanup-database
Thanks for your Tutorial, i had a problem and now i could fix it
Such a great tutorial. Thanks so much I've been trying to install this magento for a day now and have reinstalled the server twice before finsing your step by step simplified.
In step 4 installing magento2 section you have
tar -xzvf 2.0.0.tar-gz where it should read
tar -xzvf 2.0.0.tar.gz
I was getting erro and noticed it. So far its a great learning resource.
cron job :
cd /var/www/magento2/
bin/magento cron:run --group="www-data"
Using php-7.0,
after logging in to magento with "composer install -v", I never made it to github key:
Deprecation Notice: The callback MagentoHackathon\Composer\Magento\Plugin::onNewCodeEvent declared at /var/www/magento2/vendor/magento/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Plugin.php accepts a Composer\Script\CommandEvent but post-install-cmd events use a Composer\Script\Event instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:289Stack trace: phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:169 phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:95 phar:///usr/bin/composer/src/Composer/Installer.php:296 phar:///usr/bin/composer/src/Composer/Command/InstallCommand.php:133 phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:259 phar:///usr/bin/composer/vendor/symfony/console/Application.php:844 phar:///usr/bin/composer/vendor/symfony/console/Application.php:192 phar:///usr/bin/composer/src/Composer/Console/Application.php:221 phar:///usr/bin/composer/vendor/symfony/console/Application.php:123 phar:///usr/bin/composer/src/Composer/Console/Application.php:101 phar:///usr/bin/composer/bin/composer:43 /usr/bin/composer:24