Lantern
Your résumé, portfolio and blog on your own hosting. This guide covers installing, using, updating and backing up Lantern.
Lantern needs no command line, Composer, Node.js or scheduled tasks. If your host can run a PHP website, it can run Lantern.
Server requirements
| PHP | 8.3 or newer |
|---|---|
| PHP extensions | ctype, dom, fileinfo, filter, mbstring, openssl, pdo, session, tokenizer, xml. Most hosts have them all. Recommended: gd (shrinks large photos and makes smaller copies for phones), intl and zip (LinkedIn import and backups). |
| Database | SQLite (built into PHP, nothing to set up), or MySQL 8 / MariaDB 10.3 or newer |
| Web server | Apache (with mod_rewrite), LiteSpeed or nginx |
You don't need to check these yourself: the installer checks your server and says exactly what's missing.
Installing
Every install follows the same three steps: upload the files, visit the site, and answer the installer's questions. The installer:
- checks your server;
- asks which database to use. Simple (SQLite) is right for almost everyone. Choose MySQL only if you prefer it or your host requires it;
- asks for your site's name and your admin account (your email and a password of at least 10 characters).
Then you land in your admin area at /admin.
Shared hosting (cPanel, Plesk, DirectAdmin and others)
- Unzip the download on your computer. Inside is a folder named
lantern-x.y.z. - Upload the contents of that folder to your site's folder, using your control panel's File Manager or an FTP app. In cPanel that's usually
public_html; in Plesk,httpdocs. Tip: File Managers can usually upload the ZIP and unzip it on the server, which is much faster. - If your control panel lets you choose the site's document root, point it at the
publicfolder. If it doesn't, leave it: Lantern's own.htaccesssends visitors intopublicand keeps everything else private. - Visit your domain. The installer opens.
- For MySQL, first create a database and a user in your control panel (cPanel: MySQL Databases; Plesk: Databases), give the user all privileges on the database, then enter those details in the installer. Use
localhostas the host unless your host says otherwise.
#, $, spaces) are fine: the installer saves them safely.A VPS (nginx)
Upload or unzip the files to, for example, /var/www/lantern, and make storage/, bootstrap/cache/ and database/ writable by the web server's user (often www-data):
sudo chown -R www-data:www-data /var/www/lantern/storage /var/www/lantern/bootstrap/cache /var/www/lantern/database
A server block (adjust the domain and the PHP version in the socket path):
server {
listen 80;
server_name example.com;
root /var/www/lantern/public;
index index.php;
client_max_body_size 64M;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
}
location ~ /\.(?!well-known) { deny all; }
}
Add HTTPS (for example with Certbot), visit the site and follow the installer.
Your own computer
With PHP 8.3+ installed, open a terminal in the Lantern folder and run php -S 127.0.0.1:8000 -t public, then visit http://127.0.0.1:8000. Laravel Herd, MAMP, XAMPP and Valet work too: point them at the public folder.
In a sub-folder
Lantern works at an address like example.com/cv. Upload it into that folder (for example public_html/cv) and visit example.com/cv. Links, images and the admin all follow the folder.
First steps
Your dashboard has a checklist that ticks itself off as you go:
- Fill in your profile (Résumé → Profile): name, headline, photo, a short “About”, and how people can reach you. You choose whether your email and phone show publicly. Until you add a photo, your site shows a plain placeholder in your accent colour.
- Add your experience, or import it: Import and export can fill your résumé from LinkedIn or a JSON Resume file in a minute. Or start from one of the nine examples and swap in your own details.
- Set up email (Settings → Email), so password resets and contact messages reach you. See Email.
- Turn on two-factor sign-in (Your account) for extra safety.
- Choose a home page style and your colours and fonts.
Once the checklist is done it folds away to one line, and the dashboard becomes your site at a glance: your latest messages, how many posts, projects, subscribers and résumé entries you have, any drafts and scheduled posts, and shortcuts to write a post, add a project, download a backup or preview your PDF. It only uses what's already in your site; nothing about your visitors is tracked.
On the Home page screen, the ⓘ next to each section tells you where its content is edited.
Your content
Lists can be reordered by dragging the handle on the left. In long text boxes, a blank line starts a new paragraph, lines starting with - become a bulleted list, and web addresses become links. Blog posts use Markdown.
Résumé and PDF
Résumé has your profile and six sections: Experience, Education, Skills (grouped, with an optional 1–5 level), Certifications, Languages and Awards. Ticking “I’m still here” (or “Still studying”) shows “Present” instead of an end date.
The PDF résumé is built from the same details, so it always matches your site. Choose its design (Classic or Modern), whether it includes your profile photo (off by default, as many employers prefer résumés without one) and whether visitors can download it in Résumé → PDF. It's rebuilt automatically after any change.
Projects
Case studies with a cover image, a gallery of up to 12 images, the client, your role, the year, tags and the full story. Each published project gets its own page, with a link to the next one. Untick Published to keep a project as a draft that only you can see.
Services and testimonials
Services are cards with a price, an optional note such as “from” or “per month”, and a list of what's included. Mark one as highlighted to show it as “Most popular”. Leave the price empty to show “Ask me for a quote”.
Testimonials are quotes with the person's name, role and an optional photo.
Blog
Posts have a title, an optional short summary, a cover image, a category and the post itself, written in Markdown:
| Type | To get |
|---|---|
## Heading | a heading |
**bold** and *italic* | bold and italic |
- item or 1. item | a list |
[text](https://example.com) | a link |
> quote | a quotation |
Use Add an image to upload a picture into the post, or Choose from your images to reuse one. HTML typed into a post is shown as text, so a post can never run scripts.
Publishing: a post is live when it's ticked as published and its publish date has arrived. Pick a future date to schedule it: it goes live on that day by itself. Once a post is live, its address stays the same even if you rename it, so links to it keep working.
The blog is at /blog, with a page per category and an RSS feed at /feed.xml.
Media
Every uploaded image, and where it's used. Add images here to reuse them in posts and projects. “Copy for a post” copies the line that places the image in a post. An image used in several places is only removed when the last of them stops using it. Delete unused images frees up space.
Your site
Home page
| Style | Best for | Opens with |
|---|---|---|
| Professional | Job seekers, consultants, managers | Your photo, headline and résumé |
| Creative | Designers, photographers, writers | A big headline and your projects as large images |
| Freelancer | Independent specialists | A “Hire me” introduction and your services and prices |
Drag the sections into the order you like, and untick any you don't want. Each style remembers its own arrangement. Sections with nothing in them are hidden automatically.
Appearance
- Accent colour: eight presets or any colour. Button text switches between black and white so it's always readable.
- Fonts: five pairings that use fonts already on your visitors' devices, so pages load fast and nothing is fetched from other sites.
- Light or dark: follow each visitor's device setting, or always light or always dark, with an optional switch for visitors.
- Logo and browser icon (PNG, JPG or WebP; the icon can also be ICO). SVG isn't accepted, because SVG files can carry scripts.
- Custom CSS for your own tweaks.
Search and sharing
Set the home page's title and description for search results, and a sharing image (1200 × 630 pixels works best) for link previews on social media and in chat apps. Lantern already adds descriptions, previews, a sitemap (/sitemap.xml) and structured data for search engines.
Code for every page is where analytics code goes (Plausible, Fathom, Google Analytics and so on). It's added to every public page, but not the admin.
Tick Ask search engines not to list this site while you're setting up.
Messages and newsletter
Messages from your contact form are kept in the admin and, once email is set up, sent to you as well. Reply to the email to answer the sender.
Newsletter: switch the sign-up form on in Newsletter. It appears on the home page, the blog and under each post. By default, new subscribers confirm by email, which keeps typos and fake sign-ups off your list. Lantern collects sign-ups; you send newsletters from an email service such as Mailchimp, Buttondown or Brevo by importing the Export subscribers (CSV) file. Every confirmation email includes an unsubscribe link.
Import and export
From LinkedIn
- On LinkedIn, open Settings → Data privacy → Get a copy of your data.
- Choose the first option, or tick Profile, Positions, Education, Skills and Recommendations, then request the archive. LinkedIn emails you when it's ready.
- In Lantern, open Import and export and choose the ZIP file. If your server can't open ZIP files, unzip it first and choose the CSV files inside.
- Check the preview, untick anything you don't want, and choose Add to what I have or Replace the ticked résumé sections.
Private parts of the archive, such as messages, connections, your address and date of birth, are never read. Visible recommendations become testimonials.
JSON Resume
JSON Resume is an open format many résumé tools can read and write. Import a .json file the same way, or use Download JSON Resume to take your résumé elsewhere.
Start from an example
Loads one of the nine made-up example people from the demo: a product manager, software engineer, recent graduate, brand designer, photographer, writer, freelance web developer, career coach or personal trainer, across all three home page styles. It replaces your content and look, but keeps your account and email settings.
Backups
Import and export → Download a backup gives you one ZIP with your database and every uploaded image. Make one before updating, and after big changes. Your hosting company's own backups are a good second layer.
Restoring a backup
- Install the same or a newer version of Lantern (or use the existing one).
- SQLite: replace the database file (its name is
DB_DATABASEin.env, usuallydatabase/lantern.sqlite) withlantern.sqlitefrom the backup.
MySQL: in phpMyAdmin, select the database, choose Import and picklantern.sql. - Copy the backup's
mediafolder intostorage/app/. - Keep your old
.envfile, or at least itsAPP_KEYline. Saved email passwords and spam keys can only be read with the same key; otherwise, enter them again in Settings.
.env on purpose, because it holds your passwords. Keep your own copy of it somewhere safe.Until email is set up, Lantern writes emails to storage/logs/mail.log instead of sending them. In Settings → Email, choose SMTP and enter the details your host or email service gives you, then use Send a test email. Common settings:
| Port | Encryption | Used by |
|---|---|---|
| 587 | Automatic (STARTTLS) | Most services |
| 465 | SSL/TLS | Many cPanel hosts |
Use a “from” address on your own domain: emails from free addresses (Gmail, Outlook) sent through other servers are often marked as spam.
Spam protection
The contact and newsletter forms already have two quiet checks: a hidden field only bots fill in, and a check on how quickly the form was sent. If spam still gets through, add Cloudflare Turnstile, a free and privacy-friendly CAPTCHA: create a widget at Cloudflare and paste its site key and secret key into Settings → Spam protection.
Updating
- Download the new version from your account in the shop where you bought Lantern (Downloads). Updates are included for the period in the shop’s terms, and can be renewed.
- Download a backup.
- Upload the new files over the old ones. Keep your
.envfile, thestoragefolder and your SQLite database indatabase/. Uploading the new version's files won't overwrite them, because the download doesn't include them. - Visit your site. On the first visit, Lantern brings its database up to date by itself.
The version you're running is in config/lantern.php. What changed in each version is in CHANGELOG.md.
Translating
Every word Lantern shows comes from the files in lang/en/. To translate the site, copy that folder to, for example, lang/fr/, translate the text on the right of each => (keep the :name-style placeholders), then set APP_LOCALE=fr in .env. Dates follow the language automatically. Keep a copy of your translation, because updates replace lang/en/ but leave other languages alone.
Customizing (developers)
- Lantern is a standard Laravel 13 app with Livewire 4 and Tailwind CSS 4. The public site's templates are in
resources/views/site/, and its styles inresources/css/site.css. - After changing styles, rebuild with
npm install && npm run build. The download already includes the built files, so this is only needed for your own changes. - Edited core files are replaced when you update. For small changes, prefer Appearance → Custom CSS and your own language files.
Troubleshooting
A blank page or “500 Server Error”
Check storage/logs/laravel.log for the reason. Most often storage/ or bootstrap/cache/ isn't writable, or PHP is older than 8.3: most control panels let you choose the PHP version.
I see a list of files, or “Forbidden”
Your server isn't using .htaccess. Point the domain at the public folder, or ask your host to turn on mod_rewrite and AllowOverride All.
“Could not connect to the database”
Double-check the database name, user and password in your control panel. The user must be added to the database with all privileges. The installer tries localhost and 127.0.0.1 automatically.
Uploads fail
Your host's upload limit may be small (often 2 MB). Raise upload_max_filesize and post_max_size in your control panel's PHP settings. Lantern shrinks large photos after upload when GD is available.
I forgot my password
Use Forgot your password? on the sign-in page. This needs email to be set up. If it isn't, the reset link is in storage/logs/mail.log.
Emails don't arrive
Use Send a test email in Settings → Email, which shows the server's exact reply. Check your spam folder, and that the “from” address is on your own domain.
“Lantern couldn't finish updating”
The database update after uploading a new version stopped. Nothing was deleted. Reload the page to try again; if the message stays, send it to support (it's also in storage/logs/laravel.log).
Accessibility
Lantern is built to meet WCAG 2.2 level AA, on your public site and in the admin:
- Colour contrast is automatic. Whatever accent colour you pick, Lantern adjusts the shade it uses for links and buttons so text stays readable (at least 4.5:1) in light and dark mode. The exact colour you chose is still used for borders and decoration.
- Keyboard and screen readers. Every page has a “Skip to content” link, clear headings and landmarks, and a visible focus outline. Error messages are linked to their fields, and after a failed save the cursor moves to the first problem.
- No dragging needed. Anything you can drag to reorder can also be moved with the arrow keys, or by clicking its handle and choosing Move up, Move down, Move to the top or Move to the bottom.
- Less motion. If a visitor has asked their device to reduce motion, Lantern turns off zooming pictures, smooth scrolling and the demo's pulsing dot.
What you can do:
- Describe your pictures. Every picture has a “Describe this picture” box: under covers and gallery pictures in Projects and Blog, and on each picture in Media (where “No description” shows which still need one). Say what matters in a sentence, such as “A blue whale painted across a harbour wall”. A description is saved with the picture, so it follows it into every project and post that uses it. Leave it empty for pictures that are only decoration. In a post's text you can also write it between the square brackets:
. - Make link text meaningful, such as “read the case study” rather than “click here”.
- Custom CSS and code you add (Appearance and Search and sharing) aren't checked; test your site after adding any.
The PDF résumé is made for printing and sending. PDF files made on a shared host can't carry the extra structure screen readers use, so point people who need it to your site, which has the same content.
Security checklist
Lantern sends security headers on every page, keeps the admin locked to its own files, limits how often forms and sign-in can be tried, hides whether an email address has an account, and never lets an uploaded file run code. You can help:
- Run the installer straight after uploading. Until it's finished, anyone who finds the address could run it first.
- Use HTTPS, and enter your address with
https://in the installer: Lantern then only sends its sign-in cookie over HTTPS. Most hosts offer free certificates. - Turn on two-factor sign-in in Your account.
- Keep
APP_DEBUG=falsein.env(the installer sets it). - If your domain can point at
public/, point it there. - Only paste analytics code from services you trust: it runs on every public page.
- Update Lantern when a new version comes out, and keep backups. Backups hold your whole site, so store them somewhere private.
- Use a long password that you don't use anywhere else.
Demo mode
Lantern's public demo runs with DEMO_MODE=true. Never turn this on for a real site. It shows a one-click demo sign-in, blocks uploads and account changes, and wipes all content every night.
Credits and licences
Lantern is built on open-source software, used under its licences: Laravel, Livewire, Alpine.js, Laravel Fortify, Tailwind CSS, Carbon and Guzzle (MIT); league/commonmark and phpdotenv (BSD-3-Clause); dompdf, php-font-lib and php-svg-lib (LGPL, used unmodified) with the DejaVu fonts (Bitstream Vera licence). Every package's licence is in its folder inside vendor/.
The example people, businesses and illustrations were made for Lantern and are yours to use with it.
Support
Questions and problems: use the contact page of the shop where you bought Lantern, and include your Lantern version, your PHP version and any message from storage/logs/laravel.log.