Hey Folks, today we will configure WordPress CMS on Apache Server ( Kali Linux ) in minimum time. We have previously installed WordPress CMS on Ubuntu server which you can check from below.
Ubuntu 20.04 : WordPress Installation on Ubuntu 20.04
If there is a popular cms in todayβs, then that is the WordPress. WordPress is becoming a most popular cms (content management system) because of his flexibility. WordPress is a open source platform which written in PHP and work with MySQL and It gives user friendly interface which helps to user to setup his website in few minutes. After complete the setup it gives the administrator console whose help to control whole website.
Letβs take a look π !!
Just follow our steps continuously and CMS will be setup easily. First we will install the apache web server using the following command to host the WordPress CMS.
apt install apache2
As we know, to build a website, we also need a database server to save the credentials of users and administrators as well as WordPress content, thatβs why we need to install maria database server to store all these data.
apt install mariadb-server mariadb-client
Just ignore all these things and enter continuously. Finally enter βqβ to exit the configuration.
Hmm π !! During the configuration of the database server you will get a prompt as shown in the image below, in which you have to proceed by selecting βNoβ.
systemctl start mysql
Now we will execute the follwing commands to protect remote root login of the database server. All you have to do is change the root password of mysql as per your choice and you can follow everything else according to us.
mysql_secure_installation
Just follow the steps we have shown in the image below.
Another thing we need to configure is php, which we will install using the following command.
apt install php php-mysql
Now we will create database for wordpress by using the following command. You can set the database name, user and password as per your choice or keep the names given by us.
mysql -u root -p
CREATE DATABASE wordpress_db;
CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
All the backend work is almost done and now we have to download and install the WordPress CMS from the terminal using the wget command. After downloading the CMS, simply extract the zip file at any location using the tar command.
wget https://wordpress.org/latest.tar.gz
tar -xvf latest.tar.gz
cp -R wordpress /var/www/html/
mkdir /var/www/html/wordpress/wp-content/uploads
chown -R www-data:www-data /var/www/html/wordpress/
chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads/
chmod -R 755 /var/www/html/wordpress/
systemctl start apache2
Installation and backend configuration have been completed successfully and now to create a wordpress website we need to access the following locahost address to our web server.
http://localhost/wordpress/
After choosing the preferred language, click βLetβs goβ and move on.
Entered the names of the same database, user and password that we created earlier.
Near π !! Just click on it and proceed.
Ready π !! It is time to create credentials for the WordPress admin login. Set the password and username as you like and proceed.
Done π !! All thatβs done is just hit enter on the login button and go inside the admin panel of the WordPress CMS.
Aggressive π !! Now you can easily create your own website easily using the drag and drop feature provided by WordPress.
Opps π !! When we upload a theme or plugin greater than 2 mb, we get an error as shown in the image below. Letβs try to slove it π !!
Now we need to edit the configuration of the php.ini file. First locate the file using the βlocateβ command and then open it using any preferred file editor.
locate php.ini
nano /etc/php/7.3/apache2/php.ini
systemctl restart apache2
Just increase the uploading file size feature from 2mb to 64mb and more.
Solved π !! As you can see the error is gone and now we can upload any theme or plugin with more than 2 mb.
Opps π !! When we access our WordPress web page on another system we get another error. Letβs try to solve it too π !!
Ok π !! You have to paste these two lines in the βwp-configβ file inside the WordPress directory.
Congratulations π !! We have resolved all the error encountered during the installation of WordPress CMS. Now you can build your website and paste the content to be published.
Tags : WordPress installation | how to install wordpress in localhost | wordpress installation in kali linux | install wordpress apache server | upload_max_filesize error | sub domain path wordpress.
A keen learner and passionate IT student. He has done Web designing, CCNA, RedHat, Ethical hacking, Network & web penetration testing. Currently, he is completing his graduation and learning about Red teaming, CTF challenges & Blue teaming.
The gau (Get All URLs) tool is a versatile open-source utility that collects URLs from…
Jsluice++ is a Burp Suite extension designed for passive and active scanning of JavaScript traffic…
Hey Folks :) !! In this tutorial, we will describe some of the techniques commonly…
Hey Folks :) !! In this article, we present the "Termux Cheat Sheet for Hackers"…
Amid the rapid advancement of technology, the significance of human involvement in cybersecurity frequently goes…
Hey Folks, we are back today after such a long break, but don't worry we…
This website uses cookies.