{"id":1286,"date":"2020-06-18T15:00:24","date_gmt":"2020-06-18T20:00:24","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=1286"},"modified":"2020-06-18T15:00:24","modified_gmt":"2020-06-18T20:00:24","slug":"how-to-install-gitea-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/","title":{"rendered":"How to Install Gitea on CentOS 7"},"content":{"rendered":"<p>In this tutorial, we will show you how to install Gitea on a <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">CentOS 7 Cloud VPS<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-1290\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/installation-of-gitea-version-control-github-alternative-on-centos7-cloud-vps.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a self-hosted Git service forked from Gogs, making it lightweight and written entirely in Golang. Gitea additionally is released under the MIT license. If you find yourself needing a version control platform, but you&#8217;d prefer to use a self-hosted solution as opposed to GitHub, Gitea is an excellent choice to keep track of your projects and have a team collaborate on ideas in a completely self-hosted environment.<\/p>\n<p><!--more--><\/p>\n<h2>Prerequisites:<\/h2>\n<ul>\n<li>For the purposes of this tutorial, we will be using a <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">CentOS Cloud VPS<\/a>.<\/li>\n<li>Full SSH root access or a user with sudo privileges is also required.<\/li>\n<\/ul>\n<h2>Step 1: Update your System to the Latest Version<\/h2>\n<p>Before we begin, we need to connect to your server via SSH as the root user or as any other user that has sudo privileges.<br \/>\nWe start by logging in to our VPS using the SSH command.<\/p>\n<pre># ssh root@IP_Address -p Port_number<\/pre>\n<p>Replace <code>root<\/code> with a user that has sudo privileges if necessary. Additionally, replace <code>IP_Address<\/code> and <code>Port_Number<\/code> with your server\u2019s respective IP address and SSH port (the default SSH port is 22).<\/p>\n<p>Once that is done, you can check whether you have the proper CentOS 7 version installed on your server with the following command:<\/p>\n<pre># cat \/etc\/redhat-release<\/pre>\n<p>You should get this output:<\/p>\n<pre>CentOS Linux release 7.6.1810 (Core)<\/pre>\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n<pre># yum update<\/pre>\n<pre># yum install wget git nano epel-release<\/pre>\n<h2>Step 2: Add a &#8216;git&#8217; system user<\/h2>\n<p>Create a new system user that will be used later by Gitea &#8211; we&#8217;ll be calling this user &#8216;git&#8217;, but you can name it anything you prefer:<\/p>\n<pre># useradd git<\/pre>\n<p>We will also need to create some directories where certain parts of Gitea will store its data &#8211; let&#8217;s issue the following commands:<\/p>\n<pre># mkdir -p \/etc\/gitea \/var\/lib\/gitea\/{custom,data,indexers,public,log}\r\n# chown git:git \/var\/lib\/gitea\/{data,indexers,log}\r\n# chmod 750 \/var\/lib\/gitea\/{data,indexers,log}\r\n# chown root:git \/etc\/gitea\r\n# chmod 770 \/etc\/gitea<\/pre>\n<h2>Step 3: Install MariaDB Server<\/h2>\n<p>In order to be able to install Gitea, we need to install MySQL (or MariaDB, an open-source variant) onto our server.<\/p>\n<pre># yum install mariadb-server<\/pre>\n<p>Once installed, let\u2019s enable it on boot and start the service.<\/p>\n<pre># systemctl enable mariadb\r\n# systemctl start mariadb<\/pre>\n<p>At this point, MariaDB is running and we are now going to create a password for the MariaDB root user. Run the following command to create a root password, remove the test database, remove the anonymous user, before finally reloading the privileges.<\/p>\n<pre># mysql_secure_installation<\/pre>\n<p>When prompted, answer the questions below by following the guide.<\/p>\n<pre>Enter current password for root (enter for none): Press the [Enter] key on your keyboard. No password is set by default\r\nSet root password? [Y\/n]: Y\r\nNew password: Enter a new password\r\nRe-enter new password: Repeat the new password\r\nRemove anonymous users? [Y\/n]: Y\r\nDisallow root login remotely? [Y\/n]: Y\r\nRemove test database and access to it? [Y\/n]: Y\r\nReload privilege tables now? [Y\/n]: Y<\/pre>\n<h3>3.1 Create a New Database<\/h3>\n<p>We now need to create a database for Gitea to be able to store its data. We can create one using the following commands. Please note that you will be asked for the MariaDB root password that you created earlier in the previous step:<\/p>\n<pre># mysql -u root -p<\/pre>\n<pre>mysql&gt; create database gitea;\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nmysql&gt; grant all on gitea.* to gitea@localhost identified by &#039;m0d1fyth15&#039;;\r\nQuery OK, 0 rows affected, 1 warning (0.00 sec) \r\n\r\nmysql&gt; flush privileges;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nmysql&gt; quit<\/pre>\n<p>Please change the password \u2018<span style=\"color: #ff0000;\">m0d1fyth15<\/span>\u2018 above to your desired one \u2013 make sure it\u2019s a strong password.<\/p>\n<h2>Step 4: Download and Install Gitea<\/h2>\n<p>In this tutorial, we are going to install Gitea version 1.8.3, which was the latest version at the time of writing this tutorial. You will want to check their latest stable version at https:\/\/github.com\/go-gitea\/gitea\/releases before downloading, just in case. Set the variable to the latest version:<\/p>\n<pre># export GITEAVER=1.8.3<\/pre>\n<p>Download the specified version of Gitea:<\/p>\n<pre># wget https:\/\/github.com\/go-gitea\/gitea\/releases\/download\/v${GITEAVER}\/gitea-${GITEAVER}-linux-amd64 -O \/usr\/local\/bin\/gitea<\/pre>\n<p>Change the file permissions so that it is executable:<\/p>\n<pre># chmod +x \/usr\/local\/bin\/gitea<\/pre>\n<p>Then see what version of Gitea is installed:<\/p>\n<pre>[root@centos7 ~]# gitea -v\r\nGitea version 1.8.3 built with go1.12.5 : bindata, sqlite, sqlite_unlock_notify\r\n<\/pre>\n<p>Now, let&#8217;s create a systemd file for Gitea.<\/p>\n<pre># nano \/etc\/systemd\/system\/gitea.service<\/pre>\n<p>Paste the following content to the file.<\/p>\n<pre>[Unit]\r\nDescription=Gitea\r\nAfter=syslog.target\r\nAfter=network.target\r\nAfter=mariadb.service\r\n\r\n[Service]\r\nRestartSec=2s\r\nType=simple\r\nUser=git\r\nGroup=git\r\nWorkingDirectory=\/var\/lib\/gitea\/\r\nExecStart=\/usr\/local\/bin\/gitea web -c \/etc\/gitea\/app.ini\r\nRestart=always\r\nEnvironment=USER=git HOME=\/home\/git GITEA_WORK_DIR=\/var\/lib\/gitea\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>Save then exit nano.<\/p>\n<p>Every time we make changes to a systemd file, we need to run the following command so that the changes we made are saved:<\/p>\n<pre># systemctl daemon-reload<\/pre>\n<p>It is time to run Gitea &#8211; issue this command to start the Gitea service:<\/p>\n<pre># systemctl start gitea<\/pre>\n<p>To verify the status of it, we can run this command:<\/p>\n<pre>[root@centos7 ~]# systemctl status gitea\r\n\u25cf gitea.service - Gitea\r\nLoaded: loaded (\/etc\/systemd\/system\/gitea.service; disabled; vendor preset: disabled)\r\nActive: active (running) since Mon 2019-07-22 04:53:33 CEST; 4s ago\r\nMain PID: 10492 (gitea)\r\nCGroup: \/system.slice\/gitea.service\r\n\u2514\u250010492 \/usr\/local\/bin\/gitea web -c \/etc\/gitea\/app.ini\r\n\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [T] Log path: \/var\/lib\/gitea\/log\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [I] Gitea v1.8.3 built with go1.12.5 : bindata, sqlite, sqlite_unlock_notify\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [I] Log Mode: Console(Info)\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [I] XORM Log Mode: Console(Info)\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [I] Cache Service Enabled\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [I] Session Service Enabled\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [I] SQLite3 Supported\r\nJul 22 04:53:33 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:33 [I] Run Mode: Development\r\nJul 22 04:53:34 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:34 Serving [::]:3000 with pid 10492\r\nJul 22 04:53:34 centos7.yourdomain.com gitea[10492]: 2019\/07\/22 04:53:34 [I] Listen: http:\/\/0.0.0.0:3000\r\n<\/pre>\n<p>As we can see, Gitea is now running and listening on port 3000.<\/p>\n<h2>Step 5: Install and Configure Nginx<\/h2>\n<p>If you want to access your Gitea installation using a domain name or a subdomain name, we can configure a web server to act as a reverse proxy. This time, we will use Nginx, a popular and highly-customizable web server to serve as our reverse proxy.<\/p>\n<pre># yum install nginx<\/pre>\n<p>Create a new Nginx configuration file:<\/p>\n<pre># nano \/etc\/nginx\/conf.d\/gitea.conf<\/pre>\n<p>Paste the following into the file:<\/p>\n<pre>upstream gitea {\r\n     server 127.0.0.1:3000\r\n}\r\n\r\nserver {\r\n     listen 80;\r\n     server_name git.example.com;\r\n\r\n     location \/ {\r\n        proxy_pass http:\/\/gitea;\r\n     }\r\n}<\/pre>\n<p>Make sure to replace <code>example.com<\/code> with your unique and registered domain name.<\/p>\n<p>Save the file and restart nginx<\/p>\n<pre># systemctl restart nginx<\/pre>\n<p>Now, let&#8217;s proceed to <code>http:\/\/git.example.com\/install<\/code><\/p>\n<p>From there, we need to fill the database information that we created earlier in the previous step. We can also scroll down and configure additional settings. In this step, creating an administrator account is optional. The first registered user will automatically become an administrator.<\/p>\n<p>Follow the installation instructions &#8211; once completed, you can access Gitea at <code>http:\/\/git.yourdomain.com<\/code>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-31528\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/07\/install_gitea.png\" alt=\"\" width=\"921\" height=\"609\" \/><\/p>\n<h2>Step 6: Install an SSL Certificate (Optional)<\/h2>\n<p>In this step, we will show you how to install an SSL certificate from Let\u2019s Encrypt.<\/p>\n<pre># yum install certbot-nginx<\/pre>\n<p>Then invoke the Certbot program by running it:<\/p>\n<pre># certbot<\/pre>\n<p>You will then be asked for your email address, after which you will need to agree with their ToS in order to proceed with the certificate installation.<\/p>\n<p>If there is no issue when requesting the certificate, and you choose HTTP to HTTPS redirection, Certbot will automatically edit your <code>\/etc\/nginx\/conf.d\/gitea.conf<\/code> file so that it automatically redirects all requests to the SSL variant.<\/p>\n<p>Lastly, do not forget to run the following command to create a cronjob for LetsEncrypt SSL certificate autorenewal.<\/p>\n<pre># echo &quot;0 0,12 * * * root python -c &#039;import random; import time; time.sleep(random.random() * 3600)&#039; &amp;&amp; certbot renew&quot; | sudo tee -a \/etc\/crontab &gt; \/dev\/null<\/pre>\n<p>That&#8217;s it! At this point, you can access your Gitea installation from <code>https:\/\/gitea.example.com<\/code>.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1287\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_homepage-1024x463-1.png\" alt=\"\" width=\"1024\" height=\"463\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_homepage-1024x463-1.png 1024w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_homepage-1024x463-1-470x213.png 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_homepage-1024x463-1-970x439.png 970w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_homepage-1024x463-1-768x347.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1291\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/support-for-gitea-and-cloud-vps-by-experts-fully-managed.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Of course, you don\u2019t have to install Gitea on CentOS 7 if you use one of our <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">CentOS Cloud VPS<\/a> Hosting services, in which case you can simply ask our expert Linux admins to install Gitea onto your CentOS 7 Cloud VPS for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on <strong>how to install Gitea on CentOS 7<\/strong>, please share it with your friends on the social networks using the share buttons, or simply leave a reply in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install Gitea on a CentOS 7 Cloud VPS. Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a self-hosted Git service forked from Gogs, making it lightweight and written entirely in Golang. Gitea additionally is released under the MIT license. If you find yourself &#8230; <a title=\"How to Install Gitea on CentOS 7\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/\" aria-label=\"More on How to Install Gitea on CentOS 7\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":1289,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-1286","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Gitea on CentOS 7 | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will show you how to install Gitea on a CentOS 7 Cloud VPS. Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Gitea on CentOS 7 | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will show you how to install Gitea on a CentOS 7 Cloud VPS. Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-18T20:00:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-centos7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to Install Gitea on CentOS 7\",\"datePublished\":\"2020-06-18T20:00:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/\"},\"wordCount\":980,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-centos7.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/\",\"name\":\"How to Install Gitea on CentOS 7 | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-centos7.jpg\",\"datePublished\":\"2020-06-18T20:00:24+00:00\",\"description\":\"In this tutorial, we will show you how to install Gitea on a CentOS 7 Cloud VPS. Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-centos7.jpg\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-centos7.jpg\",\"width\":750,\"height\":360},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-gitea-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Gitea on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Gitea on CentOS 7 | LinuxCloudVPS Blog","description":"In this tutorial, we will show you how to install Gitea on a CentOS 7 Cloud VPS. Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Gitea on CentOS 7 | LinuxCloudVPS Blog","og_description":"In this tutorial, we will show you how to install Gitea on a CentOS 7 Cloud VPS. Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2020-06-18T20:00:24+00:00","og_image":[{"width":750,"height":360,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-centos7.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to Install Gitea on CentOS 7","datePublished":"2020-06-18T20:00:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/"},"wordCount":980,"commentCount":2,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-centos7.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/","name":"How to Install Gitea on CentOS 7 | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-centos7.jpg","datePublished":"2020-06-18T20:00:24+00:00","description":"In this tutorial, we will show you how to install Gitea on a CentOS 7 Cloud VPS. Gitea is an alternative to GitHub, GitLab, and BitBucket. Gitea is a","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-centos7.jpg","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-centos7.jpg","width":750,"height":360},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-gitea-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Gitea on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=1286"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1286\/revisions"}],"predecessor-version":[{"id":1293,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1286\/revisions\/1293"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/1289"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}