12/23/2023 0 Comments Install awstats ubuntu nginx![]() Remove MySQL, apt-get remove mysql-server mysql-common MariaDB is a drop-in replacement for MySQL and is considered as an improved version of MySQL. But I like to use MariaDB for my databases. Virtualmin installs MySQL on the server by default. update-alternatives -set php /usr/bin/php7.3 If your php application requires setting up cronjobs, this step is mandatory, or your application will misbehave. Now you need to make sure server is using correct PHP version for the command php. apt install memcached php-memcache php-pear php-imagick php7.3-cgi php7.3-mysql php7.3-curl php7.3-gd php7.3-imap php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-mbstring php7.3-zip php7.3-cli Following command will install essential PHP v7.3 modules on your server. Since PHP v7.3 is already on your VPS, you only need to install few PHP modules on your server for most php applications to work. If you need PHP version other than PHP v7.3, you can follow my instructions to use multiple PHP versions on your server. But for this tutorial, we will use PHP v7.3 only. You’ll be greeted with following message on your Putty screen when Installation completed.ĭue to the ondrej/php PPA we added earlier, Virtualmin script installs all major PHP versions on your server by default. You’ll be asked for permission to a swap file if your server has less than 1GB of RAM. It’ll setup Nginx v1.16, PHP v7.3 and MySQL v5.7. It’ll take few minutes for the installer to complete. Confirm it and Virtualmin installation will begin. Run the script to install Virtualmin with nginx. ![]() Download the Virtualmin installation script to your server, wget This part is similar on all Linux distributions. add-apt-repository ppa:ondrej/nginxĪpt upgrade Install Virtualmin with Nginx We will also add ondrej/nginx PPA to the system so we can get the latest nginx version. Following command will add ondrej/php PPA to the system. Using his repositories will allow us to install the latest version of PHP on our system or even have multiple PHP versions running at the same time if need to. Ondřej Surý is a well known Debian Developer. For that reason, we’re going to use Ondřej Surý’s PHP repository to get the latest version of PHP. Which isn’t the latest version of PHP available. Refer to change Ubuntu 20.04 hostname from command line tutorial and change it now. If the output is anything other than your domain name or a sub-domain, you should change it before you install Virtualmin with nginx. Logged in to Ubuntu 20.04 server as root user, run following command to check your server’s hostname. ![]() ![]() If you don’t, you can get one from a unmanaged VPS provider I recommend. I’m going to assume that you already have a VPS with root access. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |