Installing wordpress on linux and configuring the site

미연

·

2022. 5. 7. 02:03

In this post I will show you how to install wordpress on Linux. An example is shown on Ubuntu 20.04.Go to the server management console and then update the server I will clear the console to make it more pleasant to work To check for updates and download them, enter the following command (All commands will be in the description) Wait for the download to finish. During the download, when required, enter Y You can also find written instructions at the link in the description To download files, enter YHere just press EnterNow we are waiting for the update to complete The server update is complete now we will download the web server, the database and then wordpress itself Download the Apache web serverWe agree when it is necessary to download additional files by entering Y Now let's add the web server to autorun and turn it on To check if the web server is working, simply enter the IP address of the server in the address bar If you have the same message loaded, it means that the web server is running Now let's install the MySQL databaseI recommend cleaning the console to make it more pleasant to work You can find all the commands that are used in the console in the description under the post We agree with downloading additional files After downloading, you need to configure database security You can read more about all the server settings at the link in the description Here you need to agree and then choose a number. It is recommended to choose the number 2 This digit is responsible for the complexity of the password, where 2 is the need to enter small and large letters, numbers and special characters. Also, the password must be at least 8 characters in any case Then you can just agree by entering Y for each question Now we need to install PhP modules on the server Enter the command and then agree to the installation of additional files.Enter Y when the question appearsNow we need to activate the rewrite module and restart the web server Now download to our Wordpress server this is done using the following commands With this command, we download the archive with the files With this command, we unpack the archive Now copy the unpacked files to the required folder Now we will grant the rights to work with the web server to this folder This is all done using these two commands Now we need to create a database, a user for this database and grant rights to this user To get started, enter the MySQL admin panel using this command Now we are creating a database, be sure to specify the wp_ at the beginning database name Now we are creating a userYou can read a detailed guide on MySQL at the link in the description Now we will grant privileges to work with the created database to this user Now update the privileges and exit the admin panel We have finished with the server settings and now let's see if our wordpress is working Go to the page with our website and add to the IP address /wp-admin/ You should have a language selection displayed, which means that everything is configured correctly Here we select the desired languageNext, we need to connect the database to the site Here we specify the name of the database we created Specify the name of the user created for this database The password that was chosen for this user The rest of the settings can not be touched because we have specially configured them so as not to change them Now we will be asked to create an administrator for our site Here we will need to specify the name of the site, the administrator's login, come up with a password for it and enter an email.You can enter any desired name for your site It is better to make the login unique so that it is difficult to pick it up You can leave the password created by the system or enter your own Depending on the complexity of the password, it will be more difficult to log in to the admin account Mail must be entered because you may forget some data and this will help to restore everything The site has been created now we can log in to it This is how the admin panel of the site looks like. Let's do it now I'll show you how to add a theme to the site, as well as plugins To add both pages to the site and other things, use the side menu. Select Themes in it to add a theme Here you will initially have several downloaded themes that you can activate immediately and modify them already Let's add a new themeYou can use the search and find a specific topic by keywords You can also use other sections to view the available themes to install on the site To install the theme, click on *Install* After that, wait for the download of the theme to finish When the theme is downloaded, it will be added to the main theme page and you will be able to activate it To activate the theme, click on *Activate* The theme is activated and now it requests the installation of a specific plugin To add plugins, go to the *Plugins* section and here you can activate plugins, install, delete There are several pre-installed plugins here. Let's delete one and leave the second one Under the name there are activation or deletion buttons We remove this plugin because it is useless The plugin was removed after consentTo add a plugin, click on *Add plugin* There will be a lot of plugins that you can familiarize yourself with and install on your website You can also view plugins by category and find out what people install To add the proposed plugin, simply click on it and then on the install button Now the plugin is downloaded to the system You can also use search to find a specific plugin The plugin has been downloaded and is now on the main plugins page. Let's activate all available plugins Select plugins and then apply the activation action to them You will be prompted to configure the plugin, but you can just skip configuring them.Each plugin will offer to configure it. Be careful with adding plugins because they load the system You can also enable and disable auto-updating of plugins.After installing the plugin for the theme, you will be prompted to customize the theme. You can skip this step This completes the initial setup of the site on wordpress If you have any questions, leave them in the comments