# Aakash Digital - cPanel Installation Guide

## Quick Installation (3 Steps)

### Step 1: Extract ZIP in cPanel File Manager

1. Log in to your cPanel
2. Go to **File Manager**
3. Navigate to **public_html**
4. Upload `aakash-digital-ultimate.zip`
5. Right-click → **Extract**
6. Extract to `public_html` (not a subfolder)

### Step 2: Run Setup Wizard

1. Open browser: `http://yourdomain.com/setup.php`
2. Follow the Installation Wizard
3. Enter your database credentials
4. Click "Complete Installation"

### Step 3: Configure & Launch

1. Visit your website: `http://yourdomain.com/public/`
2. Go to admin panel: `http://yourdomain.com/admin/`
3. Login: `admin` / `admin123`
4. Change admin password immediately
5. Add your content via admin panel

---

## What Gets Installed

✅ Complete website with 8 pages
✅ Admin CMS (manage everything)
✅ Multi-language support (English/Nepali)
✅ Mobile-responsive design
✅ Blog, Gallery, Testimonials
✅ Contact form with email notifications
✅ SEO optimization (sitemap, robots.txt)
✅ Dark mode toggle
✅ WhatsApp integration ready
✅ Email configuration

---

## Database Requirements

- MySQL 5.7 or higher
- Or compatible (MariaDB, etc.)
- Automatic schema creation

## PHP Requirements

- PHP 7.4 or higher
- Extensions: PDO or MySQLi
- File write permissions in config/

---

## Accessing Your Website

### Public Pages
- **Home**: http://yourdomain.com/public/
- **About**: http://yourdomain.com/public/about.php
- **Services**: http://yourdomain.com/public/services.php
- **Team**: http://yourdomain.com/public/team.php
- **Testimonials**: http://yourdomain.com/public/testimonials.php
- **Blog**: http://yourdomain.com/public/blog.php
- **Gallery**: http://yourdomain.com/public/gallery.php
- **Contact**: http://yourdomain.com/public/contact.php

### Admin Panel
- **Login**: http://yourdomain.com/admin/login.php
- **Dashboard**: http://yourdomain.com/admin/dashboard.php
- **Manage Content**: Admin → Dashboard → Quick Actions

---

## Default Login Credentials

**Username**: admin  
**Password**: admin123

⚠️ **IMPORTANT**: Change the admin password immediately after first login!

---

## File Structure

```
public_html/
├── setup.php              ← Run this first!
├── public/                ← Website frontend
│   ├── index.php          ← Homepage
│   ├── about.php          ← About page
│   ├── services.php       ← Services
│   ├── team.php           ← Team
│   ├── testimonials.php   ← Testimonials
│   ├── blog.php           ← Blog posts
│   ├── gallery.php        ← Image gallery
│   ├── contact.php        ← Contact form
│   ├── .htaccess          ← Apache configuration
│   ├── robots.txt         ← SEO robots file
│   ├── sitemap.xml.php    ← XML sitemap
│   └── uploads/           ← User uploads
├── admin/                 ← Admin CMS
│   ├── login.php          ← Admin login
│   ├── dashboard.php      ← Main dashboard
│   ├── team.php           ← Team management
│   ├── services.php       ← Services management
│   ├── testimonials.php   ← Testimonials
│   ├── blog.php           ← Blog CMS
│   ├── gallery.php        ← Gallery CMS
│   ├── settings.php       ← Configuration
│   ├── logs.php           ← Activity logs
│   └── ... (more pages)
├── config/                ← Configuration files
│   ├── config.php         ← Database config
│   ├── language.php       ← Languages (English/Nepali)
│   ├── email-service.php  ← Email system
│   ├── activity-logger.php ← Activity tracking
│   └── settings-manager.php ← Settings management
├── database/              ← Database files
│   └── schema.sql         ← Initial data & structure
└── api/                   ← REST APIs
    ├── team.php
    ├── services.php
    ├── content.php
    ├── partners.php
    └── contact.php
```

---

## Common Issues & Solutions

### Issue: Setup.php not found
**Solution**: Make sure you extracted directly to `public_html`, not in a subfolder

### Issue: Database connection error
**Solution**: 
1. Check your database credentials in setup
2. Ensure database user has CREATE privileges
3. MySQL version must be 5.7+

### Issue: Files not writable
**Solution**: In cPanel → File Manager, right-click config/ folder → Change Permissions → Set to 755

### Issue: Admin login not working
**Solution**: 
1. Check database connection
2. Ensure database schema was created
3. Clear browser cookies and try again

### Issue: Contact form not sending emails
**Solution**:
1. Go to Admin → Settings → Email Configuration
2. Configure SMTP settings (Gmail, SendGrid, etc.)
3. Enable "Send Notifications"

---

## Next Steps After Installation

### 1. Customize Your Content (Admin Panel)
- Add team members
- Add services
- Add testimonials
- Write blog posts
- Upload gallery images
- Edit site settings

### 2. Configure Email (Admin → Settings)
- SMTP host, port, credentials
- From email address
- Admin notification email
- Enable/disable notifications

### 3. Set Up SSL/HTTPS
- Go to cPanel → AutoSSL or Let's Encrypt
- Enable HTTPS
- Update Site URL in settings

### 4. Configure Domain
- Update domain in settings
- Set up favicon.ico
- Configure site logo
- Add site description

### 5. Enable Features
- Go to Admin → Settings → Features
- Enable Blog, Gallery, Testimonials
- Configure WhatsApp number
- Add Google Analytics ID

### 6. SEO Optimization
- Update page titles & descriptions
- Configure sitemap (already set up)
- Add Google Search Console
- Set up Google Analytics

---

## Security Best Practices

1. ✅ Change admin password immediately
2. ✅ Keep PHP and MySQL updated
3. ✅ Use strong admin password (mix of uppercase, numbers, symbols)
4. ✅ Set up automatic backups in cPanel
5. ✅ Enable HTTPS/SSL certificate
6. ✅ Regular backups of database
7. ✅ Monitor activity logs regularly

---

## Backing Up Your Website

### In cPanel:
1. Go to **Backups**
2. Click **Full Backup** or **Partial Backup**
3. Download to your computer
4. Store safely

### Regular Schedule:
- Daily automatic backups (set in cPanel)
- Weekly manual backups
- Monthly off-site backups

---

## Support & Documentation

- **Full Documentation**: See README.md
- **Multi-Language Setup**: See MULTILANGUAGE_GUIDE.md
- **Features Guide**: See BUILD_SUMMARY.md
- **Email Configuration**: See admin → Settings → Email

---

## Upgrading Your Website

To add more features or update:
1. Backup your current website
2. Update database schema
3. Add new pages/features
4. Test thoroughly
5. Deploy to live

---

## Getting More Help

- Check documentation files in main folder
- Review admin panel tutorials
- Verify system requirements
- Check error logs in cPanel

---

**Your website is now LIVE and READY TO USE! 🚀**

- Website: http://yourdomain.com/public/
- Admin: http://yourdomain.com/admin/
- Login: admin / admin123

Happy publishing!
