Deploy NexForo on VPS, cPanel Shared Hosting, or Localhost
Upload and extract NexForo_v1.0.0.zip to your server:
cd /var/www unzip NexForo_v1.0.0.zip mv NexForo /var/www/nexforo
cd /var/www/nexforo chmod -R 775 storage bootstrap/cache chown -R www-data:www-data .
composer install --optimize-autoloader --no-dev
For Nginx (Advanced - Site at root, App at /forum or /demo):
server {
listen 80;
server_name yourdomain.com;
root /var/www/site-root;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Laravel App at /forum
location ^~ /forum {
alias /var/www/nexforo/public;
try_files $uri $uri/ @forum;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/nexforo/public/index.php;
}
}
location @forum { rewrite /forum/(.*)$ /forum/index.php?/$1 last; }
# Laravel App at /demo (Mirror)
location ^~ /demo {
alias /var/www/nexforo/public;
try_files $uri $uri/ @demo;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/nexforo/public/index.php;
}
}
location @demo { rewrite /demo/(.*)$ /demo/index.php?/$1 last; }
}
For Apache:
<VirtualHost *:80>
ServerName yourdomain.com
DocumentRoot /var/www/nexforo/public
<Directory /var/www/nexforo/public>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/nexforo-error.log
CustomLog ${APACHE_LOG_DIR}/nexforo-access.log combined
</VirtualHost>
mod_rewrite is enabled: sudo a2enmod rewrite && sudo systemctl restart apache2Open https://yourdomain.com in your browser. The AJAX installer will guide you through:
sudo certbot --nginx -d yourdomain.com
Login to cPanel โ File Manager โ Navigate to public_html. Upload NexForo_v1.0.0.zip and extract it.
If installing in a subfolder, update your domain's document root to point to the public folder:
cPanel โ Domains โ Modify โ Document Root: /public_html/nexforo/public
.htaccess in root:
RewriteEngine On RewriteRule ^(.*)$ public/$1 [L]
cPanel โ MySQL Databases:
youruser_nexforo)cPanel โ Select PHP Version โ Set PHP 8.2+ and enable all required extensions (bcmath, mbstring, pdo_mysql, etc.)
cPanel โ Terminal (or SSH):
cd ~/public_html/nexforo composer install --optimize-autoloader --no-dev
vendor folder from a local Composer install.Visit https://yourdomain.com โ The wizard will handle everything else.
cd C:\projects unzip NexForo_v1.0.0.zip
cd NexForo composer install
cp .env.example .env php artisan key:generate
php artisan serve
Open http://127.0.0.1:8000 โ The installer will launch automatically.
/adminContact us at nexforo.official@gmail.com or WhatsApp +91 9861606292