# How to Install Xenforo on CloudPanel: Complete Step-by-Step Guide (2024)

**URL:** <https://forum.hhf.technology/t/how-to-install-xenforo-on-cloudpanel-complete-step-by-step-guide-2024/410>\
**Category:** PHP\
**Tags:** cloudpanel, xenforo\
**Created:** [November 19, 2024, 11:11am UTC](https://forum.hhf.technology/t/how-to-install-xenforo-on-cloudpanel-complete-step-by-step-guide-2024/410 "2024-11-19T11:11:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhf.technoloy](https://forum.hhf.technology/user_avatar/forum.hhf.technology/hhf.technoloy/32/68_2.png) [@hhf.technoloy](https://forum.hhf.technology/u/hhf.technoloy)\
**Post date:** [November 19, 2024, 11:11am UTC](https://forum.hhf.technology/t/how-to-install-xenforo-on-cloudpanel-complete-step-by-step-guide-2024/410/1 "2024-11-19T11:11:58Z")

</div>

# Installing Xenforo on CloudPanel

This guide will walk you through the process of installing Xenforo on CloudPanel.

## Requirements

- CloudPanel installed and running
- MySQL/MariaDB database
- PHP 8.0 or higher
- SSH access to your server
- Domain pointed to CloudPanel IP

## Installation Steps

### 1. Create a Site in CloudPanel

 ![XenForo-2-3-4_Screenshot_19-11-2024_114557_10.24.7.96](https://forum-cdn.hhf.technology/original/1X/54a99378426da9b2ac5de3c714253f3a01770e3f.jpeg)

1. Go to **Sites**
2. Click **Add Site**
3. Enter your domain name (e.g., `xenforo.yourdomain.com`)
4. Select PHP version (recommended: PHP 8.3)
5. Choose **Generic** as the application
6. Click **Add Site**

 ![XenForo-2-3-4_Screenshot_19-11-2024_114735_10.24.7.96](https://forum-cdn.hhf.technology/original/1X/60ac5189be9f1f5de6c51f6a85a59ff1a3a5f20f.jpeg)

1. Set up SSL certificate:
  - In CloudPanel, go to **Sites** \> Your Domain \> **SSL/TLS**
  - Click **Add SSL/TLS Certificate**
  - Choose Let’s Encrypt or upload your own certificate

![ssl](https://forum-cdn.hhf.technology/original/1X/92a9a40a8f32fc9fb9499df3cf059c5a3d0ba5e5.gif)

### 2. Create a Database

 ![XenForo-2-3-4_Screenshot_19-11-2024_12310_10.24.7.96](https://forum-cdn.hhf.technology/original/1X/2646f6caef6a43daa225c62c6781a1a5500477ce.jpeg)

1. Navigate to **Databases**
2. Click **Add Database**
3. Fill in the following details:
  - Database Name: `xenforo` (or your preferred name)
  - Database User: `xenforo` (or your preferred username)
  - Password: Generate a secure password

4. Click **Add Database**  
 ![XenForo-2-3-4_Screenshot_19-11-2024_12431_10.24.7.96](https://forum-cdn.hhf.technology/original/1X/6b3a38f535ff3df82525566a954a7673e817e3a2.jpeg)

_ **You don’t need to touch the Vhost. It work perfectly fine with the current version of Xenforo** _

### 3. Download and Install Xenforo

 ![Screenshot_19-11-2024_124916_10.24.7.96](https://forum-cdn.hhf.technology/original/1X/252813e43668668cf23a6dcc7ac6ad4fe6d4fdd5.jpeg)

1. Upload the ZIP to your file manager:  

2. Now extract it to the :  
`/home/cloudpanel/htdocs/your-domain`  

### 4. Run the Installation Script

![xenfro](https://forum-cdn.hhf.technology/original/1X/7bb2c947f7067a21c5969b799f331f5de148f443.gif)

1. Open your web browser and navigate to:

```auto
https://xenforo.yourdomain.com/install

```

1. Follow the installation wizard:
  - Verify system requirements
  - Enter database credentials
  - Create admin account
  - Configure site settings

### 5. Configure PHP Settings

1. In CloudPanel, go to **Sites** \> Your Domain \> **PHP**
2. Update the following PHP settings:
  - Max execution time: 300
  - Max input time: 300
  - Memory limit: 256M
  - Upload max filesize: 64M
  - Post max size: 64M

### 6. Security Recommendations

1. Remove the install directory:

```bash
rm -rf /home/cloudpanel/htdocs/your-domain/install

```

1. Configure security headers in CloudPanel:
  - Go to **Sites** \> Your Domain \> **Vhost**
  - Add the following headers:

```nginx
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";

```

## Troubleshooting

### Common Issues

1. **Database Connection Error**

2. **Permission Issues**

3. **White Screen of Death**

## Maintenance

### Regular Updates

1. Back up your installation:

2. Update Xenforo:

Remember to regularly check for updates and maintain backups of your Xenforo installation. For production environments, consider implementing additional security measures and performance optimizations based on your specific needs.

If you need help with Cloudflare Tunnels please comment below.
