# How to Host on Cloudpanel, I installed but site is broken

**URL:** <https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270>\
**Category:** Hosting farmOS\
**Created:** [April 4, 2025, 8:29am UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270 "2025-04-04T08:29:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbxlive](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vbxlive](https://farmos.discourse.group/u/vbxlive)\
**Post date:** [April 4, 2025, 8:29am UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/1 "2025-04-04T08:29:38Z")

</div>

I am New to FarmOS , I am Using Vultr VPS currently i run my all sites and projects through Cloudpanel.so how i want to install farmOS on Cloudpanel ,it has drupal and all opensource software supports and plug and play opration,so i didnt find tutorial regarding this how to install on cloudpanel.

P.S- I Installed using packaged release tar file, i inserted that to in my webroot , then i go to my site/web folder installation done , but site is broken and when i click to any menu 404 not found error showing looks like nginx issue because htaccess file not support cloudpanel using nginx

below is my vhost file of nginx,help me to figureout

```auto
server {
  listen 80;
  listen [::]:80;
  listen 443 quic;
  listen 443 ssl;
  listen [::]:443 quic;
  listen [::]:443 ssl;
  http2 on;
  http3 off;
  {{ssl_certificate_key}}
  {{ssl_certificate}}
  server_name myfarm.gropiktech.in;
  {{root}}

  {{nginx_access_log}}
  {{nginx_error_log}}

  if ($scheme != "https") {
    rewrite ^ https://$host$request_uri permanent;
  }

  location ~ /.well-known {
    auth_basic off;
    allow all;
  }

  {{settings}}

  location / {
    {{varnish_proxy_pass}}
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_hide_header X-Varnish;
    proxy_redirect off;
    proxy_max_temp_file_size 0;
    proxy_connect_timeout 720;
    proxy_send_timeout 720;
    proxy_read_timeout 720;
    proxy_buffer_size 128k;
    proxy_buffers 4 256k;
    proxy_busy_buffers_size 256k;
    proxy_temp_file_write_size 256k;
  }

  location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map|mjs)$ {
    add_header Access-Control-Allow-Origin "*";
    add_header alt-svc 'h3=":443"; ma=86400';
    expires max;
    access_log off;
  }

  location ~ /\.(ht|svn|git) {
    deny all;
  }

  if (-f $request_filename) {
    break;
  }
}

server {
  listen 8080;
  listen [::]:8080;
  server_name myfarm.gropiktech.in;
  {{root}}

  include /etc/nginx/global_settings;

  try_files $uri $uri/ /index.php?$args;
  index index.php index.html;

  location ~ \.php$ {
    include fastcgi_params;
    fastcgi_intercept_errors on;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    try_files $uri =404;
    fastcgi_read_timeout 3600;
    fastcgi_send_timeout 3600;
    fastcgi_param HTTPS "on";
    fastcgi_param SERVER_PORT 443;
    fastcgi_pass 127.0.0.1:{{php_fpm_port}};
    fastcgi_param PHP_VALUE "{{php_settings}}";
  }

  if (-f $request_filename) {
    break;
  }
}

```

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [April 4, 2025, 2:47pm UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/2 "2025-04-04T14:47:25Z")

</div>

Welcome to the forum @vbxlive!

I don’t have any experience with CloudPanel, but I did a quick search for “Drupal CloudPanel” (because farmOS is a distribution of Drupal) and found this:

> **[Drupal | CloudPanel | Documentation](https://www.cloudpanel.io/docs/v2/php/applications/drupal/)**
>
> On this site, you find a guide to install Drupal on CloudPanel.

Skip to the “Creating a Drupal Project” section, and there are instructions for creating a project via `composer create-project`, which is essentially the same approach that we describe here:

> **[Building farmOS with Composer](https://farmos.org/hosting/composer/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

In the CloudPanel docs, it says to run this command (which installs Drupal 11 - not farmOS):

`php8.3 /usr/local/bin/composer create-project drupal/recommended-project:^11 -n www.domain.com`

But you would change that to this instead (which installs farmOS):

`php8.3 /usr/local/bin/composer create-project farmos/project:3.x-dev -n www.domain.com`

Please read through all the documentation on [Building farmOS with Com](https://farmos.org/hosting/composer/) to understand how everything works, and there are some additional steps in there that you will need to do.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![vbxlive](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vbxlive](https://farmos.discourse.group/u/vbxlive)\
**Post date:** [April 4, 2025, 2:48pm UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/3 "2025-04-04T14:48:56Z")

</div>

i installed successfully but site is broken issue with rewrite accesss or need additional config for rewrite nginx i dont understand

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [April 4, 2025, 2:50pm UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/4 "2025-04-04T14:50:12Z")

</div>

Also, since your are self-hosting, be sure to read through and understand how to update your farmOS instance when new versions are released!

> **[Updating farmOS](https://farmos.org/hosting/update/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

And specifically for Composer-based installs:

> **[Building farmOS with Composer](https://farmos.org/hosting/composer/#updating-dependencies)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

And most important of all: set yourself up with a backup procedure! You need to back up three things:

1. Database
2. Uploaded files (the `web/sites/default` directory)
3. The codebase (or use Git to maintain your code so it’s easy to restore)

---

<div class="post-metadata">

**Author:** ![vbxlive](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vbxlive](https://farmos.discourse.group/u/vbxlive)\
**Post date:** [April 4, 2025, 2:55pm UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/5 "2025-04-04T14:55:30Z")

</div>

here is screenshot of error

 ![farm2](https://global.discourse-cdn.com/free1/uploads/farm_os/original/2X/7/70d2a21fc56ab446455db88fe03deffa6f6fd316.jpeg)  
 ![farm1](https://global.discourse-cdn.com/free1/uploads/farm_os/original/2X/3/395d06e90483397157698ce82f93b992b6e2a295.jpeg)

Reinstalled but same issue, install correctly but only frontpage comes broken and shows 404 not found when we click on any menu

 ![farm3](https://global.discourse-cdn.com/free1/uploads/farm_os/original/2X/1/1d7d554be7e9f2154e39c666fb3c57f899ae9f97.jpeg)

---

<div class="post-metadata">

**Author:** ![aathi179](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/aathi179/32/1539_2.png) [@aathi179](https://farmos.discourse.group/u/aathi179)\
**Post date:** [April 6, 2025, 1:07am UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/6 "2025-04-06T01:07:49Z")

</div>

I think this is virtual host condition problem in nginx config file.

---

<div class="post-metadata">

**Author:** ![vbxlive](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vbxlive](https://farmos.discourse.group/u/vbxlive)\
**Post date:** [April 6, 2025, 5:09am UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/7 "2025-04-06T05:09:08Z")

</div>

yes ,how to fix this looks like mod rewrite issue

---

<div class="post-metadata">

**Author:** ![aathi179](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/aathi179/32/1539_2.png) [@aathi179](https://farmos.discourse.group/u/aathi179)\
**Post date:** [April 6, 2025, 5:10am UTC](https://farmos.discourse.group/t/how-to-host-on-cloudpanel-i-installed-but-site-is-broken/2270/8 "2025-04-06T05:10:01Z")

</div>

Could you check fastcgi is running or not?
