Follow the prompts to enter information related to your WordPress website. In a web browser, visit the domain name for your website - above. Give the webserver user ( Configure WordPress For the guides linked above, this is the public_html directory. Move the contents of the src/wordpress directory into the root directory defined in your website’s configuration file. #Install filezilla ubuntu 20.04 installIf, for instance, you later install a newer version but subsequently need to roll it back, you have a past version stored, and labeled here. Here is an example: sudo mv wordpress-`date "+%Y-%m-%d"`.tar.gzĭoing this, while not required, can be helpful. Rename the tar.gz package in a way that makes it easy to distinguish, such as including the date in the filename. Here and following, the website directory created in the LAMP and LEMP guides linked above is used, which is /var/sudo mkdir -p /var/ You can then use the quit command to exit MySQL.Ĭreate a src directory in your website’s directory, then change into that new directory. * TO 'wpuser' 'localhost' FLUSH PRIVILEGES If you are using a LEMP stack use the below steps:Īdd index.php to the location / block of your site’s configuration file.ĬREATE USER 'wpuser' 'localhost' IDENTIFIED BY 'password' GRANT ALL PRIVILEGES ON wordpress. See what modules are enabled using the below command: sudo a2enmod statusĮnable the rewrite module if it is not already enabled, then restart Apache: sudo a2enmod rewrite If you are using a LAMP stack, make sure the rewrite module is enabled. #Install filezilla ubuntu 20.04 how toHow to Install the LEMP Stack on Ubuntu 18.04 guide. How to Install a LAMP Stack on Ubuntu 20.04 guide. Additionally, make sure to replace all version numbers in the below guides with the number of the version you are installing. For either stack, make sure that you are installing at least PHP version 7.4. Install and configure a LAMP or LEMP stack. Then, you need to create a database that WordPress can use. To satisfy these requirements, you can set up a LAMP (Linux, Apache, MySQL, and PHP) or a LEMP (Linux, NGINX, MySQL, and PHP) stack. You also need a webserver to serve the content from WordPress. WordPress runs on PHP and uses MySQL/MariaDB for storing data. If you’re not familiar with the sudo command, see the Commands that require elevated privileges are prefixed with sudo. Finally, restart the service to apply the changes: sudo systemctl restart vsftpd.This guide is written for non-root users. Rsa_private_key_file=/etc/ssl/private/vsftpd.pemĦ. Then, add the following lines: rsa_cert_file=/etc/ssl/private/vsftpd.pem Next, open your nf file in an editor and change the line ssl_enable=NO to ssl_enable=YES: ssl_enable=YESĤ. Provide the required information when prompted or keep the default configuration by pressing Enter.ģ. To do so, run the command: sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pemĢ. Start by creating a new certificate with openssl. This will add a layer of secure encryption to your FTP traffic.ġ. This is done by using FTPS – File Transfer Protocol over SSL (Secure Socket Layer).įor this to work, users need to be set up with a shell account on the FTP server. Encrypt Traffic With FTPSĪnother method to secure your FTP server is to encrypt the traffic. To add blocked users, edit this file and add one user per line. Restart the vsftpd service: sudo systemctl restart rviceīy default, the list of blocked users from FTP access is stored in /etc/ftpusers. If you want to let authenticated users upload files, edit the nf file by entering the following: sudo nano /etc/nfįind the entry labeled write_enable=NO, and change the value to “ YES.” Now, you can put any files you want to share via FTP into the /srv/ftp folder (if you left it as the default), or the /srv/ftp/ new_location/ directory (if you changed it). Restart the vsftpd service to apply the changes: sudo systemctl restart rvice Sudo usermod -d /srv/ftp/new_location ftp To change the FTP home directory, enter the following: sudo mkdir /srv/ftp/new_location You can change this by creating a new directory and changing the FTP user home directory. Configuring and Securing Ubuntu vsftpd Server Change Default Directoryīy default, the FTP server uses the /srv/ftp directory as the default directory. You should now be successfully logged in to your FTP server. #Install filezilla ubuntu 20.04 passwordLog in using the testuser account and password you just set. Replace ubuntu-ftp with the name of your system (taken from the command line). Step 6: Connect to Ubuntu FTP ServerĬonnect to the FTP server with the following command: sudo ftp ubuntu-ftp These are the listening ports for the FTP service. Note: If you are using a different firewall, refer to the instructions to allow access on Port 20 and Port 21.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |