Skip to content

Instantly share code, notes, and snippets.

@sirkitree
Created July 3, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirkitree/94ef6cc083443e2f5d4b1a8850015cc9 to your computer and use it in GitHub Desktop.
Save sirkitree/94ef6cc083443e2f5d4b1a8850015cc9 to your computer and use it in GitHub Desktop.
installing lamp on windows 10 bash

Install LAMP

  • sudo apt-get install apache2 php5 libapache2-mod-php5 mariadb-server php5-mysql php5-cli php5-gd

change port

Windows is using 80 already

  • vim /etc/apache2/ports.conf
  • change 80 to 8080

start services

  • sudo service apache2 start
  • sudo service mysql start

Clean urls

  • sudo a2enmod rewrite
  • vim /etc/apache2/apache2.conf
  • "AllowOverride All"
  • sudo service apache2 restart

Create database

  • mysql -uroot -proot -e 'create database contenta;

Install Composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment