diff --git a/server/php/.htaccess b/server/php/.htaccess
index 9e7981a..709dee9 100644
--- a/server/php/.htaccess
+++ b/server/php/.htaccess
@@ -1,22 +1,15 @@
# Security settings for Multi-User Transcription Server
-
-# Deny access to data directory
-
- Require all denied
-
+# Compatible with both mod_php and php-fpm
# Deny access to config file directly (if accessed via URL)
Require all denied
-# Enable PHP error logging (disable display for production)
-php_flag display_errors Off
-php_flag log_errors On
-
-# Set upload limits
-php_value upload_max_filesize 1M
-php_value post_max_size 1M
+# Deny access to .json data files
+
+ Require all denied
+
# Disable directory listing
Options -Indexes
@@ -29,3 +22,7 @@ Options -Indexes
# Set MIME types
AddType application/json .json
AddType text/event-stream .php
+
+# NOTE: PHP settings (display_errors, upload limits) must be configured in:
+# - For php-fpm: /etc/php/X.X/fpm/pool.d/www.conf or php.ini
+# - For mod_php: Can use php_flag/php_value directives here
diff --git a/server/php/data/index.php b/server/php/data/index.php
new file mode 100644
index 0000000..73eb43b
--- /dev/null
+++ b/server/php/data/index.php
@@ -0,0 +1,5 @@
+
+
+
+ Server Diagnostic - Multi-User Transcription
+
+
+
+
+ 🔧 Server Diagnostic
+
+ =');
+ ?>
+
+
PHP Version
+
+
Version:
+
+
Minimum required: PHP 7.4.0
+
+
+
+
+
+
Server API
+
ℹ INFO
+
SAPI:
+
Type:
+
+
✓ Running under PHP-FPM. Note: php_flag/php_value directives in .htaccess won't work. Configure PHP settings in php.ini or FPM pool config.
+
+
+
+
+
+
Storage Directory
+
+
Path:
+
Exists:
+
Writable:
+
+
Fix: Run: mkdir -p && chmod 755
+
+
+
+
+
+
PHP Extensions
+
+
+
All required extensions loaded
+
+
Missing extensions:
+
+
+
+
+
+
Server Information
+
ℹ INFO
+
Server:
+
Document Root:
+
Script Path:
+
+
+
+
+
API Endpoint Test
+
ℹ INFO
+
Info endpoint: server.php?action=info
+
Test this endpoint to verify the API is accessible
+
+
+
+
+
Server-Sent Events (SSE) Test
+
Testing...
+
Connecting to SSE endpoint...
+
+
+
+
+
Common Issues & Solutions
+
+ - Disconnected Status: Check that server.php is accessible and SSE test above succeeds
+ - 403 Forbidden: Check file permissions (644 for files, 755 for directories)
+ - 500 Internal Server Error: Check PHP error logs for details
+ - CORS Errors: Ensure ENABLE_CORS is true in config.php
+ - PHP-FPM Issues: Check that PHP-FPM is running and configured correctly
+
+
+
+
+
+