

# sudo nano /etc/apache2/sites-available/nf Run theĬommands below to create a new configuration file called nf This file will control how users access WordPress content. # sudo chmod -R 755 /var/www/html/wordpress/įinally, configure Apache2 site configuration file for #sudo chown -R www-data:www-data /var/www/html/wordpress/ Then run the commands below to set the correct permissions for

# sudo mv wordpress /var/www/html/wordpress The value below are great settings to apply in yourĪfter downloading, run the commands below to extract theĭownloaded file and move it into a new WordPress root directory. # sudo apt install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-gd php7.1-xml php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-zip php7.1-curlĪfter install PHP 7.1, run the commands below to open PHP-FPM # sudo apt-get install software-properties-commonĬommands below to install PHP 7.1 and related modules.
#Download and install wordpress on ubuntu 18.04 password#
Password for root (enter for none): Just press the EnterĪfter that, restart Mysql server service:Īvailable in Ubuntu default repositories… in order to install it, you will have When prompted, answer the questions below by following the # sudo apt-get install mysql-client mysql-serverĪfter that, run the commands below to secure Mysql DB server by creating a root password and disallowing remote root access. Next, we need to install MySQL database server by running the command below: Go to browser and type the name of domain name or ip: To install Apache2 on Ubuntu, run the commands below:

First of all, make sure that all the packages on your installation of Ubuntu are up to date.
