How do I Create Additional Virtual Hosts?

Auto Setup via script This method will automatically set up Listener/VirtualHost/Force SSL/Let’s Encrypt/WordPress. Interactive mode wget https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh chmod +x vhsetup.sh bash vhsetup.sh Or just run the script without downloading it: /bin/bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh ) CLI mode wget https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh chmod +x vhsetup.sh bash vhsetup.sh -d www.example.com -le admin@example.com -f -w Or just run the … Read more

How do I Set Up Virtual-Host-Specific PHP?

By default virtual hosts inherit the version of PHP that is set at the server level. You may wish to use a different PHP version for certain virtual hosts. Follow the steps below to set up virtual-host-level PHP. Here we will use the PHP version 7.4 as an example. Install PHP 7.4 and commonly used … Read more

How do I Change the SMTP Port from 25 to 587

Some cloud providers like Google Cloud Platform may block port 25 by default to prevent SPAM email. We can use a plugin, e.g. WP Mail SMTP, to set a specific port easily. Please see How to Set Up the Other SMTP Mailer in WP Mail SMTP for details.

How do I Change PHP Parameters?

Edit the following file to configure PHP parameters: vi /usr/local/lsws/lsphp73/etc/php/7.3/litespeed/php.ini NOTE: We are using LSPHP 7.3 as example. If you are using a different version, please adjust the number in the URL accordingly. To increase the allowed file size, for example, you would make the following edits: upload_max_filesize = 64M post_max_size = 64M Other parameters … Read more

How do I Update phpMyAdmin?

The OpenLiteSpeed WordPress image comes with the latest phpMyAdmin version already, so you shouldn’t need to update it. If you do need to update it, you can run the following commands: cd /var/www/; mv phpmyadmin phpmyadmin.bak wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip unzip phpMyAdmin-*.zip; rm -f phpMyAdmin-*.zip mv phpMyAdmin-* phpmyadmin cp phpmyadmin.bak/config.inc.php phpmyadmin chown -R www-data:www-data phpmyadmin

How do I secure phpMyAdmin?

Method 1: Change phpMyAdmin URL Navigate to WebAdmin > Virtual Hosts > Context Change URI from /phpmyadmin to (for example) /secure Method 2: Allow specific IP only Navigate to WebAdmin > Virtual Hosts > Context > phpmyadmin Change Access Allowed from * to (for example) 1.2.3.4 and set Access Denied to * Please substitute 1.2.3.4 with your IPs/subnets Method 3: Require a Password Log into SSH console and create a password file: $ sudo touch … Read more

How do I Reconfigure Postfix?

Run the following command: dpkg-reconfigure postfix Configure the settings as follows: General type of mail configuration? Internet Site System mail name: example.com (not mail.example.com) Root and postmaster mail recipient: ubuntu (your user name) Other destinations to accept mail for: <OK> (to use default value) Force synchronous updates on mail queue? No Local networks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 Mailbox size limit: 0 Local address extension character: + Internet … Read more

How do I Install Postfix?

Note This is for OpenLiteSpeed VPS users only. Our shared hosting environments already have email server preinstalled. All you have to do is create email account in cPanel or Plesk. For Centos: yum -y install postfix For Ubuntu: DEBIAN_FRONTEND=noninteractive apt-get -y \ -o Dpkg::Options::=’–force-confdef’ \ -o Dpkg::Options::=’–force-confold’ install postfix

How Do I Set Up the PageSpeed Module?

You should not need to install the PageSpeed Module if the LiteSpeed Cache plugin for WordPress is already in use. Enabling both may degrade performance by 10% or more. To install the module, please see the OpenLiteSpeed PageSpeed Module knowledgebase article.

How do I Fix the Object Cache Test Failed Issue?

Sometimes a system upgrade may cause the config file to be updated. The first thing you can do is to check user permissions. For Memcached: vi /etc/memcached.conf Verify -u www-data. For Redis: vi /lib/systemd/system/redis-server.service Verify Group=www-data.

How Does Certbot’s Auto Renew Script Work?

The OpenLiteSpeed WordPress image comes with automatic certificate renewal by default in /etc/cron.d/certbot. An example of the cron job is: 0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e ‘sleep int(rand(43200))’ && certbot -q renew Once you finish the Let’s Encrypt apply by prompt script, it will auto apply … Read more