Styx - Installation

Get Styx - ‘install’ or ‘upgrade’

The old migration from S9y-to-Styx documentary was removed and archived to this archived page (link). Since Styx 2.9.5 in May 2020, auto upgrade migration tasks were removed and only hand-made-merges with database data only possible. Please start with a complete fresh installations only!

Normal in-Styx Edition Upgrades

Deflate a new Styx release zip items to your current installation, open up your Blog and then follow the presented update routine or use the autoupdate plugin, which does that easy and automatically for you.

Fresh Installation

Before the installation

Serendipity is a PHP-based web application. That means, to use Serendipity, you need to have access to a Web Server that has PHP support enabled. You upload the Serendipity files to that Web Server (by using FTP, SSH or other means) into a directory that is part of your Web Servers document tree.

After you have uploaded the files to your web space, you need to “open” the Serendipity application. You do that by opening an URL like

SECURITY RECOMMENDATION: When you upload the Serendipity files to your webspace, this means temporarily everyone who knows the URL to your Blog would be able to use the Serendipity installer. To prevent unauthorized access, you should immediately secure your installation during this process. The best way to do this is by securing the Blog with a password by using a .htaccess file that you upload first, as outlined in the section Locking the Blog.

Serendipity Styx already comes with a secured installation, which uses a “two-factor authentication” (2FA) like token to exclusively bind the installation progress to the one being able to upload the files. You!

Token secured installation
Styx: Token secured installation


Serendipity is tailored for the Apache Webserver. However, people are successfully running Serendipity with NGINX, Microsoft IIS and LightTPD. When using Serendipity on Windows servers, pay attention to always enter path references using forward slashes (‘/’) instead of the notation using backslashes (“C:\…\”).

For full operation, Serendipity relies on .htaccess files that your Virtual Host must allow. For Apache, this requires the Allow Override File Info Indexes Limit (or Allow Override All) option set to the directory of your Serendipity installation.

A current Serendipity Styx in branched 2/3 Series requires at least PHP 5.5/7.3 and fully enabled and working Cookie Session support. It requires the PCRE extension, and optionally makes use of the GD, iconv, xml, zlib and mbstring extensions. Serendipity is fully PHP 8.x compatible and encourages the use of PHP bytecode compilers like OPcache.

When operating Serendipity in PHP’s Safe Mode, you will not be able to use File Upload and SPARTACUS Plugin fetching facilities. Enabling error_reporting and display_errors (or directing this to a log file) is suggested to keep track of possible errors. The file_uploads directory should be turned ON if you want to have media file upload features. For graphic processing, you either require GDLib or ImageMagick.

It is very much suggested to DISABLE the register_globals, session.use_trans_sid and magic_quotes_* directives of PHP, which is already the default since at least PHP 5.

You require at least one of the following Database Extensions and a Database Server of the same kind: MySQL(i), PostgreSQL, SQLite.

Write access must be granted to:

  • .htaccess [created on installation]
  • [created on installation]
  • archives/
  • templates_c/
  • uploads/
  • plugins/ (if you plan to use the Spartacus plugin)
  • templates/ (if you plan to use the Spartacus plugin)

Uploading Serendipity

You can install Serendipity into either your document root of the web server, or into any subdirectory you like. Make sure that you upload ALL files that you extracted from your Serendipity release .ZIP or .TGZ file, including empty directories. Make sure, your FTP editor doesn’t report any trouble or permission errors when uploading Serendipity files.

Permissions on files/directories

Very important to Serendipity are the directories archives, templates_c and uploads. The directory archives is used to store pre-generated files, the directory templates_c will contain automatically compiled HTML templates from the Smarty Templating Engine and the directory uploads will contain any media files you upload to your Blog. This means, all three folders will require write access for your webserver.

PHP usually runs as a specific user that is different from the FTP user account you use to upload files. So, if your FTP user is able to upload files, this does not necessarily mean, that the PHP process will be able to access the same files/directory. Depending on your webservers setup, you might need to change the permissions (CHMOD) of the three mentioned directory to something like 777 (read, write and execute permissions for everyone, meaning “world writable”), 775 (meaning read, write and execute permissions for the owner and the group of the files/directory, but not “everybody”). Which one to use is very specific to your webserver’s setup. Please ask your provider, if you are unsure which permissions you need to use!

