User Tools

Site Tools


cms1

This is an old revision of the document!


Install and Configure Content Management System & Wiki System

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

  • Apache: Web server.
  • MariaDB: Database server.
  • PHP: Scripting language for WordPress and DokuWiki.
  • unzip: To extract WordPress and DokuWiki files.

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;

WordPress

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.

  • Database Name: wordpress
  • Username: eusoffwp
  • Password: eusoff*A
  • Database Host: localhost
  • Table Prefix: wp_

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.

cms1.1737255201.txt.gz · Last modified: 2025/01/19 02:53 by 1211112228

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki