Created
September 22, 2015 19:16
-
-
Save stephanetimmermans/914db4be926874f200e8 to your computer and use it in GitHub Desktop.
Install Wordpress on Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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