How VPS - How to use/setup VPS
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System CentOS

Set up Hyde on CentOS 7

How VPS by How VPS
October 1, 2019
in CentOS
0
0
SHARES
10
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Step 1: Installing the dependencies
  2. Step 2: Installing and configuring Hyde
  3. Step 3: Configuring Nginx
  4. Managing webpages
    1. Hello, world
      1. Sample list:
  5. Conclusion
  6. Want to contribute?


Hyde is a static website generator, much like its alternatives, such as Jekyll. It uses Markdown to generate its pages, and can run on a 768MB Vultr instance for a site with moderate traffic.

If this is something you’d like to install, please continue to the first step.

Step 1: Installing the dependencies

The commands in this article require root access. If you aren’t already logged on as the root user, do so now.

CentOS 7 ships with Python, so we don’t need to worry about that for now. However, it does not give us access to the Pip package manager, so we’ll install that now.

Pip is not included in the default yum repositories, so let’s get the required sources:

yum install epel-release -y

Then, let’s download and install Pip.

yum install python-pip -y

Good job! Now, let’s install Nginx to proxy requests to Hyde.

yum install nginx -y

We’ll return to Nginx later, when we’re ready to configure it.

Step 2: Installing and configuring Hyde

Run the following command to install Hyde. It will also install any Python dependencies of Hyde.

pip install hyde

Now, let’s get things ready for our new website.

mkdir -p /var/www/html
cd /var/www/html

This will generate our first site:

hyde -s /var/www/html create
hyde gen

Let’s give Nginx ownership of the files within the /var/www/html directory:

chown nginx:nginx /var/www/html

Step 3: Configuring Nginx

Now that we’ve finished installing Hyde, we can return to Nginx and finish configuring it.

Open up your favourite text editor to /etc/nginx/nginx.conf. Comment out lines 38-57 by adding a pound symbol (#) before the lines. Save it, then open up your text editor to /etc/nginx/conf.d/hyde.conf and paste the following configuration:

server {

        listen 80 default_server;

        root /home/hydeblog/website/deploy;
        index index.html index.htm;

        # Specify your domain name where the underscore is. If you don't want to associate one right now, you can leave the underscore.
        server_name _;
}

This should do it. Now, let’s have Nginx start on it’s own:

systemctl enable nginx

Finally, restart Nginx:

systemctl restart nginx

Managing webpages

Head over to the /var/www/html/content directory whenever you want to add/remove/edit pages. Every time you manipulate pages, make sure you run hyde gen from this folder to refresh the cache.

An excellent example of Markdown syntax can be found on GitHub.

For this article, here is an example:

Hello, world!
==============
##Sample list:
1. Apples
2. Oranges

[Back to top](#)

This is what it’ll look like once converted:


Hello, world

Sample list:

  1. Apples
  2. Oranges

Back to top


Remember to save any created web pages as filename.yaml. It is important that the extension is .yaml so that Hyde will convert it into HTML when you refresh the cache.

Conclusion

In conclusion, you learned how to set up your own Hyde blog. When using Hyde, you will find that Hyde uses minimal resources and is a very extendible platform.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
How VPS

How VPS

Related Posts

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Install BoltWire CMS on CentOS 7
CentOS

How to Install BoltWire CMS on CentOS 7

February 14, 2020
Showterm.io – A Terminal/Shell Recording, Upload and Share Tool for Linux
CentOS

Setup HTTP Authentication With Nginx on CentOS 7

February 14, 2020
Next Post

How to Install Subrion 4.1 CMS on a CentOS 7 LAMP VPS

Create a Chat Server Using Matrix Synapse and Riot on CentOS 7

How to Install Apache ActiveMQ on CentOS 7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow Us

  • 121 Followers
  • 87.2k Followers

Recommended

Installing McMyAdmin on Ubuntu 14.10

3 years ago

How to Install Discourse on Debian 9

3 years ago

Advanced Copy Command – Shows Progress Bar While Copying Large Files/Folders in Linux

4 years ago

How to Install Seafile Server on Ubuntu 16.10

3 years ago

Instagram

    Please install/update and activate JNews Instagram plugin.

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

Topics

Apache Web Server Bluehost Review 2019 Bluehost Review 2020 Bluehost Review 2021 Centmin Mod CentminMod centos install htop fsck htop install HTTP DoS attack Install Snort on an Ubuntu install Zabbix on CentOS install Zabbix on CentOS 7 Linux Commands linux guide linux install htop linux vps setup guide MariaDB MariaDB Error Mysql mysqld error optimize MariaDB optimize Mysql snort Ubuntu
No Result
View All Result

Highlights

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Webmin Reviews

Virtualmin Reviews

CentOS Web Panel Reviews

Ajenti Reviews

ISPConfig Reviews

Trending

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

by How VPS
February 25, 2022
0

I tried to update some extensions by use yum on centOs which I specified in Dockerfile. After...

How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020
Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

February 17, 2020
Webmin Reviews

Webmin Reviews

February 17, 2020
How VPS – How to use/setup VPS

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Visit our landing page to see all features & demos.
LEARN MORE »

Recent News

  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8 February 25, 2022
  • How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”? November 17, 2020
  • How to optimize Mysql or MariaDB November 3, 2020

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

[mc4wp_form]

© 2018 JNews - City News Magazine WordPress theme. All rights belong to their respective owners.
JNews is a top selling 2018 WordPress News, Blog, Newspaper & Magazine Theme.

No Result
View All Result
  • Home

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.