WooCommerce is a flexible, customizable, open-source eCommerce platform built on WordPress. Whether you are building an online shopping website or simply adding an online store, WooCommerce makes it easy to sell anything, and fulfill customer orders in just minutes.
In this guide, you will install WooCommerce on a Debian 11 server.
Deploy a Debian 11 server Instance on Vultr
Install LAMP (Apache, MariaDB/MySQL, PHP) stack
SSH to the server and Login as root
Download the latest WordPress version tar achieve from WordPress.org.
# wget https://wordpress.org/latest.tar.gz
Extract the downloaded file.
# tar -xvf latest.tar.gz
Move the extracted files to
# mv wordpress/* /var/www/html/
Grant Apache ownership of the
# chown -R www-data:www-data /var/www/html
Login to MySQL.
# mysql -u root -p
Create a new database for WordPress.
mysql> CREATE DATABASE wpdb;
Create a new database user, choose a strong password to match policy requirements.
mysql> CREATE USER âuser'@'localhost' IDENTIFIED BY 'YOUR_STRONG_PASSWORD';
Give the new user full rights to the WordPress database.
mysql> GRANT ALL PRIVILEGES ON wpdb.* TO 'user'@'localhost';
Refresh permissions and exit the MySQL console.
mysql> FLUSH PRIVILEGES; mysql> EXIT;
In your web browser, visit your serverâs public IP Address or linked Domain name.
You will be presented a welcome to WordPress Page, click Letâs go to proceed.
Enter the database name, username, and password created earlier, then click submit.
If you granted Apache full permissions to the webserver directory, a wp-config file will be automatically created.
Run the installation to get started with configuring your WordPress Installation, then login to the CMS with your set username and password.
With WordPress installed on your server, you can now proceed to install WooCommerce.
# apt install unzip
Download the WooCommerce Plugin.
# wget https://downloads.wordpress.org/plugin/woocommerce.5.8.0.zip
Extract the downloaded WooCommerce zip archive file.
# unzip woocommerce.5.8.0.zip
Move the extracted file to the WordPress plugins directory.
# mv woocommerce /var/www/html/wp-content/plugins
Grant apache ownership permissions to the WooCommerce plugin directory.
# chown -R www-data:www-data /var/www/html/wp-content/plugins/woocommerce
Through a Web Browser, login to your WordPress dashboard and open
Plugins from the main sidebar.
Under installed plugins, click activate to enable WooCommerce and proceed to set up your store.
You will be required to fill in details about your store such as business address, base country of operation, city, email address, category, and type of products to be listed on your online store. OR click
skip setup store details to manually set up your store.
Next, choose a theme for your new online store. You can select from hundreds of already prebuilt themes, or simply modify your existing theme.
You will be prompted to connect your WordPress account to Jetpack. Once connected, you will be redirected back to the WordPress dashboard and start adding products for your WooCommerce powered online store.
Congratulations, you have successfully installed and set up WooCommerce on a Debian 11 server.