Archive

How to install VestaCP on CentOS 7

How to install VestaCP on CentOS 7

This guide will walk you through installing and configuring your VestaCP control panel on a dedicated server or virtual private server.

System prerequisites
On your dedicated server or VPS server, you may require a RHEL / CentOS, Debian, or Ubuntu operating system.

Make sure your server has a hostname and that its DNS identifies the server’s IP address.

In addition, I use a test email address ([email protected]) and a password (Mivocloud20). My server configuration is as follows:

Setting up the VestaCP control panel

You may need to connect to the server via ssh, then download the script and run it as shown below:

cd /usr/local/src/
wget -c https://vestacp.com/pub/vst-install.sh
sh vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi no --vsftpd no --proftpd yes --iptables yes --fail2ban no --quota yes --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous no --mysql yes --postgresql no --hostname serversupportz.com --email [email protected] --password server20

Since the installation script will download and install various software packages from the repositories, the installation may take 10 to 20 minutes, depending on the server’s network speed and hardware settings.

So, once the execution is complete, you may view the administrator’s login information in the control panel.

You may need to use https and the username and password supplied on the installation screen to connect to port 8083.

I received the following connection information from my server:

https://5.252.17.xxx:8083
Username: admin
Password: server20

Log in to the admin panel

You may need to open a browser and copy and paste the URL above and also manually accept the openssl warning, as this is not a real SSL certificate.

In VestaCP, add a domain.

In the administration panel, go to WEB -> Domains and click the plus button. The screen sort will be displayed as follows.

Enter a domain name, select the appropriate options, and click the Add button. You can see that the domain was created successfully by displaying it in the list.

Create an email account in VestaCP

You can create an account and email it in the “Administrator” -> “Email” section, then select the domain and click “ADD AN ACCOUNT”. You will be asked for your email address and password.

Delete VestaCP

The VestaCP control panel is simple to remove. Please do these commands:

systemctl stop vesta
yum remove vesta*
rm -rf /usr/local/vesta

Don’t forget to remove the administrator data. If you wish to install another control panel, you can restart the operating system.

Conclusion

Vesta is not a professional hosting management system. Many of the functionalities required for hosting are missing.

However, you may use it for personal reasons. The hosting control panel is simple to use.

How to add OpenVZ templates to the SolusVM?

add OpenVZ templates to the SolusVM

Step:1 Connect to the SolusVM Master server via SSH

Step:2 Change directory to /vz/template/cache directory

cd /vz/template/cache/

Step:3 Download pre-created template from the listed on the OpenVZ site

wget http://download.openvz.org/template/precreated/centos-7-x86_64-minimal.tar.gz
ls -l /vz/template/cache/centos-7-x86_64-minimal.tar.gz
-rw-r--r-- 1 root root 145639219 Nov 27 2016 /vz/template/cache/centos-7-x86_64-minimal.tar.gz

Step:4 Then, log in to the SolusVM web interface and navigate to Dashboard > Media > Add OpenVZ Template.

Step:5 Select the uploaded template from the drop-down menu next to the Template field, fill in the Name, Description, and Arch fields, and then click the Add Template button.

After completing the preceding steps, the template will be available on the build VPS page.

If there are any slave OpenVZ nodes, the templates must be synchronised with the Master nodes.

Navigate to the Dashboard > Media > Media Sync > Create tab in the SolusVM Master web interface.

Select the template and OpenVZ slave node

Select the Create Sync Job option.


WARNING: Check to see if the directory /vz/templates/cache/ exists on the slave server, and if not, create it. Otherwise, the task of synchronisation will fail.

How to Install Tomcat 9 on Ubuntu 18.04

Apache Tomcat is an open-source Java Servlet, JavaServer Pages, Java Expression Language, and Java WebSocket implementation. It is currently one of the most extensively used application and web servers in the world. Tomcat is easy to use and has a thriving ecosystem of add-ons.

This article will walk you through installing and configuring Tomcat 9 on Ubuntu 18.04. The procedures are the same for Ubuntu 16.04 and any other Ubuntu-based distribution, including Linux Mint and Elementary OS.

You must be logged in as a user with sudo rights in order to install packages on your Ubuntu system.

Step 1: Install OpenJDK first.


Tomcat necessitates the installation of Java. We’ll install OpenJDK, which is Ubuntu 18.04’s default Java development and runtime.

Java installation is straightforward. To begin, update the package index:

$ sudo apt update

Install the OpenJDK package by running:

$ sudo apt install default-jdk

Step 2: Create Tomcat User

Tomcat should not be run as the root user for security reasons. To run the Tomcat service, we will create a new system user and group with the home directory /opt/tomcat:

$ sudo useradd -r -m -U -d /opt/tomcat -s /bin/false tomcat

Step 3: Install Tomcat

We’ll get the most recent binary release of Tomcat 9 from the Tomcat 9 downloads website.

