Installation Guide
Get scriptLog up and running in minutes with this comprehensive installation guide.
System Requirements
PHP
7.4 or higher
Required: pdo, pdo_mysql, json, mbstring, curlDatabase
MySQL 5.7+ / MariaDB 10.2+
utf8mb4 charset support requiredWeb Server
Apache 2.4+ / Nginx
mod_rewrite recommended for ApacheComposer
Latest stable version
For dependency managementInstallation Steps
Download scriptLog
Clone the repository or download the latest release from GitHub.
git clone https://github.com/cakmoel/Scriptlog.git
cd Scriptlog
Install Dependencies
Run Composer to install all required dependencies.
composer install
Create Database
Create a MySQL database with utf8mb4_general_ci collation.
mysql -u root -p
CREATE DATABASE scriptlog CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER 'youruser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON scriptlog.* TO 'youruser'@'localhost';
FLUSH PRIVILEGES;
Set Folder Permissions
Ensure write permissions for cache and log directories.
chmod -R 755 public/
chmod -R 777 public/cache/ public/log/
Run Installation Wizard
Open install/ in your browser and follow the setup wizard.
http://your-domain/install/
The wizard will check requirements, create tables, generate config files, and set up admin account.
Remove Installation Directory
For security, delete the install/ folder after installation.
rm -rf install/
Access Your Blog
http://your-domain/Admin Panel:
http://your-domain/admin/
Directory Structure
After extraction, you'll see the following structure:
scriptlog/
├── admin/ # Admin panel
├── api/ # REST API
├── install/ # Installation wizard
├── lib/ # Core library (80+ classes)
├── public/ # Public web root
│ ├── themes/ # Theme templates
│ ├── files/ # Uploaded files
│ ├── cache/ # Cache directory
│ └── log/ # Log directory
├── docs/ # Documentation
├── index.php # Public front controller
├── config.php # Configuration (created by installer)
└── .env # Environment variables (created by installer)
Troubleshooting
Verify your database credentials in config.php:
- Check database host (usually
localhostor127.0.0.1) - Verify username and password
- Ensure database exists and user has proper permissions
Enable mod_rewrite for Apache:
sudo a2enmod rewrite
sudo systemctl restart apache2
For Nginx, ensure the following location block exists:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
Set proper ownership for web server:
sudo chown -R www-data:www-data /var/www/scriptlog
sudo chmod -R 755 /var/www/scriptlog
sudo chmod -R 777 /var/www/scriptlog/public/cache /var/www/scriptlog/public/log