Archive

Transfer uploaded files from a host to another

In our recent posts, we’ve given you so many different information about WordPress. We started with what CMS is and then explained different parts of WordPress. From its installation to its safety, its settings, its plugins, and more. In this post, we’re going to show you how you can transfer uploaded files from the WP host to another host/server.

Something that frequently happens to WP site owners is that their host’s storage reaches its limit. When this happens, the best thing to do is to transfer your uploaded files to another host like a download host. The great thing about doing this is that you won’t need to upgrade your main host anymore and according to affordable prices of download hosts, you’ll have a much better and more economical solution. Let’s see how you can transfer the uploaded files to a download host.

Transfer uploaded files to another host

The first thing you need to do is to log into your hosting control panel. Find the FTP accounts in your control panel and create an FTP account just like the picture below.

Add FTP account

In the Directory section, you’ll need to paste the exact destination path that you’ll want to transfer your files to. In the path that is written in the picture, the “uploadfile” folder will be created and the files will go there.

Now that you have an FTP account, go to your WordPress Dashboard and go to the Plugins tab. Search for and install the “Hacklog Remote Attachments” plugin. After the installation goes to its settings and add the FTP accounts information that you just created.

Hacklog Remote Attachments
  • FTP Server: Type in the Server’s IP.
  • FTP Port: The default FTP port is 21.
  • Timeout: This is for the times that you’ll get disconnected for any reason. If you type in 30 in this box, you’ll see the timeout message after 30seconds of trying to reconnect.
  • Remote Base URL: your domain
  • Remote Path: The path you’re going to upload your files to. You should use the address you created at the time of adding the FTP account.

From now on, anything you upload to your website will automatically be uploaded to the download host and will no longer fill up the main host’s storage.

Hope you enjoyed this post if you did you can visit our blog for more!

How to Transfer a WordPress Website to Another Host

In our last posts, we have talked about lots of useful WordPress Plugins that each could be used for different purposes. So far you know lots of things about WordPress CMS like its requirements, its installation, its settings and etc. Now you may wonder what happens when you want to transfer your WordPress Website to another host? Let’s find that out in this post.

There are different ways to transfer a CMS website:

  1. Using Hosting Control Panel
  2. Using Plugins
  3. Using CMS itself

Using Hosting Control Panel

One of the easiest ways of transferring a CMS site is using the shooting control panel. The only thing you need to do is to create a full back up of your website and its database and then restore those backups in the control panel on the new host. However! This only works best when the control panel on both hosts are the same. If you restore a backup from a control panel in a different control panel, you may experience some major conflicts.

Using Plugins

There are some plugins that can help you easily transfer your WP site to another host. One of these Plugins is “Duplicator”. In this plugin, you can create a package from your website and it’ll scan it and give you an installer. Then all you have to do is to run that installer on your new host.

Another plugin that can help you with this is “All in one WP migration”. With this plugin, you can export all of your data and import them to the new host.

Using CMS itself

One of the best and safest ways of transferring a CMS website is through the CMS itself. In the WP dashboard, if you hover on the Tools option from the menu, you’ll see two options: Import and Export

First, you need to go to the Export panel, and in the “Choose what to export” select the “All content” option and then click on the “Download export file” button. Now you have a WXR or .XML file that contains all of your website’s content. Go to the new host and install WordPress. Then go to the dashboard and from the Tools menu choose Import this time. Now you can easily import the downloaded export file here.

Hope you enjoyed this post if you did, you can visit our blog for more!

How to Change Pass in WordPress?

In our previous posts, we explained different information about WordPress CMS. We started from its hosting requirements to its installation and security and then its General settings and finished with Discussion Settings. In this post, we’re going to show you how you can change the Admin’s password in WordPress. This is the password you use to login to the WordPress dashboard of your website.

How to change the admin’s password in WP?

There are two ways you can change a password in WordPress. One way is using PHPMyAdmin just like we do for Joomla. The whole process is the same for both Joomla and WordPress. Another way is through the WP dashboard. So, Let’s see how it’s done.

Change pass using PHPmyAdmin

After logging into your hosting control panel, go to the database section and click on PHPmyAdmin and then select the database that you’ve had created and have linked to your WP user. Just like the picture below, on the drop-down menu select wp-user and then click on the edit button.

Change Password using PHPmyAdmin

In the user_pass and the Function, boxes select MD5 and then type in your desired password.

Change pass through the Wp dashboard itself

The second way is through the Wp dashboard itself. However, if you have forgotten your password, the first way is your only option. Because in this option, you need to first log into the WP dashboard so you need your password. But if you are able to log in and just want to change your password, follow these steps.

After logging into the dashboard, go to the user tab from the menu, and just like the picture below generate a new password for the user you want and from them you can log into the user’s dashboard using your new account.

Hope you enjoyed this post if you did, you can visit our blog for more!

WordPress Installation on Linux Host (Part2)

This is part 2 of our last post. In our last post, we started walking you through the installation process of WordPress. So to start the WordPress installation process from the beginning, please read part1 first:

Now we have fully finished the preparation steps before starting the WordPress installation. So we are ready to transfer the WordPress files to our host. Let’s see how we can do that:

Step3: Transfering WordPress to Host

In this step of WordPress installation, We have two ways to do it:

  1. FTP: Setup an FTP software like Filezilla if you don’t have one and then Connect to the server using the information that the service provider gave you. Now move or copy and paste the WordPress file to the Public_html or www file. The transfer duration depends on your Internet speed.
  2. File Manager: Go to cPanel’s File Manager from the Home page.
cPanel-file-manager

Go to the Public_html or the www file and click on upload. on the new window, click on browse and choose the WordPress zip file (zip or gz.tar), and then you wait till the upload is finished.

Upload-and-extract-file

Go back to the file manager and right-click on the zip file to extract it. And then after extracting, delete the zip file.

Attention! If you continue the installation now, you’re going to have to access your website at this link: http://yourdomain.com/wordpress

So, If you want to omit the WordPress from the end of that link, you have to move all the files that are in the WordPress folder to public_html. To do this, select all files in the WordPress folder and click on move. In the new window, clear the WordPress from the end of the path and click on “Move files”. Now all of those files are in the root.

Step4: Start the WordPress Installation

Type in www.yourdomain.com on your browser, and you’ll see a page like the one in the picture below. (If you’ve uploaded the WordPress files in a path other than Public_html, you need to add the folder’s name at the end of your address. For example www.yourdomain.com/wordpress)

You need to enter the needed database information. These are the exact information that you used at step2 to create the database.

The installation begins here and remember! DO NOT use admin as your username and make sure to have a very strong password.

When the WordPress installation is done, you’ll be redirected to a page that shows your username with a message that says the installation is finished.

From now on, you can access your WordPress dashboard at www.yourdomain.com/wp-admin

Hope you enjoyed this post if you did, you can visit our blog for more!

WordPress installation on Linux Host (Part1)

When you want to start a website, a good domain and a host are probably the first things you’re going to need. There are lots of names and options that you’re going to see at the time of buying a host. These words are Linux host, Windows host, Dedicated, VPS, Shared Hosting, and etc. At the time of buying your host, you must know and consider what type of website you’re going to run. For example, Does it have lots of visitors? are you going to use CMS or not? If yes, you should know what are the basic requirements for the CMS you are using. In our last post, we explained the requirements for hosting a WordPress site. In this post, we are going to walk you through WordPress installation on your Linux host (cPanel).

WordPress Installation

Step1: Download WordPress

Download the latest version of WordPress and put it somewhere like on your desktop so you can find it easily.

Step2: Create a database for WordPress installation

Login to your cPanel via one of these two links:

www.yourdomain.com:2082 or www.yourdomain.com/cpanel

Now from the databases section, choose “MySQL Databases”.

You need to choose a name for your database and this name could be anything but better to be meaningful. Click on “create database” to continue.

Here you need to add a user for your database. To do that, from the MySQL section go to “Add a New User”. Choose a username and a strong password to create the user.

Now you need to make a relation between the database and the user. Go to “Add user to database” and select the database and the user. Click on the “Add” button. You’ll see a new window on which you need to check the ” ALL PRIVILEGES” box and click on the “Make Changes” button.

Everything is ready for transferring the WordPress file to the server. In our next post, we are going to show you how you can transfer the file to your server, and then we’ll start the installation.

Hope you enjoyed this post if you did, you can visit our blog for more!

How to Switch from Apache to Nginx

In our recent series of posts, we have explained a lot of things about Linux web servers. The three main Linux web servers that we introduced were Nginx, Apache, and Lite Speed. We said some pros and cons for each of them. We also mentioned that Apache is the most commonly used web server all over the world. For any reason, you may choose a web server and then decide to change it later. In this post, we are going to show you how you can switch your web server from Apache to Nginx.

Switch from Apache to Nginx Web Server

The first thing you need to do is establishing an SSH connection to your server using Softwares like PuTTY. You need to have root access to your server. So, if your service is anything that doesn’t give you the root access, you need to ask your hosting provider to switch the webserver for you.

After logging into the server using PuTTY, you need to check the version of your control panel‘s “Custombuild”. Use the commands below to check and upgrade.

Check the Version:

 cd /usr/local/directadmin/custombuild
./build version 

Upgrade the Version:

 cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build 

Now we can simply use this command to switch from Apache to Nginx:

 cd /usr/local/directadmin
./build set webserver nginx 

This is what you are going to see at the end of the process:

After this, you need to change the PHP handler. We’ve already explained that every webserver has its own ph handler. Apache supports almost all of PH handles. So here we need to change the PHP handler to PHP-FPM.

 /build set php1_mode php-fpm

Now copy and paste these commands in turn:

 ./build update 
 ./build all d 

*This Process may take more or less than 20 minutes depending on the server’s RAM.*

Build Update

Let’s finish the installation:

 ./build rewrite_confs 
Nginx installation

As the last step, restart Nginx to finish the process:

 /sbin/service nginx restart 

You have successfully switched your webserver from Apache to Nginx!

Hope you enjoyed this post if you did, you can visit our blog for more!

Comparing Different Linux Web Servers

Earlier in our posts, we have explained what a Web Server is. In the same post, it is mentioned that there are different Web Servers that some work on Windows servers and some work on Linux Servers. Here we are going to compare different Linux Web Servers.

Apache-vs-Nginx-vs-Litespeed

Nginx, Apache and LiteSpeed are the three famous Linux Web Servers. Nginx and Apache are both free and open source. Between these two, Apache is more popular and it’s the default web server for most control panels. Apache is a modular web server which makes it very flexible and easy to use. It pretty much has a module for anything you want along with a good GUI. On the other hand, Nginx doesn’t offer us an easy GUI to use. Nginx has a built-in dashboard that allows you to control things by it. Another thing about Nginx is that it doesn’t support .htaccess file which makes it really risky for us to switch between Apache and Nginx.

LiteSpeed is much faster and more optimized than the other two but it comes with a cost. You need to buy a license to use this web server. If you have a website with lots of viewers and data this can help you speed up your websites functionality a lot. However, this doesn’t mean that if your website is slow because of its codes you can solve the problem with Litespeed! You can make it faster but it’s better to take care of your codes and then use Litespeed if needed. Just like Apache, Litespeed also has a great GUI to work with.

Which Linux Web Server is more secured?

Security has so many layers and you take care of all those layers to make your server safe. But if we only want to answer this question about the web servers, we should say that since Apache and Nginx are open source, their security holes can be found and fixed sooner and easier.

Every web server uses a different PHP handler that each have their own features. Litespeed uses its own PHP handler which is LSPHP and Nginx uses php-fpm. On the other hand, Apache supports all PHP handlers like SUPHP, CGI and etc except LSPHP that is for Litespeed. CGI is faster than SUPHP but if you permissions for SUPHP it can be more secured.

Which Web Server do we recommend?

We surly can’t decide which Linux web server works for you the best. What we can say is that Nginx is designed for special usages. This means that because of Nginx’s features, it works perfectly if you have one website with lots and lots of audiences. But for multiple websites it might be easier to use Litespeed and Apache because of their GUI. However this is just a suggestion and the results may differ according to your websites and usages.

Hope you enjoyed this post if you did, you can visit our blog for more!

Windows Host vs. Linux Host

Previously, we have explained fully about what a server is, different servers in web hosting and other related things like the control panels, SSL and etc. In the posts about different control panels, we kept talking about Linux or Windows hosts. In this post, we are going to talk about the differences between Linux host and Windows host.

Linux host vs. Windows Host

Windows Servers

As you know, the first step of having a successful website is having a good domain. We will explain how you can choose a good domain, in a future post.

After choosing a domain, now you need to choose your hosting service. If you have a website for personal use or for a small business, this means you don’t need that much space and resources. So, shared hosting can be a perfect solution for you. The first things you’ll see at the time of buying a shared hosting plan are: Linux host, Windows host, cPanel, Plesk, DirectAdmin, and etc. As we’ve mentioned before, some control panels work on Linux, some work on Windows and some work on both.

  • cPanel, Plesk, DirectAdmin,..: These are hosting control panels that we’ve explained each of them fully before.

Choosing the control panel depends on what OS has been installed on the server. So, if you need a specific control panel, you need to buy a hosting plan that can support the control panel for you. For example, if you specifically want cPanel as your control panel, you need to buy a Linux server because cPanel only works on Linux. We should mention that the OS that we install on servers are not the same as the ones you install on PC. There are special distributions of Linux and Windows just to be installed on servers. Another thing to mention is that there are other operating systems that you can install on servers but Linux and Windows are the most common and professional ones.

Linux Servers or Windows Servers?

If you are using a CMS like WordPress, Joomla, DNN and etc, you can check their website to see what services they can run on. You can also ask your developer about the service the website needs. As we mentioned, your website’s programming language is really important. For example, PHP works on both Linux and Windows hosts. But it has more features and options on Linux so you better have it on a Linux host.

Hope you enjoyed this post if you did, you can visit our blog for more!

CSF Configurations on Webmin

In our last post, we explained fully about CSF and its installation on Linux servers. Now, we are going to show you how you can install and access CSF configurations on the Webmin control panel.

Webmin is a free and open-source control panel that we have explained about different functions of it like adding users, installing SSL, and etc in our previous posts. On most control panels, after you install CSF on your servers (which we have already shown you how you can do that in our last post), you’ll see it on the Plugins page. But on Webmin, this is different. There are some steps you need to do to access CSF.

CSF on Webmin

As we said above, before accessing the CSF configurations, first you need to install CSF on your servers. Take a look at the link below if you need help installing CSF:

CSF Installation on Linux Servers

After the installation, the CSF is in the testing mode so we need to change that. First, go to the path below:

Vi /etc/csf/csf.conf

Change the testing mode from 1 to 0 and then restart the CSF and LFD using these commands:

Service csf restart
Service lfd restart 

Now follow these steps to access CSF configurations:

log into Webmin and go to the Webmin tab. Find the “Webmin Configuration” on the menu and open it.

On this page, you’ll find “Usermin Modules”.

In the “Install Modules” section, you need to choose the CSF setup file which is in the path below:

User/local/csf/csfwebmin.tgz

Choose the file and click on the Install Modules button.

At the end of the installation, you’ll see a Firewall icon on the dashboard. By clicking on that icon, you can access different CSF configurations and features like allowing or denying IPs.

CSF Configurations

Hope you enjoyed this post if you did, you can visit our blog for more!

Create an email address and manage Webmail on Webmin

In this post, we are going to explain how you can create an email address with your domain after @ on the Webmin control panel.

As we have mentioned before, if your company or website has its own webmail, it can help you look much more professional. By your own webmail, we don’t mean having an email address from one of the famous webmails like Google, Yahoo or etc. We mean having webmail and email addresses that include your domain name after @. Which one of the following email addresses do you think looks better on the contact us page of your website?

  • Example@gmail.com
  • Example@domain.com

Surely as we explained above, the second one is much more professional. So in order to have an email address like the second one, you need a control panel. We have explained how to create webmail on CyberPanel, cPanel, DirectAdmin, Plesk before and now we are going to explain it on Webmin.

Add a Webmail on Webmin

From the menu on the left, find the “Edit users” option.

Edit-Users

As you can see in the picture below, you need to click on the “Add users to this server” button.

Now you can easily type in your preferred phrase or word before @domain to create the email address. You should also choose a password for this email address and don’t forget to keep that password somewhere confidential.

*If you don’t know what email addresses you should make for different departments, we gave some examples that are commonly used in our post about Webmail*

After creating the email, return to the “Edit users” page and select the user you just created. Then just like the picture below, click on the “Login to usermin” option.

Usermin uses a different port which is 20000 and when you log into it you can see all of the needed sections like Draft, Inbox, Sent and etc.

Hope you enjoyed this post if you did, you can visit our blog for more!