an easy to install, lightweight blog software written in PHP for people who are sad and like music
Go to file
2022-11-26 15:03:30 +00:00
api add shields tunes endpoint 2022-11-26 10:44:22 +02:00
css move extra styles to moodblog-extras 2022-11-19 19:16:10 +02:00
img add headbang emojis \m/ 2022-11-18 22:14:16 +02:00
templates add .username class 2022-11-25 17:34:35 +02:00
write remove hardcoded password, add lang variable, make index.php HTML5 validated 2022-11-18 22:24:55 +02:00
.gitignore Add Files 2022-11-17 20:23:43 +02:00
creds.def.php Add Files 2022-11-17 20:23:43 +02:00
index.php remove hardcoded password, add lang variable, make index.php HTML5 validated 2022-11-18 22:24:55 +02:00
LICENSE relicense under AGPL 2022-11-26 14:40:11 +00:00
README.md replace GPL button with AGPL 2022-11-26 16:57:45 +02:00
rss.php add <atom:link> to rss feed 2022-11-25 17:19:26 +02:00
schema.sql Add Files 2022-11-17 20:23:43 +02:00

moodblog

Valid RSS! Valid CSS! Valid HTML! GPLv3 Licensed

Installation

  1. Install your preferred webserver, PHP, MariaDB/MySQL, and MySQLi.
  2. Start the MariaDB daemon.
  3. If you haven't yet, run mysql_secure_installation.
  4. Run mysql -u root -p to log in to the SQL database. (If this fails, try running it as root.)
  5. Enter the following commands. Remember to change the placeholders!
CREATE DATABASE moodblog;
GRANT ALL ON moodblog.* TO 'moodblog'@'localhost' IDENTIFIED BY 'password';
USE moodblog;
CREATE TABLE IF NOT EXISTS articles (
	ID INT NOT NULL AUTO_INCREMENT primary key,
	Time TIMESTAMP,
	Title VARCHAR(512) NOT NULL,
	Mood VARCHAR(256),
	MoodImage VARCHAR(256),
	Song VARCHAR(256),
	Message MEDIUMTEXT NOT NULL
);
FLUSH PRIVILEGES;
EXIT;
  • Tip: You can use /dev/urandom encoded with base64 to create long, strong passwords.
    base64 /dev/urandom -w 512 | head -n 1
    
  1. Use git to clone this repository to any directory in your webroot.
  • Example paths:
    /var/www/html
    /var/www/blog
    /var/www/moodblog
    /var/www/html/moodblog
    /var/www/html/blog
    
  1. Copy templates/creds.def.php to templates/creds.php. Change the placeholders.
  2. Copy templates/config.def.php to templates/config.php. Change the placeholders.
  • You really only need to change $url and $root to get a working installation, however, you really should change everything after $password.
  1. Sever your leg please. It's the greatest day.