Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Wordpress on Debian
#http://www.linuxserve.com/2015/05/install-latest-wordpress-version-on.html
su -
apt-get install apache2 mysql-client mysql-server php5 php5-mysql php5-curl php5-gd
mysql -u root -p
CREATE DATABASE wpdatabase;
CREATE USER wpuser@localhost IDENTIFIED BY 'wppass';
GRANT ALL PRIVILEGES ON wpdatabase.* TO wpuser@localhost;
FLUSH PRIVILEGES;
exit
service apache2 restart
service mysql restart
cd /var/www/html
wget -c http://wordpress.org/latest.zip
apt-get install unzip
unzip -q latest.zip -d /var/www/html/
mv /var/www/html/wordpress/* /var/www/html/.
chown -R www-data.www-data /var/www/html
chmod -R 755 /var/www/html
mkdir -p /var/www/html/wp-content/uploads
chown -R www-data.www-data /var/www/html/wp-content/uploads
cd /var/www/html
cp wp-config-sample.php wp-config.php
vim wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment