🚨 Application Error - Requirements Check

✅ All Requirements Met!

All system requirements are satisfied. If you're still seeing errors, check the error details below.

Error Details

Error Type: Core Files Error

Message: Failed opening required '/var/web/formstr.com/www/vendor/composer/../myclabs/deep-copy/src/DeepCopy/deep_copy.php' (include_path='.:/usr/local/lib/php')

File: /var/web/formstr.com/www/vendor/composer/autoload_real.php

Line: 41

✅ Complete Requirements Checklist

✅ PHP Version
Required: 7.4 or higher
Current: 8.2.32
✅ Composer Dependencies
Required: vendor/autoload.php
Current: Present
✅ Data Directory
Required: Must exist and be writable
Current: OK
Path: /var/web/formstr.com/www/data
✅ Output Directory
Required: Must exist and be writable
Current: OK
Path: /var/web/formstr.com/www/output
✅ Uploads Directory
Required: Must exist and be writable
Current: OK
Path: /var/web/formstr.com/www/uploads
✅ JSON Extension
Required: php-json
Current: Loaded
✅ MBString Extension
Required: php-mbstring
Current: Loaded
✅ FileInfo Extension
Required: php-fileinfo
Current: Loaded
✅ GD Extension
Required: php-gd (for image processing)
Current: Loaded
✅ ZIP Extension
Required: php-zip (for PDF processing)
Current: Loaded
✅ Web PHP Runtime
Required: Any web-capable PHP SAPI (Apache/FPM/CGI)
Current: fpm-fcgi

📁 Critical Files Status

vendor/autoload.php:
✓ Exists
✓ Readable ✓ Writable
/var/web/formstr.com/www/vendor/autoload.php
composer.json:
✓ Exists
✓ Readable ✓ Writable
/var/web/formstr.com/www/composer.json
mvp/index.php:
✓ Exists
✓ Readable ✓ Writable
/var/web/formstr.com/www/mvp/index.php
data/mvp.json:
✓ Exists
✓ Readable ✓ Writable
/var/web/formstr.com/www/data/mvp.json

🔍 Server Diagnostic Information

PHP Version:
8.2.32
PHP SAPI:
fpm-fcgi
Server Software:
nginx/1.31.1
Document Root:
/var/web/formstr.com/www
Script Name:
/error-check.php
Request URI:
/error-check.php?type=Core%20Files%20Error&message=Failed+opening+required+%27%2Fvar%2Fweb%2Fformstr.com%2Fwww%2Fvendor%2Fcomposer%2F..%2Fmyclabs%2Fdeep-copy%2Fsrc%2FDeepCopy%2Fdeep_copy.php%27+%28include_path%3D%27.%3A%2Fusr%2Flocal%2Flib%2Fphp%27%29&file=%2Fvar%2Fweb%2Fformstr.com%2Fwww%2Fvendor%2Fcomposer%2Fautoload_real.php&line=41
Server Name:
_
Script Filename:
/var/web/formstr.com/www/error-check.php
Current Directory:
/var/web/formstr.com/www
File Permissions:
0644
Detected Base Path:
/

🔧 Complete Installation & Fix Guide

Step-by-Step Fix Instructions:
  1. SSH into your server
  2. Install Composer (if missing):
    curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer
  3. Navigate to project directory:
    cd /var/web/formstr.com/www
  4. Install PHP dependencies:
    composer install --no-dev --optimize-autoloader
  5. Create required directories:
    mkdir -p data output uploads logs && chmod 755 data output uploads logs
  6. Install missing PHP extensions:
    apt-get update && apt-get install -y php-json php-mbstring php-fileinfo php-gd php-zip
    Or for CentOS/RHEL: yum install -y php-json php-mbstring php-fileinfo php-gd php-zip
  7. Check PHP-FPM status (for 502 errors):
    systemctl status php-fpm
    systemctl start php-fpm
    systemctl enable php-fpm
  8. Check PHP-FPM socket path matches nginx config:
    ls -la /var/run/php/php*-fpm.sock
    Check nginx config file and ensure fastcgi_pass matches this socket path
  9. Restart services:
    systemctl restart php-fpm && systemctl restart nginx
  10. Check error logs:
    tail -f /var/log/php-fpm/error.log
    tail -f /var/log/nginx/error.log

⚠️ Common Error Solutions

  • 502 Bad Gateway:
    PHP-FPM not running or wrong socket path. Check: systemctl status php-fpm
    Verify socket exists: ls -la /var/run/php/php*-fpm.sock
    Check nginx config matches: grep fastcgi_pass /etc/nginx/sites-enabled/*
  • 500 Internal Server Error:
    Check PHP error logs: tail -50 /var/log/php-fpm/error.log
    Check nginx error log: tail -50 /var/log/nginx/error.log
  • Permission Denied:
    Fix permissions: chmod -R 755 /var/web/formstr.com/www
    Fix ownership if needed: chown -R www-data:www-data /var/web/formstr.com/www
  • Class not found / Composer error:
    Run: cd /var/web/formstr.com/www && composer install
  • Directory not writable:
    Fix: chmod 755 data output uploads logs
Try Application Again Go to Homepage

Note: This diagnostic page checks all system requirements. Copy the commands above and run them on your server via SSH to fix any missing requirements.

Share this page URL with your system administrator: https://www.formstr.com/error-check.php?type=Core%20Files%20Error&message=Failed+opening+required+%27%2Fvar%2Fweb%2Fformstr.com%2Fwww%2Fvendor%2Fcomposer%2F..%2Fmyclabs%2Fdeep-copy%2Fsrc%2FDeepCopy%2Fdeep_copy.php%27+%28include_path%3D%27.%3A%2Fusr%2Flocal%2Flib%2Fphp%27%29&file=%2Fvar%2Fweb%2Fformstr.com%2Fwww%2Fvendor%2Fcomposer%2Fautoload_real.php&line=41