Simple Web 2.0 blog engine
Go to file
2025-01-25 23:44:41 +05:00
controllers first commit 2025-01-08 22:46:44 +05:00
core first commit 2025-01-08 22:46:44 +05:00
js first commit 2025-01-08 22:46:44 +05:00
models first commit 2025-01-08 22:46:44 +05:00
sql first commit 2025-01-08 22:46:44 +05:00
views first commit 2025-01-08 22:46:44 +05:00
config.example.php first commit 2025-01-08 22:46:44 +05:00
index.php first commit 2025-01-08 22:46:44 +05:00
LICENSE first commit 2025-01-08 22:46:44 +05:00
README.md an addition to readme 2025-01-25 23:44:41 +05:00

deadjournal

Simple Web 2.0 blog engine

How to deploy

  • Create a database in mysql/mariadb
  • Create tables using the file sql/schema.sql:
mysql -u other_user -p some_empty_database < sql/schema.sql
  • Rename config.example.php to config.php
  • Specify the DB connection details in the config.php file

How to create an admin account

Let's assume that your desired password is "adminpass123" and login is "admin". First, we should generate a hash for your password: php -r "echo password_hash('adminpass123', PASSWORD_BCRYPT) . PHP_EOL;" Copy the hash and put it to the users table in DB: mysql -u other_user -p some_empty_database

INSERT INTO users (username, password_hash)
VALUES ('admin', 'hash_value');