Start with Pico CMS starter to learn how work with pico php markdown flatfile cms.
Pico CMS Source Code Project Free Download →
Pico CMS is an open-source, flat-file CMS written in PHP, which means it does not rely on a database for storing content. Instead, it uses plain text files, making it simple, fast, and secure. Pico leverages Markdown for content formatting and YAML for managing metadata, ensuring ease of use and flexibility.
Before you start, ensure your server meets the following requirements:
If you are using Ubuntu, you can follow these steps:
Install PHP and necessary packages:
sudo apt update
sudo apt install php php-fpm nginx composer
Install the acme.sh client for Let's Encrypt (optional):
sudo wget -O - https://get.acme.sh | sh
Obtain a Let's Encrypt certificate (if using SSL/TLS):
sudo ~/.acme.sh/acme.sh --issue --standalone -d yourdomain.com
Create a directory for your Pico CMS installation:
sudo mkdir -p /var/www/pico
Change the ownership of the directory:
sudo chown -R your_username:your_username /var/www/pico
Navigate to the document root directory:
cd /var/www/pico
Use Composer to download Pico CMS:
composer create-project picocms/pico-composer .
Change the ownership of the directory to the web server user:
sudo chown -R www-data:www-data /var/www/pico
For Nginx, you can create a configuration file:
sudo nano /etc/nginx/sites-available/pico
Add the following configuration:
server {
listen 80;
server_name yourdomain.com;
root /var/www/pico;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?_content=$uri&$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
}
Enable the configuration and restart Nginx:
sudo ln -s /etc/nginx/sites-available/pico /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
Open your web browser and navigate to http://yourdomain.com
or http://localhost
if you are running it locally. You should see the default Pico CMS page.
Pico CMS uses Markdown for formatting content and YAML for managing metadata.
Navigate to the content
directory:
cd /var/www/pico/content
Create a new Markdown file:
nano my-first-page.md
Add content and metadata:
---
Title: My First Page
Description: This is my first page created with Pico CMS.
---
# My First Page
This is the content of my first page.
Save and close the file. The new page will be automatically available on your website.
Pico CMS supports themes using the Twig templating engine.
themes
directory in your Pico installation.config.yml
file located in the root directory of your Pico installation:theme: your-theme-name
Pico CMS has an extensive plugin ecosystem to extend its functionality.
plugins
directory in your Pico installation.config.yml
file:enabled_plugins:
- plugin-name
Pico CMS is designed with SEO and performance in mind.
Pico CMS has an active community and extensive resources:
By following these steps, you can easily set up and start using Pico CMS to build and manage your website. Its simplicity, flexibility, and performance make it an excellent choice for individuals, small businesses, and anyone looking for a lightweight yet powerful CMS.
Litov a Minimalist Themes built with eleventy 11ty for your multipurpose website projects.
The Cubber Jekyll Theme emerges as a standout option, particularly for those seeking a modern, futuristic design. Here’s a detailed look at what makes the Cubber theme an excellent choice for your website or blog projects.