Hello, I'm using aaPanel Pro. I have websites and WordPress sites that I created before I started using sub-accounts. Now, due to the need for work sharing, I want to distribute these websites and WordPress sites by creating other sub-accounts. When I asked aaPanel's AI, it mentioned operations that aren't available in the panel (I'll attach the link below). How can I do this?
aapanel version 8.0.1
aaPanel AI answer;
Hello! This is a common requirement for team collaboration. In aaPanel, you can distribute website management permissions to sub-accounts without transferring actual ownership. Let me guide you through the process:
Method 1: Create Sub-Accounts with Website Permissions (Recommended)
Step 1: Create Sub-Accounts
Log in to your aaPanel main account
Go to Panel Settings → User Management (or Sub-accounts)
Click Add Sub-account
Fill in:
Username
Password
Email (optional)
Permissions: Select specific websites this sub-account can manage
Step 2: Assign Website Permissions
When creating/editing the sub-account, you can select:
Website Management: Choose which websites they can access
Database Management: Assign related databases
FTP Management: Assign FTP accounts if needed
DNS Management: If applicable
File Manager: Access to specific directories
Step 3: Sub-Account Login
Sub-accounts log in at the same panel URL
They use their own credentials
They only see the websites/resources you assigned
Method 2: Transfer Website Ownership (More Permanent)
If you want to fully transfer ownership:
For Each Website:
Go to Website → Select the site → Settings
Change the Owner/Run User to the new sub-account's system user
Update file permissions:
chown -R new_user:www /www/wwwroot/your-site.com
Update PHP-FPM pool configuration to use the new user
For WordPress Sites Specifically:
Based on best practices for multi-site isolation:
Component Action
wp-config.php chmod 600, owner = sub-account user
wp-content/ chmod 750, owner = sub-account user
uploads/ Keep readable by www group, restrict write
Database Create new DB user, assign to sub-account
Important Considerations
⚠️ Security Notes:
Don't share main admin credentials - always use sub-accounts
Limit permissions - only give access to what's needed
Audit regularly - check sub-account activity logs
Backup before transfer - always backup websites and databases
📋 Permission Matrix Example:
Role Websites Databases FTP Panel Settings
Developer A Site 1, 2 DB 1, 2 Yes No
Developer B Site 3, 4 DB 3, 4 Yes No
Content Manager Site 1-4 No No No
Quick Checklist Before Distribution
Create sub-accounts with strong passwords
Assign specific websites to each sub-account
Transfer database access permissions
Update file ownership if needed
Test sub-account login and access
Document which sites belong to which team member
Set up backup schedules for each site
Would you like me to help you with any specific part of this process? For example:
Creating a script to batch-update file permissions for multiple WordPress sites?
Setting up proper isolation between WordPress sites for different sub-accounts?
Configuring database user permissions for each sub-account?
Let me know how many websites you need to distribute and I can provide more tailored guidance! 🚀