The most recent version at the time of writing is 9.0.27. Before proceeding to the next step, check the download page for a new version. If a new version is available, copy the link to the Core tar.gz file, which is located in the Binary Distributions section.

Begin by downloading the Tomcat archive to the /tmp directory with the wget command:

$ wget http://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.27/bin/apache-tomcat-9.0.27.tar.gz -P /tmp

Once the download is complete, extract the Tomcat archive and move it to the /opt/tomcat directory:

$ sudo tar xf /tmp/apache-tomcat-9*.tar.gz -C /opt/tomcat

Create a symbolic link called latest that connects to the Tomcat installation location to gain better control over Tomcat versions and updates:

$ sudo ln -s /opt/tomcat/apache-tomcat-9.0.27 /opt/tomcat/latest

If you want to upgrade your Tomcat instance later, simply unpack the newer version and update the symlink to point to the most recent version.

Tomcat will execute as the tomcat user, as indicated in the preceding section. This user must be able to access the Tomcat installation directory.

The following command transfers ownership of the directory to user and group tomcat:

$ sudo chown -RH tomcat: /opt/tomcat/latest

The scripts in the bin directory must be marked as executable:

$ sudo sh -c 'chmod +x /opt/tomcat/latest/bin/*.sh'

Step 4: Create a systemd Unit File

To run Tomcat as a service you need to create a new unit file.

Open your text editor and create a file named tomcat.service in the /etc/systemd/system/:

$ sudo nano /etc/systemd/system/tomcat.service

Paste the following configuration:

[Unit]
Description=Tomcat 9 servlet container
After=network.target

[Service]
Type=forking

User=tomcat
Group=tomcat

Environment="JAVA_HOME=/usr/lib/jvm/default-java"
Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom -Djava.awt.headless=true"

Environment="CATALINA_BASE=/opt/tomcat/latest"
Environment="CATALINA_HOME=/opt/tomcat/latest"
Environment="CATALINA_PID=/opt/tomcat/latest/temp/tomcat.pid"
Environment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC"

ExecStart=/opt/tomcat/latest/bin/startup.sh
ExecStop=/opt/tomcat/latest/bin/shutdown.sh

[Install]
WantedBy=multi-user.target

Modify the value of JAVA_HOME if the path to your Java installation is different.


Save and close the file and notify systemd that we created a new unit file:

$ sudo systemctl daemon-reload

Start the Tomcat service by executing:

sudo systemctl start tomcat

Use the following command to check the status of the service:

$ sudo systemctl status tomcat
Output

