Simple Lightweight No Database Blog Engine with Markdown
- Web-Server: Apache
- Apache Modules: rewrite, mbstring
- PHP: 7.4+
- Download and unzip the ZIP archive from the repository releases into a separate directory of your web server.
- Open the address in the browser that corresponds to the directory where you unpacked the files.
- Create a symbolic link in your home directory to the
/uploadsdirectory in your web server directory where blog files are located. - Set permissions to
0777for the /uploads directory. - In the
/bin/blog_post.shfile, specify the username and group under which your web server runs in theU_WEBSandG_WEBSvariables, respectively. Also, provide the absolute path to the root directory of your blog on your web server in theD_BLOGvariable, for example:D_BLOG="/var/www/my_blog". - Set execute permissions for the script using
chmod +x /var/www/my_blog/bin/blog_post.sh. - Add the script to the cron table to run it as root or another user with write permissions to the web server directory.
Example crontab entry:*/5 * * * * root /var/www/my_blog/bin/blog_post.sh >/dev/null 2>&1 - Enjoy!
When you first download the distribution, there are two configuration files in the /config directory.
/config/default_config.php - contains default parameters and is overwritten after each update
/config/config.php - contains parameters that exist at the time of release of the current version, these parameters are edited by the user and the file is not overwritten during each update.
To save you from having to compare your current configuration and its new version every time, adding any missing parameters, a default configuration was created. If a parameter is missing in your configuration file, it will be automatically taken from the default configuration.
If you want to personalize any new parameters that are not in your configuration file but were added to the default configuration file, you should copy the line with the parameter from the /config/default_config.php file to your /config/config.php file and remove the DEFAULT_ prefix from the parameter name, for example:
define("DEFAULT_NEW_PARAMETER", "New parameter"); -> define("NEW_PARAMETER", "New parameter");
- Remove the files:
.htaccess,index.php,page.php,post.php,search.php,version.txt - Delete the directory
/system/(If you are using your own themes in the/system/themes/directory, you should save them beforehand), delete the directory/bin/ - Replace the deleted files and the
/system/and/bin/directories with new ones. - Replace
/config/default_config.phpwith a new one.
- Author: Michel Fortin https://michelf.ca All rights reserved.
Based on Markdown Copyright (c) 2003-2005
- Author: John Gruber https://daringfireball.net All rights reserved.
- Author: Serban Ghita, Nick Ilyin
- Original author: Victor Stanciu
- GitHub: https://github.com/serbanghita/Mobile-Detect
- Author: Alexander Maltsev https://itchief.ru/
- Site: https://jquery.com/
- Github: https://github.com/jquery/jquery