If you have a VPS or Dedicated server , you might be interested in finding the status of that server without having to wait at a terminal window. Instead, you can run a script that emails you this information about the status of your server. This only applies to your web server. The script is named status. Once you've downloaded the script successfully, you must make sure that the mailx package is installed on your PS. You can only install mailx on a Dedicated server with an admin user. This is because it requires sudo. Once logged in, run the following command:. View the Crontab article for details on how to create a cron job under your shell user.
How to enable SSH/Shell from cPanel
Reseller SSH Access
These hosting control panels provide you with all the options you need to configure your account. With a VPS , on the other hand, you get a server environment all to yourself. In most cases, your host will only go so far as to set up basic server software — such as Apache or Nginx — and the rest is up to you. You can also set up hosting control panels that will enable you to interact with your server using a GUI. Plus, learning how to use simple commands will teach you a lot about server management, which will almost certainly come in handy as your site grows. As you may know, the vast majority of web servers run on Unix-based systems.
On occasion we deploy websites to a VPS running Ubuntu. In these cases we have to manually set up the web server via the command line - here's our annotated list of setup commands. For websites that need extra power to handle heavier traffic loads or those that require more specific technical setups we look to utilising Virtual Private Servers VPS that web hosting companies now commonly provide. Running a website on a VPS means that we can set up the hosting platform however we need, but it also means that we need to do the work ourselves to initially install and configure the webserver and database. Some hosts will also offer the installation of cPanel, Plesk or equivalent, and even manage the whole setup for you. Each time we've set up a server we've recorded the commands and steps we've taken, refining the notes each time. Below is a heavily annotated series of steps we take to set up an Apache based webserver on Ubuntu.
One of the main features of Linux as an operating system is its flexibility. One of the most recognizable elements of the operating system is its user interface. Most people who have used Linux will know that Linux distributions offer quite a variety of graphical user interfaces. What tends to get missed is that there are many different command line interfaces, also known as shells, available too. The most commonly used shell is the Bourne Again Shell, or bash. Each of the main UNIX shells excelled at different things: the Bourne Shell was easy to script for, and whilst the C shell required knowledge of the C programming language to script for, it did provide some handy tools that made it better for interactive usage.