![]() Now PHP v7.3 will be used for all newly created servers. A drop down list of available PHP versions will be shown to you. you can change this easily from Virtualmin > System Settings > Server Templates > Default Settings > PHP Options. This is not an ideal setting for us since we’ve configured PHP v7.3 for CLI. The default PHP version configuration for Virtualmin is set to “Highest Available” by default. your system is ready for use by Virtualmin. If everything goes well, you’ll be greeted with. The most common error I’ve encountered was system is not setup to use itself as a DNS server. Click Recheck and refresh configuration button to check your server for errors. You’ll be given an option to check Virtualmin configurations after the Post-Installation wizard. You’ll be good with default selections for all other steps. It is pretty self-explanatory, just remember to select MySQL/MariaDB as database server and Only store hashed passwords as password storing method. You’ll be taken to the Virtualmin Post-Installation Wizard after the login. If DNS isn’t propagated yet, you can replace with your server’s IP address. Your DNS should be propagated for this to work. Make sure you replace with your domain name. ![]() You can access Virtualmin on following URL with your root password. mysql_secure_installation Complete Virtualmin Post-Installation Wizard ![]() You don’t need to change it here just type the same password you set on Virtualmin post-installation wizard. It’ll also ask you for a new MariaDB password. My input for the first question was No and Yes to everything else. But at this point, running following command will guide you through changing some dangerous default settings. There is more you can do to secure MariaDB databases. That’s all you have to do to replace MySQL with MariaDB. Install MariaDB, apt-get install mariadb-server 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. |