This page will show how to install the WordPress Content Management System.
Note: This is a guide on how to install and configure CMS and Wiki System on localhost.
To install and configure WordPress and DokuWiki on a Debian system, each with its own directory (localhost/wordpress and localhost/dokuwiki), follow these steps:
1. Before starting, ensure your Debian system is up to date.
sudo apt update sudo apt upgrade
2. Install packages needed for both CMS and Wiki.
sudo apt install apache2 mariadb-server php php-mysql php-xml php-gd php-mbstring php-curl unzip -y
3. Secure your MariaDB installation and create databases for WordPress and DokuWiki.
sudo mysql_secure_installation
Follow the prompts to set a root password and secure the database.
4. Log in to MariaDB.
sudo mysql -u root -p
5. Create database and users:
CREATE DATABASE wordpress; CREATE DATABASE dokuwiki; CREATE USER 'eusoffwp'@'localhost' IDENTIFIED BY 'eusoff*A'; CREATE USER 'eusoffdw'@'localhost' IDENTIFIED BY 'eusoff*A'; GRANT ALL PRIVILEGES ON wordpress.* TO 'eusoffwp'@'localhost'; GRANT ALL PRIVILEGES ON dokuwiki.* TO 'eusoffdw'@'localhost'; FLUSH PRIVILEGES; EXIT;
6. Download WordPress.
cd /var/www/html sudo wget https://wordpress.org/latest.tar.gz
7. Extract WordPress.
sudo tar -xvzf latest.tar.gz
8. Remove the .tar file.
sudo rm latest.tar.gz
9. Set permissions of WordPress directory
sudo chown -R www-data:www-data /var/www/html/wordpress sudo chmod -R 755 /var/www/html/wordpress
10. Configure WordPress by opening browser and go to http://localhost/wordpress.
11. Follow the WordPress installation wizard.
wordpresseusoffwpeusoff*Alocalhostwp_
Click Submit
12. Run the Installation.
13. Fill up information needed.
Once done, Install WordPress.
Once it in installed, it will show success. Press Log In.
14. Enter the username and password setup-ed in step 13 and press Log In.
15. Go to Posts and Add New Post.
Click Publish.
It will now be displayed on localhost/wordpress main page.
16. Go to /var/www/html directory
cd /var/www/html
17. Download DokuWiki.
sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
18. Extract the DokuWiki file.
sudo tar -xvzf dokuwiki-stable.tgz
19. List directory and rename the file.
ls sudo mv dokuwiki-2024-02-06b dokuwiki ls
20. Remove the unextracted DokuWiki file.
sudo rm dokuwiki-stable.tgz
21. Set permissions.
sudo chown -R www-data:www-data /var/www/html/dokuwiki sudo chmod -R 755 /var/www/html/dokuwiki
22. Configure DokuWiki by opening browser and go to http://localhost/dokuwiki