* tomcat.service - Tomcat 9 servlet container
   Loaded: loaded (/etc/systemd/system/tomcat.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-09-05 15:45:28 PDT; 20s ago
  Process: 1582 ExecStart=/opt/tomcat/latest/bin/startup.sh (code=exited, status=0/SUCCESS)
 Main PID: 1604 (java)
    Tasks: 47 (limit: 2319)
   CGroup: /system.slice/tomcat.service

If there are no issues, set the Tomcat service to start automatically at boot time:

$ sudo systemctl enable tomcat

Step 5: Adjust the Firewall

If your server is behind a firewall and you wish to access Tomcat from outside your local network, open port 8080.

Type the following command to allow traffic on port 8080:

$ sudo ufw allow 8080/tcp

Step 6: Set up Tomcat’s Web Management Interface

Now that Tomcat is up and operating, the following step is to grant access to the web management interface to a user.

Tomcat users and roles are defined in the tomcat-users.xml file. This file is a template with comments and examples describing how to configure user or role.

$ sudo nano /opt/tomcat/latest/conf/tomcat-users.xml

To add a new user with access to the Tomcat web interface (manager-gui and admin-gui) we need to define the user in the tomcat-users.xml file, as shown below. Make sure you change the username and password to something more secure:

/opt/tomcat/latest/conf/tomcat-users.xml
<tomcat-users>
<!--
    Comments
-->
   <role rolename="admin-gui"/>
   <role rolename="manager-gui"/>
   <user username="admin" password="admin_password" roles="admin-gui,manager-gui"/>
</tomcat-users>

By default, Tomcat’s web management interface restricts access to the Manager and Host Manager apps to just localhost.

You must remove these limitations if you want to access the web interface from a remote IP address. This has a number of security implications and is not recommended for production systems.

Open the following two files and comment or remove the lines noted in yellow to enable access to the web interface from anywhere.

Open the following file for the Manager app:

$ sudo nano /opt/tomcat/latest/webapps/manager/META-INF/context.xml

For the Host Manager app, open the following file:

$ sudo nano /opt/tomcat/latest/webapps/host-manager/META-INF/context.xml
context.xml
<Context antiResourceLocking="false" privileged="true" >
<!--
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->
</Context>

Another option is to restrict access to the Manager and Host Manager apps to a single IP address. Rather than commenting the blocks, simply add your IP address to the list.

If your public IP address is 45.45.45.45, for example, you would make the following change:

context.xml
<Context antiResourceLocking="false" privileged="true" >
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|45.45.45.45" />
</Context>

The list of permitted IP addresses is separated by a vertical bar |. You can enter individual IP addresses or use regular expressions.

Remember to restart the Tomcat service after making changes to Tomcat configuration files:

$ sudo systemctl restart tomcat

Step 7: Test the Tomcat Installation

Open your browser and type: http://<your_domain_or_IP_address>:8080

Assuming the installation is successful, a screen similar to the following should appear:

The Tomcat web application manager dashboard can be found at http://your domain or IP address>:8080/manager/html. You may deploy, undeploy, start, stop, and reload your applications from here.

You can log in using the user you created in Step 6.

The Tomcat virtual host manager dashboard may be found at http://your domain or IP address>:8080/host-manager/html. You can build, delete, and manage Tomcat virtual hosts from this page.

Outsourced Web Hosting Support Services For Small Businesses

Outsourced web hosting support services provide small businesses with a variety of alternatives for managing their websites. Modest business owners must maintain accounts ranging from small shared hosting plans to dedicated servers, depending on the size of their organization. Of course, you may lack the knowledge and skills to resolve website-related issues. Ideally, you should be able to spend more time operating and expanding your firm than troubleshooting technological difficulties. These web hosting support services might help your company stay on track.

Support for Multiple Domains

Consider for a web hosting support team that that provides multi-domain assistance. This function is very useful for company owners who have many websites. Successful franchisors, for example, require multi-domain support to maintain control over the site of each franchise location. Even if you are not a franchisor, you may profit from this functionality. You may launch a number of additional brands, websites, or product lines. These endeavors would want assistance for numerous business areas. If at all feasible, collaborate with a support staff member that your company can develop with over time.

24×7 Help Desk Support

Moreover, the best outsourced web hosting support teams offer help desk support to its corporate clients. The best teams just ask their clients to pay for what they require. This is especially important for small businesses that understand the fundamentals of web hosting and maintaining a high-quality website. If you require less assistance, you may pick a smaller package to keep prices reasonable. For example, IP Geeks provides organizations with customizable plans that allow them to determine how much help they require. Depending on the level of support necessary, you should select an outsourced web hosting team that can provide shared, semi-dedicated, or full-time help to your company.

Live Chat Support

Furthermore, look for outsourced web hosting support companies that employ live chat. Many business owners are unaware of the significance of this service. It is, nonetheless, quite beneficial. In the unfortunate case that your website goes down, you may lose a significant number of visitors. If you don’t get it back up and running quickly, you risk damaging the image you’ve worked so hard to establish. Fortunately, you may prevent this situation entirely if you select a support company that offers live chat services to its consumers. Then you may talk to them at any time during the day. They will receive communications and deal with problems as they arise. Do not underestimate the impact of this small company web hosting support solution.

Serversupportz is one of the leading providers of the mentioned services at a reasonable price. You may immediately receive a quotation for your firm by clicking here

Consider These Important Factors Before Choosing A Web Host!

If you are looking for a quality web hosting provider, keep the following points in mind:

There are three main types of hosting plans:

  • Shared
  • Dedicated
  • Virtual Private Server (VPS)

If you want to run a blog or a static website, shared hosting is the ideal choice. Shared hosting starts at $0.75 per month and goes up from there. You can get it simply from this link

A dedicated server is exactly what its name implies: a server that is solely committed to the activities and performance of your company.

A virtual private server (VPS) is ideally suited for enterprises and personal online projects that demand a large amount of stable system resources, such as memory (RAM). You Can buy cheap VPS from Serversupportz

Specialities


There are a few crucial elements to consider while selecting a web host.
First and foremost, you must pick on which platform you will host your website. This might be a custom-built website or an existing website hosted by the web host.

After you’ve spent time and money developing a beautiful website, you shouldn’t start aggravating your visitors with poor load times once you’ve gained some momentum.

Tech Specs / Limitations


Some companies have technological restrictions and poor performance. Before purchasing, be certain that you have thoroughly checked them. Although you may not always realise it, certain hosting firms give faster service than others.

Customer Support


Choose firms that provide dedicated server assistance 24 hours a day, seven days a week. If you have any problems on the server, you could contact them right away.

Features / Addons


Compare the features offered by each plan with the offerings of other hosting providers. Some providers will supply free SSL and other services in exchange for no further payments.

Hardware


Select a hosting service that provides high-quality hardware. Take note of the hardware performance of the server you intend to purchase. Multiple CPU cores with SSD will outperform.

Customer Review


For genuine information about the company, read the evaluations on the hosting discussion forums. The clients and their testimonials can supply you with information about the hosting service.

E-mail Features

Check the email service and spam list to ensure that the email will not be delivered to the spam bin.

These are the characteristics of an excellent hosting provider. When purchasing hosting, make certain that all of the conditions are met.