define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true); Blog | WP Hosting

Blog

How to override auto-detected Email Settings in iOS

Posted by on 6:02 pm in Knowledge Base | Comments Off on How to override auto-detected Email Settings in iOS

The nature of any automation is that sometimes it just doesn’t work. Apple’s iOS is no exception. When you add a new email account on your iOS device, several mail providers’ settings can be auto detected. It’s there to make our lives easier so that we don’t have to add details for mail servers and ports manually. Yahoo Mail and Gmail are detected perfectly, but other services – for example GMX – are not. This is no problem if iOS simply says that you need to add details manually (as with Plesk mail),...

read more

FIXED: The wp-content folder does not show itself via FTP in Plesk 12 and CentOS 7

Posted by on 3:04 am in Knowledge Base | Comments Off on FIXED: The wp-content folder does not show itself via FTP in Plesk 12 and CentOS 7

I’ve noticed a weird bug in Plesk 12 on CentOS 7: when you connect via FTP, the wp-content folder does not show up – all other folders can be seen as usual. It’s a rather crucial folder for WordPress users. At first I had suspected a problem with the ProFTP service which is not the stock version, but a specially compiled version for use with Plesk, and Plesk takes care of this system services (it’s called psa-proftpd in case you’re interested). But ProFTP is not the problem. Thanks to the amazing Sergey Lystsev...

read more

How to allow Passive FTP Connections in Plesk

Posted by on 5:17 am in Knowledge Base | Comments Off on How to allow Passive FTP Connections in Plesk

A little while ago I’ve written an article about opening Passive FTP Ports specifically for using Plesk on Amazon AWS. Here’s a slightly more condensed version about how to do this on any server if you need it. Passive FTP ports are not open by default when you install Plesk. To make it happen we need to patch the ProFTP configuration with a range of ports (anything between 49152 and 65534) and open the same range in our firewall. You’ll find the ProFTP config file in /etc/proftpd.conf. There’s no need to open the...

read more

How to allow Passive FTP Connections in Plesk

Posted by on 11:36 pm in Knowledge Base | Comments Off on How to allow Passive FTP Connections in Plesk

A little while ago I’ve written an article about opening Passive FTP Ports specifically for using Plesk on Amazon AWS. Here’s a slightly more condensed version about how to do this on any server if you need it. Passive FTP ports are not open by default when you install Plesk. To make it happen we need to patch the ProFTP configuration with a range of ports (anything between 49152 and 65534) and open the same range in our firewall. You’ll find the ProFTP config file in /etc/proftpd.conf. There’s no need to open the...

read more

How to quit vi without saving your changes

Posted by on 1:03 am in Knowledge Base | Comments Off on How to quit vi without saving your changes

It just occurred to me that even though I know my way around vi fairly well, I never had to quit it without saving my changes. Usually I just go back in and overwrite my mistakes. Today I did something though that wasn’t as easy to eliminate: instead of pasting an IP address, I accidentally pasted a 4000+ character stylesheet. Dang! So how do we leave vi and NOT save our changes? Here’s how: press ESC to exit editing mode (insert/append/whatever) press : (the colon character) enter q! Now you’re back on the command line...

read more

How to control SELinux in CentOS 7

Posted by on 7:07 pm in Knowledge Base | Comments Off on How to control SELinux in CentOS 7

SELinux – when installed – can take on one of three modes: Enforcing Permissive Disabled To check which mode SELinux is running on, we can use either sestatus for a more detailed output, or simply getenforce for a one liner: sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28 getenforce on the other hand...

read more

How to find and replace in MySQL with phpMyAdmin

Posted by on 8:58 pm in Knowledge Base | Comments Off on How to find and replace in MySQL with phpMyAdmin

Sometimes you need to replace a string in your database with another string, and it can be rather tedious to plough through a large table manually. Thankfully MySQL can execute raw queries such as find and replace. This comes in handy if you’ve moved a WordPress installation to another URL: you only need to tweak two values in the options table, but there may be countless image references and links in the posts and options table too. That’s where find and replace can come in handy. You can execute the following statement either on...

read more

How to boot Windows into Desktop Mode, bypassing the Metro Start Screen

Posted by on 9:17 pm in Knowledge Base | Comments Off on How to boot Windows into Desktop Mode, bypassing the Metro Start Screen

I’ve just installed the Windows 10 Technical Preview on my Samsung NC10. During the installation I was offered to transfer my settings from another PC, so I chose my Surface Pro running Windows 8.1. All settings were copied truthfully, including the fact that Windows boots up with the Metro Start Screen. It’s not what I had expected, mainly because my other Windows 10 installations don’t do this. So how do we change this behaviour? It’s very simple, let me show you how. This works on both Windows 8.1 and the Windows 10...

read more

How to move databases between subscriptions in Plesk

Posted by on 4:54 pm in Knowledge Base | Comments Off on How to move databases between subscriptions in Plesk

You can move databases and database users between subscriptions in Plesk. There’s no web interface for this, but with a bit of manual database tweaking you’ll soon get the hang of it. I recently split a subscription into two for a client and this trick came in handy. Before we begin, make sure you backup the psa database – that’s what Plesk uses to keep track of internal values, anything from user names, passwords, and which service is associated with what. If you ruin psa you’ll ruin your Plesk installation. Use...

read more

How to create a redirect in PHP

Posted by on 3:00 pm in Knowledge Base | Comments Off on How to create a redirect in PHP

Say you had domain.com/folder, and you’d like it to automatically redirect to domain.com/otherfolder, do the following: <?php // redirecting elsewhere header("Location: http://domain.com/otherfolder"); die(); ?> Add the above to a file called index.php in domain.com/folder. As soon as someone visits your location, the browser redirects to the new URL. Courtesy of the Stackoverflow community: http://stackoverflow.com/questions/768431/how-to-make-a-redirect-in-php

read more