Change and Update WordPress URLS in Database When Site is Moved to new Host

…wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldurl’,’http://www.newurl’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.oldurl’, ‘http://www.newurl’);…

Read More

Use 7G WAF Firewall with OpenLiteSpeed on a RunCloud instance

Ols 7g

…Version 1.2 2020/09/07 by Jeff Starr https://perishablepress.com/7g-firewall/ https://perishablepress.com/7g-firewall-log-blocked-requests/ – License: GPL v3 or later https://www.gnu.org/licenses/gpl.txt Overview: Logs HTTP requests blocked by 7G. Recommended for testing/development only. Requires: Apache, mod_rewrite, PHP…

Read More

Set up malware scanner LMD Maldet and ClamAV on a CloudPanel instance

Cloudpanel Malware Maldetect

…directory that you scan: wget http://www.eicar.org/download/eicar.com wget http://www.eicar.org/download/eicar.com.txt wget http://www.eicar.org/download/eicar_com.zip wget http://www.eicar.org/download/eicarcom2.zip Using LMD as a monitoring app LMD also allows for it to be a monitoring daemon application that…

Read More

Set up Virtual Hosts on macOS Big Sur 11 in Apache

Macos Apache Vhosts

…to create your new virtual host: <VirtualHost *:80> ServerAdmin [email protected].com DocumentRoot “/usr/docs/dummy-host.example.com” ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ErrorLog “/private/var/log/apache2/dummy-host.example.com-error_log” CustomLog “/private/var/log/apache2/dummy-host.example.com-access_log” common </VirtualHost> We can take this example and extend on…

Read More