On top of those three directories, Serendipity will also need to write the two files .htaccess and into the root of the Serendipity installation. That means that also the directory where you upload the full Serendipity installation into needs to have permissions that allow the PHP server to create those two files - so remember to also set your top directory (like “serendipity” or “blog”) to 777 or 775. You can reset those permissions on the core directory after the installation to something like 744 again, because once the mentioned files are written, Serendipity only needs to alter those files.

If you plan to use the SPARTACUS plugin to download plugins and themes over the web, PHP also needs to be able to write to the directories plugins and templates.

Further permission-related questions are answered in our FAQ.


Once you have uploaded Serendipity to your web space you can call the installer interface via something like It will take no longer than 1-2 minutes to install Serendipity.

On this screen, you will see a basic pre-installation report that shows you a diagnosis of your Web Server settings. All variables that possibly might create trouble are listed orange-coloured. You usually do not need to pay attention to those, unless you are experiencing errors. Here’s an example screenshot:

First page of the installer
First page of the installer

Fatal problems are shown in red color. The most usual case of a red error is if Serendipity cannot create the directories templates_c, archives or uploads. In this case, please follow the suggestions in the “Permissions on Files/Directories” step of this documentation.

On the bottom of the diagnosis screen, you can choose if you want to perform a “Simple installation” or the “Expert installation”. Both methods actually perform the same steps; however the “Simple installation” only shows you very few initial configuration options so that you can install Serendipity quickly. The “Expert installation” will ask you to enter every configuration directive.

Since the goal of this document is to show how fast you can install Serendipity, we will only discuss the “Simple installation” right now, so please click on that link and you will see a screen like this:

Simple installation options
Simple installation options

As you can see, this screen is divided into several sections.

Database Settings

In this section, you must enter the credentials to access the selected database. First you choose the database type you want to use for Serendipity. Serendipity will only show the database types that are available to PHP. Note, that your provider must have given you credentials to access your database, and that this database must already exist. Serendipity requires an empty database, so if you have not yet created a database, just do that via the SQL command “CREATE DATABASE serendipity” using your favourite SQL tool (phpMyAdmin, phpPgAdmin, sqliteAdmin).

Make sure, that you have read and correctly set “Preparing a database” for Serendipity before!

Now you just fill in the values you got from your provider for the host, user, password and database name fields.

General Settings

This section contains the most basic Blog setup options. First you enter the username and password for your Admin user. It is recommended to not use special characters like Umlauts for the username. Your username will not be displayed in the Blog to enhance login security - to display your username, the “real name” option will be used.

The E-Mail address of your admin user is very important, since you will receive trackback and comment notification emails to that address.

The Blog name and description will later be shown on the frontpage of your Blog. Of course, all those settings can later be changed!

As the last option of this section, you need to choose the language of your Blog. Note that this will be the default language for both your frontend of the Blog and the personal language of your editor. All other users are later able to define their own language for viewing your Blog! (See: “Personal Settings”.)

Complete installation

After you have entered all options, you click on the button “Complete installation”. Serendipity will then try to connect to your database. If that fails, it will inform you of this.

Also, Serendipity will perform checks and create directories, so it might ask you to create some more directories/permissions as discussed above.

If you ever have troubles because of wrong auto-detected directories or URLs, you might need to call the “Expert installation” wizard. This gives you several additional configuration options to indicate the used directories, database table prefixes etc. Note well that the Expert Installation will show you the path layout as it currently is configured; if you change the path/URL locations there, you need to enter values that reflect your ACTUAL layout, and not the layout you would want. If you want to install Serendipity into a different directory than displayed, you need to move the files via FTP/SSH there.

Else, Serendipity will create the required database tables and sets up your Blog as configured:

Results of the database tables creation
Results of the database tables creation

This screen tells you that Serendipity has created the tables, inserted your admin user account, installed default plugins and auto-created the “.htaccess” file.

