Installation Guide
Follow these steps to install ASKFM.pro on your server:
Prepare Database
Create a MySQL database and user with full privileges to the database.
CREATE DATABASE askfm_pro;
CREATE USER 'askfm_pro_user'@'localhost' IDENTIFIED BY 'secure_password';
GRANT ALL PRIVILEGES ON askfm_pro.* TO 'askfm_pro_user'@'localhost';
FLUSH PRIVILEGES;
Upload Application Files
Download and extract the application archive to your web server's document root.
cd /var/www/html
unzip askfmpro.zip -d askfmpro
Install Dependencies
Install PHP and JavaScript dependencies:
composer install --optimize-autoloader --no-dev
npm install
npm run production
Configure Environment
Set up the environment file and configure database settings:
cp .env.example .env
nano .env
Update these values in the .env
file:
DB_HOST=localhost
DB_DATABASE=askfm_pro
DB_USERNAME=askfm_pro_user
DB_PASSWORD=secure_password
Run Setup Commands
Execute these commands to complete setup:
php artisan key:generate
php artisan storage:link
php artisan migrate
php artisan db:seed --class=AdminSeeder
The AdminSeeder creates an admin account with credentials: admin:password
Optional Demo Data
To populate the database with sample data:
composer require fakerphp/faker --dev
php artisan db:seed
Start Application
For development, you can use:
php artisan serve
For production, configure your web server (Nginx/Apache) to point to the public
directory.