Switch language
EN
FR
ES
Edit article
Slug
Category
Tags (comma separated)
Read time (minutes)
Status
Published
Draft
Featured
English
Title (en)
Summary (en)
Step-by-step guide to configuring Apache VirtualHosts, .htaccess rewrites, CORS, and php.ini for the Rediafile Developer Portal.
Content — Markdown (en)
# Deploying on a VPS with Apache This guide walks through deploying the Rediafile Developer Portal on a standard Apache + PHP VPS. ## 1. Apache VirtualHost Create a VirtualHost pointing to the `public/` directory: ```apache <VirtualHost *:80> ServerName portal.example.com DocumentRoot /var/www/rediafile-php/public <Directory /var/www/rediafile-php/public> AllowOverride All Require all granted </Directory> </VirtualHost> ``` ## 2. Enable mod_rewrite ```bash sudo a2enmod rewrite sudo systemctl reload apache2 ``` ## 3. .htaccess The included `.htaccess` rewrites all requests to `index.php` and raises PHP upload limits to 10 GB. ## 4. Permissions Make the `storage/` directory writable: ```bash sudo chown -R www-data:www-data storage/ sudo chmod 775 storage/ ```
Français
Title (fr)
Summary (fr)
Guide pas à pas pour configurer les VirtualHosts Apache, les réécritures .htaccess, CORS et php.ini pour le portail développeur Rediafile.
Content — Markdown (fr)
# Déploiement sur un VPS avec Apache Ce guide décrit le déploiement du portail développeur Rediafile sur un VPS standard Apache + PHP. ## 1. VirtualHost Apache Créez un VirtualHost pointant vers le répertoire `public/`. ## 2. Activer mod_rewrite ```bash sudo a2enmod rewrite sudo systemctl reload apache2 ``` ## 3. .htaccess Le fichier `.htaccess` inclus réécrit toutes les requêtes vers `index.php` et augmente les limites de téléversement PHP à 10 Go. ## 4. Permissions Rendez le répertoire `storage/` inscriptible : ```bash sudo chown -R www-data:www-data storage/ sudo chmod 775 storage/ ```
Español
Title (es)
Summary (es)
Tutorial paso a paso para configurar VirtualHosts de Apache, reescrituras .htaccess, CORS y php.ini.
Content — Markdown (es)
# Despliegue en un VPS con Apache Esta guía describe el despliegue del portal de desarrollador Rediafile en un VPS estándar Apache + PHP. ## 1. VirtualHost de Apache Crea un VirtualHost apuntando al directorio `public/`. ## 2. Habilitar mod_rewrite ```bash sudo a2enmod rewrite sudo systemctl reload apache2 ``` ## 3. .htaccess El archivo `.htaccess` incluido reescribe todas las peticiones a `index.php` y aumenta los límites de subida de PHP a 10 GB. ## 4. Permisos Haz escribible el directorio `storage/`: ```bash sudo chown -R www-data:www-data storage/ sudo chmod 775 storage/ ```
Save draft
Close