Installation Guide

Complete installation guide for PostUno social media management platform


Important:

πŸ“‹ Installation Overview
PostUno installation involves 5 simple steps that work on any platform:

1.Extract files
to your server directory
2.Configure domain document root
to point to /public folder (CRITICAL!)
3.Setup server
(skip if already configured)
4.Create database
for PostUno
5.Run installation wizard
to complete setup


Step 1: Extract PostUno Files


πŸ“ File Extraction
For Local Development

macOS (Valet):     ~/Sites/postuno/
XAMPP (Windows):  C:\xampp\htdocs\postuno\
XAMPP (Mac):     /Applications/XAMPP/htdocs/postuno/
WAMP:           C:\wamp64\www\postuno\
MAMP:           /Applications/MAMP/htdocs/postuno/

For Live Server


Upload and extract files to your hosting:

cPanel/Shared:  public_html/  (for main domain)
                 public_html/postuno/  (for subdomain)
VPS/Dedicated:  /var/www/postuno/
Custom Path:    /your/custom/path/postuno/
Important:

⚠️ Most Common Installation Error!
Your domain
MUST
point to the /public folder,
Not
the root PostUno folder. This is the #1 reason installations fail!

Understanding the Folder Structure


After extracting PostUno, your folder structure looks like this:

postuno/                    ← Root folder (DO NOT point domain here!)
β”œβ”€β”€ app/
β”œβ”€β”€ bootstrap/
β”œβ”€β”€ config/
β”œβ”€β”€ database/
β”œβ”€β”€ public/             ← βœ… YOUR DOMAIN MUST POINT HERE!
β”‚   β”œβ”€β”€ index.php       ← This is the entry point
β”‚   β”œβ”€β”€ assets/
β”‚   └── ...
β”œβ”€β”€ resources/
β”œβ”€β”€ routes/
β”œβ”€β”€ storage/
β”œβ”€β”€ vendor/
β”œβ”€β”€ .env
└── ...

❌ WRONG Configuration (Will NOT Work)

Domain: yourdomain.com
Points to: /home/username/public_html/     ❌ WRONG!

Result: 404 Error or blank page

βœ… CORRECT Configuration (Will Work)

Domain: yourdomain.com
Points to: /home/username/public_html/public     βœ… CORRECT!

Result: PostUno works perfectly!

Step 2: Configure Domain Document Root


⚠️ This step is REQUIRED for live servers!

🌐 cPanel (Most Common)


🌐 cPanel: Change Document Root
πŸ“ Where to Find This Setting

cPanel β†’ Domains β†’ Select your domain β†’ Document Root
Step-by-Step Instructions

1. Log in to your cPanel

2. Find and click "Domains" or "Addon Domains"

3. Click "Manage" next to your domain

4. Find "Document Root" setting

5. Change it from: /home/username/public_html

6. Change it to: /home/username/public_html/public

7. Click "Update" or "Save"


For Subdomain Installation


If PostUno is in a subfolder (e.g., public_html/postuno/):

/home/username/public_html/postuno/public
Important:

πŸ’‘ Can't Find Document Root Setting?
Contact your hosting provider and ask them to:
"Please set my domain document root to point to the /public folder inside my PostUno installation."

Step 3: Server Setup (Optional)


(Skip if you already have Apache/Nginx/PHP configured)

Important:

πŸ’‘ Already have a server running?
If you already have Apache/Nginx/Valet configured and PHP 8.2+ installed, skip to Database Setup

🍎 macOS Valet Setup


🍎 macOS Valet
Install Valet

# Install Homebrew (if not installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install PHP 8.2
brew install [email protected]

# Install Composer
brew install composer

# Install Valet
composer global require laravel/valet
valet install

Setup Domain

# Navigate to your Sites directory
cd ~/Sites/postuno

# Link the site
valet link postuno

# Your site will be available at: http://postuno.test

πŸ’» XAMPP Setup


πŸ’» XAMPP
Download & Install XAMPP

1. Download XAMPP from apachefriends.org

2. Install XAMPP with PHP 8.2 or higher

3. Start Apache and MySQL services
Configure Document Root
Access your site at:

http://localhost/postuno/install

🌐 cPanel Hosting


🌐 cPanel
File Upload

1. Login to cPanel

2. Open File Manager

3. Navigate to public_html

4. Upload and extract PostUno files

Set Permissions


Set folder permissions to 755:
1.storage/
2.bootstrap/cache/
3.public/

Important:

🚨 Don't Forget!
After uploading files, you MUST configure the document root (Step 2 above) to point to the /public folder!

Step 4: Create Database


🌐 phpMyAdmin

1. Open phpMyAdmin (usually at http://localhost/phpmyadmin)

2. Click "Databases" tab

3. Create new database named postuno_db

4. Select utf8mb4_unicode_ci collation

5. Click "Create"

πŸ“Š cPanel MySQL Databases


Create Database

1. In cPanel, find and click "MySQL Databases"

2. Under "Create New Database":

Enter database name: postuno
Click "Create Database"

Create User

1. Under "MySQL Users":

Username: postuno_user
Create a strong password
Click "Create User"

Add User to Database

1. Under "Add User to Database":

Select your database and user
Click "Add"
Check "ALL PRIVILEGES"
Click "Make Changes"
Important:

πŸ“ Save These Details
Database Host:
localhost
Database Name:
cpanelusername_postuno
Database Username:
cpanelusername_postuno_user
Database Password:
[your chosen password]

Note: cPanel automatically prefixes your username to database and user names

🐬 MySQL Command Line


🐬 MySQL/MariaDB

# Login to MySQL
mysql -u root -p

# Create database
CREATE DATABASE postuno_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

# Create user (optional)
CREATE USER 'postuno_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON postuno_db.* TO 'postuno_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 5: Run Installation Wizard


πŸ§™β€β™‚οΈ Installation Wizard

Access Installation
Open your browser and navigate to:

Local Server:
  Valet: http://postuno.test/install
  XAMPP: http://localhost/postuno/install

Live Server:
  Domain: http://yourdomain.com/install
  IP:     http://your.server.ip/install

πŸ›‘οΈInstallation Process


πŸ“Š Step 1: System Requirements Check

πŸ—„οΈ Step 2: Database Configuration

Click "Test Connection" to verify before proceeding.

πŸ‘€ Step 3: Admin Account Setup

βœ… Step 4: Installation Complete

Important:

πŸŽ‰ Installation Complete!
PostUno is now installed and ready to use. Next steps:

1.Configure Social Media APIs
2.Learn How to Use PostUno
3.Customize for Your Needs


← System Requirements ← Configuration Guide

PostUno > Troubleshooting

Troubleshooting

Common issues and their solutions


Common Installation Issues
🚨 404 Not Found / Document Root Issues

Important:

Getting 404 errors or "file not found" when accessing PostUno


Solution:


Root Cause: Web server document root is not pointing to PostUno's /public directory

Fix Options:

  1. Move contents of /public to document root (Recommended for shared hosting)

  2. Configure virtual host (Recommended for VPS/dedicated)

  3. Use .htaccess redirect (Quick fix)

Important:

# Option 4:
.htaccess redirect (place in public_html/) RewriteEngine On RewriteRule ^(.*)$ public/$1 [L]

πŸ—„οΈ Database Connection Errors

Important:

1."SQLSTATE[HY000] [1045] Access denied"
2."SQLSTATE[HY000] [2002] No such file or directory"
3."Database does not exist"

Solutions:

Check Database Credentials: # Test connection manually mysql -h localhost -u your_username -p your_database_name
Verify Database Exists: SHOW DATABASES;
Check User Permissions: SHOW GRANTS FOR 'your_username'@'localhost'; 

πŸ“ž Getting Help

Important:

1.Platform:
XAMPP, cPanel, VPS, Valet
2.Error message:
Exact text or screenshot
3.PHP version:
Run php -v
4.Server type:
Apache, Nginx
5.Document root:
Current configuration
6.Installation step:
Where it failed

πŸ“žContact Support
πŸ“–Knowledge Base