Run Typemill on Localhost
If you are a developer and if you want to run Typemill locally, then simply download Typemill (zip or git) and visit your local folder like localhost/typemill
. If your server is configured correctly, then no additional work is required. Check the detailed information for Linux, Windows, and Mac below.
Move to Production
If you want to move your website to production (or to any other domain), then the cached navigation will contain the old base-url, so all links will contain something like "localhost/mysite". There are three ways to refresh the cache and to solve this issue:
- Unpublish and publish one (any) page again. This way the cache will recreate with the next page load.
- Use kixote and type "clear cache" (starting with Typemill Version 2.2.0).
- Use ftp and delete the files in the folder
/data/navigation
.
Run on Linux/Ubuntu
Make sure that you have apache2 and php installed:
sudo apt update
sudo apt install apache2
sudo apt install php libapache2-mod-php
Enable the mod-rewrite modules:
$ sudo a2enmod rewrite
Open your Apache configuration file:
sudo nano /etc/apache2/sites-available/000-default.conf
Ensure the AllowOverride Directive is set:
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
You also need to install some php-libraries if they are not installed yet. You will see a list of missing libraries in the setup-screen. For example you might have to install mbstring and gd-image like this:
sudo apt install php-gd php-mbstring
Restart your server to apply all changes:
$ sudo systemctl restart apache2
Make sure that the apache server has access to all files:
sudo chown -R www-data:www-data /var/www/typemill
Make sure that the folders cache
, content
, data
, media
, and settings
are writable. It is recommended to make folders writable with 755 and files with 644.
Run on Windows
We recommend to download and use xampp for windows.
Run on Mac
Description will follow.