Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### Install Worpress on exsisting Nextcloud Installtion ####
- ## create wordpress databse ##
- # create database called wordpress
- CREATE DATABASE wordpress;
- # create database user with password
- CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'password_here';
- #grant accesss to databse
- GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost';
- #save changes and exit
- FLUSH PRIVILEGES;
- EXIT;
- ## Download lastest wordpress version ##
- cd /tmp && wget https://wordpress.org/latest.zip
- unzip latest.zip
- mv wordpress /var/www
- ## create apache config ##
- nano /etc/apache2/sites-available/wordpress.conf
- <VirtualHost *:80>
- ServerAdmin master@domain.com
- DocumentRoot /var/www/wordpress/
- ServerName demo.apfelcast.com
- ServerAlias www.demo.apfelcast.com
- Alias /wordpress "/var/www/wordpress/"
- <Directory /var/www/wordpress/>
- Options +FollowSymlinks
- AllowOverride All
- Require all granted
- <IfModule mod_dav.c>
- Dav off
- </IfModule>
- SetEnv HOME /var/www/wordpress
- SetEnv HTTP_HOME /var/www/wordpress
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- a2ensite wordpress.conf
- service apache2 restart
- ## adjust access to folders ##
- chown -R www-data:www-data /var/www/wordpress/
- chmod -R 755 /var/www/wordpress/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement