Systemd is is an init system used by several common Linux Distributions which has gained popularity since 2015. A Linux init system is the first process or daemon started on a system after the initial boot process, and manages services, daemons, and other system processes. Systemd is comprised of unit files that contain the initialization instructions for the daemons which it controls. While many portions of a system can be managed with systemd, this article will focus on managing services. Continue reading “An Introduction to Managing a Linux Server with systemd”
Phusion Passenger is a web application server that can run Ruby, Node.js, and Python applications on your webserver. It integrates with both Apache and Nginx to serve content to your visitors. Historically, this application was difficult to integrate with cPanel servers, which would combine the power of Ruby applications with the ease of management that cPanel provides, but recent advancements make setting up your Passenger module very simple. This easy walkthrough will show you how to add Passenger, Apache mod_passenger, and the supporting Ruby installation to cPanel. Continue reading “Using Passenger with cPanel on CentOS 7”
Providing great deals is a wonderful way to entice first time and returning customers. Imagine if you’ve created a coupon for a product on your store that you want everyone to use. Sure you can add a site banner to inform the customers of the coupon, what if they forget to enter the code though? There may be another way, what if you can have the coupon automatically apply at Checkout if conditions are met. Continue reading “Automatically Apply Coupons in Cart on WooCommerce”
Lets say you have an eCommerce business selling customized coffee mugs. Each mug you sell gets a custom message printed on it and you just fill the orders as they come in. You know each mug gets customized before shipping out, so you don’t really need to track the inventory.
If you happen to run out of your local stock of blank mugs then you’ll just buy a new box, no big deal. In a case like this you may track inventory, but don’t actually need WooCommerce to report this. So how can you hide the ‘In Stock’ message on your product pages? Continue reading “Disable the In Stock message on WooCommerce Products”
By default WooCommerce adds in a SKU custom field to products, but that may not cover your needs, depending on the products you offer. If you’re selling books or magazines ISBN numbers are going to be necessary. Various GTIN (Global Trade Identification Number) options are also important, both for selling and for tracking your products.
How to add GTIN number fields to WooCommerce Products
Or: I need to be able to add GTIN numbers onto the products listed on my store, but WooCommerce only adds an option for SKU?
Fortunately, there is code that can be added to your theme’s function.php that will allow you to use different GTIN options, be they UPC, EAN or ISBN numbers, for the products you’re selling. This is also handy if you happen to be listing your products on Amazon, via a feed.
It is recommended that you try this in a staging environment, which allows you the ability to make sure you have the functionality you’re looking for, without impacting your live site until you’re ready.
Alternative Option: Use a plugin to add GTINs
The option above is great if you’re familiar with customizing your site with code. You can easily drop that code into your themes functions.php file or even as a mu-plugin and get rolling. For those less familiar with using code though an alternative exists. There is a plugin on WordPress.org that can add the field in for you called WooCommerce Add GTIN: UPC, EAN, and ISBN. Just install this plugin like any other one and you’ll be good to go.
When working on a WordPress site, especially stores, you’ll likely reach a point where you need something custom. You might want to customize something that doesn’t have a true setting in WordPress? Or, you need to add a custom hook to modify something? Or, maybe you need to customize part of your WooCommerce store?
No matter the case, making code changes means you’ll need to know the right place to do that. In this article we cover the best ways to get this done and some best practices.
Continue reading “Managing code snippets in WooCommerce”
When you host at Liquid Web you can use our DNS servers to manage all of your domains. Even the ones you bought through other registrars.
The Liquid Web Name Servers (NS) are:
Continue reading “What are the Liquid Web Name Servers (NS)?”
Git is one of the most popular tools used for distributed version control system(VCS). Git is commonly used for source code management (SCM) and has become more used than old VCS systems like SVN.
Installing Git on Ubuntu 16.04 LTS
- You should be running a server with any Ubuntu 16.04 LTS release.
- You will need to log in to SSH via the root user.
- In this tutorial I’ll be working with a Core Managed Ubuntu 16.04.4 LTS server
First, as always, we should start out by running general OS and package updates. On Ubuntu we’ll do this by running:
After you have run the general updates on the server you can get started with installing Git.
- Install Git
apt-get install git-coreYou may be asked to confirm the download and installation; simply enter y to confirm. It’s that simple, git should be installed and ready to use!
- Confirm Git the installation
With the main installation done, first check to ensure the executable file is setup and accessible. The best way to do this is simply to run git with the version command.
git version 2.7.4
- Configure Git’s settings (for the root user)
It’s a good idea to setup your user for git now, to prevent any commit errors later. We’ll setup the user testuser with the e-mail address firstname.lastname@example.org.
git config --global user.name "testuser" git config --global user.email "email@example.com"Note:It’s important to know that git configs work on a user by user basis. For example if you have a ‘david’ Linux user and they will be working with git then David should run the same commands from his user account. By doing this the commits made by the ‘david’ Linux user will be done under his details in git.
- Verify the Config changes
Now we’ll verify the configuration changes by viewing the .gitconfig file. You can do this a few ways, we’ll show you both methods here.
- View the config file using cat with the following command:
- Or, you can also view the same details using the git config command:
git config --list
- View the config file using cat with the following command:
And that’s it! You have now installed Git on your Ubuntu 16.04 LTS server and have it configured on your root user. You can get rolling with your code changes from here, or you can repeat steps 3 and 4 for the other system user accounts.
FTP (File Transfer Protocol) is one of the most popular methods to upload files to a server. There exist a wide array of FTP servers, such as vsftpd, you can use and FTP clients exist for every platform.
Essentially no matter what OS you use you can find an easy to use FTP client, so it makes for a great solution to transfer files. On CentOS based servers before you can connect via FTP you’ll have to setup an FTP server. Here we’re gonna setup vsftpd which is a great option since it has a focus on security and speed.
Often we hear a lot of customers asking why, when their server is largely idle, much of their RAM appears to be in use.
When RAM is not needed for other functions, your server will load frequently-accessed files into memory in order to read them more quickly. When a file is loaded into RAM, the server can access the information orders of magnitude faster than from disk. A modern SSD disk can read files at up to around 500-700 MB/second, if the files are in sequential units. However, RAM can be read at GB/second rates; or even tens of GB/second.
If the RAM becomes needed for another function, these files are quickly flushed out of memory, and the RAM becomes available for other tasks. Continue reading “Why Is Most of My Memory Being Used?”