Skip to content

Instantly share code, notes, and snippets.

@Rafe
Created August 14, 2012 20:18
Show Gist options
  • Save Rafe/3352492 to your computer and use it in GitHub Desktop.
Save Rafe/3352492 to your computer and use it in GitHub Desktop.
LAMP wordpress install:
1. set user
useradd -ms /bin/bash [username]
passwd [username]
hostname [NEW_NAME]
2. login in new user, install packages:
sudo apt-get install apache2 php5 php5-mysql libapache2-mod-php5 apache2-mpm-prefork
sudo apt-get install mysql-server mysql-client
sudo apt-get install php5 ...libs
apache settings:
Apache's default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.
sudo /etc/init.d/apache2 start/stop/restart
4. install phpmyadmin:
apt-get install phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
3. git install codes
sudo apt-get install git
ssh-keygen #upload key to github
git clone [project]
git submodule init
git submodule update
#check password in wp-config
4. create database
mysql -u root -p #to login db
create DATABASE [dbname]
5. update nodejs and npm packages
5. run wordpress installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment