Read more:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-magento-on-ubuntu-14-04
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server php5-mysql
sudo mysql_install_db
sudo mysql_secure_installation
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt libcurl3 php5-curl php5-gd
sudo nano /etc/apache2/mods-enabled/dir.conf
Change line: DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
sudo nano /etc/apache2/sites-available/magento.conf
< VirtualHost *:80 >
DocumentRoot /var/www/html
AllowOverride All
< / Directory >
< / VirtualHost >
sudo a2ensite magento.conf
sudo a2dissite 000-default.conf
sudo a2enmod rewrite
sudo php5enmod mcrypt
mysql -u root -p
CREATE DATABASE magento;
CREATE USER magento_user@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON magento.* TO magento_user@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
Copy magento folder to this path /var/www/html/
Permission folder
sudo find /var/www/html/magentoInstallationFolder/ -type d -exec chmod 775 {} \;
sudo find /var/www/html/magentoInstallationFolder/ -type f -exec chmod 664 {} \;
sudo find -type d -exec chmod 775 {} \;
sudo find -type f -exec chmod 664 {} \;
Set Writable for 3 folders in root magento: var, media, app/etc
sudo chmod -R 777 var/ media/ app/etc/ downloader/
No comments:
Post a Comment