New one click installer: Gitea

Posted in Git by

We have just released a new installer for the lightweight code hosting Gitea application for the Git version control system.

Gitea is similar to well known services for modern software development like GitHub, Bitbucket, and Gitlab, aiming to provide an easy, fast, and painless way of setting up a self-hosted Git service. It joins our pack of project management applications, along side Redmine and Trac, providing a new, fresh approach.

With Gitea you can have both public and private repositories hosted under the same roof. With a wealth of tools available for collaboration, you can manage pull requests, merges and branches directly from its UI, grant and fine-tune permissions for fellow developers working on your projects. As well as the ability to enable a wiki and an issue tracker for each repository where everyone can contribute.

You can create a Gitea app using our control panel, by selecting Gitea in the App Type dropdown menu of our Add new application page:

Screenshot of WebFaction control panel gitea app picker

Check out the WebFaction specific docs here or the official Gitea docs here.

This is our first installer that uses the Go programming language. Go has been on the rise in the last couple of years because it makes it easy to build simple, reliable, and efficient software. The language was created at Google and it is perfect for creating APIs and services due to its portability across different architectures. It can be compiled for all major operating systems, such as Windows, Mac OS or Linux, and run on a plethora of CPU processors.

A “Hello, World!” code looks like this:

package main

import "fmt"

func main() {
fmt.Println("Hello, World!")

If it you want to test Go, you can give Revel or Echo a try or even the Macaron web framework, that Gogs and Gitea are built upon.


PHP 7.2 general availability

Posted in PHP by

PHP 7.2, which is the latest second feature update to the PHP 7 series, is now available as a one-click install in our control panel!

While it has been installed on our CentOS 7 servers for a few weeks now, you should now be able to create new apps using our control panel by selecting the Static/CGI/PHP-7.2 option in the App Type dropdown menu.

Screenshot of WebFaction control panel php version picker

If you want to run a php script from the command line, like composer or drush, you can invoke the php 7.2 interpreter as php72.

[iliasr@web624 ~]$ php72 -v
PHP 7.2.1 (cli) (built: Jan  5 2018 04:43:31) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies

Eager users (and there were a few judging from the support tickets about it) were able to use PHP 7.2 by manually putting this in their site’s .htaccess file:

<FilesMatch .php$>
    SetHandler php72-cgi

If you want to switch an existing PHP app to PHP 7.2 you will need to do the same. While there are only a few backward incompatible changes with this release, it would be wise to review the official migration guide before doing so.

PHP 7.2 brings a lot of impromvements and new features such as the ability to convert numeric keys in object/array casts, the migration of the Hash extension from Resource to Object and the introduction of libsodium as a core extension. You can review the full list of changes in the official ChangeLog.

Please note that PHP 7.2 is not available on our CentOS 6 servers (any machine lower than Web500). Users on CentOS 6 who wish to install and use PHP 7.2 apps must migrate to a CentOS 7 server.