REMEMBER WELL that if you ever want to reinstall Serendipity from scratch, you need to DROP all Serendipity-created Database tables. Else, reinstalling into the same database will Serendipity lead to think that it shall not re-create the tables and authors. This would then lead to duplicate inserted plugins and non-matching user credentials you entered!

Accessing your Blog Frontend

After the installation, the screen above showed you a link to “Visit your new Blog here”. You can click on this, and then you should see your empty Blog like this:

Index page of an empty Blog
Index page of an empty Blog

If you instead see a “HTTP 500” error screen, this means that your Web Server did not allow Serendipity to create custom “.htaccess” directives. In this case, you can just delete the file “.htaccess”. Serendipity can operate well without this file, BUT you will not be able to use “pretty URLs”. Those pretty URLs are configured via the “URL Rewriting” option inside Serendipity Configuration.

Accessing the Admin panel

After you’ve installed Serendipity, you most probably want to access the admin interface to customize further options. You can do that by calling your URL - a link to the admin interface is also shown on the Blog Frontend, as you might have noticed.

Accessing this interface will give you a login screen:

Login screen
Login screen

Enter the user details there, which you specified in the installation. By default this is username “John Doe” and password “john”. If you check the box “Save information” below, this will make Serendipity save a persistent Cookie on your client, and you can auto-login to your panel any time you want. Note that if you are not the only person using your browser, you may not want to do this. :-)

Then you will see the admin interface:


The left navigation takes you to specific sections of your Blog:


The Backends “Frontpage” - also named the “Dashboard” - normally just shows you the basic page. Here, specific plugins might show you a specific output, which currently are: The last (5) “Comments” and (draft entries) “In Progress”.

Personal Settings

The button with the three gears on the upper right of the page will lead you to your personal settings section. The personal settings section will show all user-specific options to your currently logged-in user. There you can change your username, your password and also the language you want to see for the Admin interface.

The most important distinct option is whether to use the “WYSIWYG” editor. This will show you a Word-like interface for creating Blog entries. It makes life easy, and if you do not know any HTML at all, you will be very glad about this editor that will allow you to insert images, links and text formatting at ease. This option can also be changed later, if you happen to dislike the WYSIWYG editor, or if you’re missing it.

Further on, you can set the behaviour of the Dashboard widgets. Default is “ON”, but Styx recommends using it NOT, to allow to reduce this to an informational only widget, much smaller and leaving enough space for additional ‘snapped’ widgets.

Simplified filters reduce some of the extended possibilities of Serendipity. This is a good start for the Beginners, but will not let you recognize some more advanced tools. Take a ride when you are ready!

Personal settings
Personal settings


This section contains all relevant options to create and maintain entries and maintain categories.

Entry editor
Entry editor


The media section allows you to upload and maintain images and documents you uploaded and can embed into entries.

Upload form for the media database
Upload form for the media database


This section contains options to maintain comments to your entries and manage spam protection settings.


This section covers the configuration of your Blog, the users and groups that are allowed to login to your Blog, and importing/exporting entries.

Note that the “Configuration” item will show you all the options you would see in the Expert Installation. There you can configure all the detailed options of your Blog, like URL Rewriting, Permalinks, Charsets etc.

Configuration section
Configuration section

The sections Themes and Plugins allow you to configure and setup plugins as well as choose the layout of your Blog

Theme selection
Theme selection
Plugin configuration
Plugin configuration


This section is for “maintaining” specific system tasks, as there are: the “Integrity” verifier, the “MediaLibrary Synchronizer”, a Smarty “compile” cleanup task, the “Change/Debug”-log file viewer, the “503 Maintenance Service Mode”, tools to “import/export” Blogs, the “Spamblock”-log cleaner and the “UTF8MB4” migration task.

Maintenance section
Maintenance section

And what next?

Now that you have successfully installed Serendipity Styx, go ahead and explore. Create some entries, categories, or install a few plugins via Spartacus, that you can also find here in the Styx Spartacus WWW mirror. A recommended one for immediate install for example would be the “Serendipity Autoupdate” event plugin! The Spartacus interface is in most cases self-explanatory and open for experiments.

If you have any questions, feel free to come to the discussion forums or to browse the docs section for further documentation.