# Fix for event-login.php "File Not Found" Error

## Problem
Accessing `https://dev.scala4.com/event-login.php` returns a 404 error, even though the file exists at `/var/www/html/wordpress6/wordpress/EP/event-login.php`.

## Root Cause
The Apache `ProxyPassMatch` configuration is missing the document root path, so PHP-FPM doesn't know where to find the files.

## Solution Applied
1. ✅ Created symlink: `/var/www/html/wordpress6/wordpress/event-login.php` → `EP/event-login.php`
   This allows the file to be accessed at the root URL.

## Remaining Fix Required
The Apache `ProxyPassMatch` configuration needs to be updated. Run this command:

```bash
sudo sed -i 's|ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/run/php/php8.2-scala4.sock|fcgi://localhost/"|ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/run/php/php8.2-scala4.sock|fcgi://localhost/var/www/html/wordpress6/wordpress/$1"|' /etc/apache2/sites-available/006-wordpress-le-ssl.conf

sudo sed -i 's|ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/run/php/php8.2-scala4.sock|fcgi://localhost/"|ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/run/php/php8.2-scala4.sock|fcgi://localhost/var/www/html/wordpress6/wordpress/$1"|' /etc/apache2/sites-available/006-wordpress.conf

sudo apache2ctl configtest
sudo systemctl reload apache2
```

Or run the automated fix script:
```bash
cd /var/www/html/wordpress6/wordpress/EP
sudo ./fix-event-login-access.sh
```

## Verification
After applying the fix, test:
```bash
curl -I https://dev.scala4.com/event-login.php
```

You should get HTTP 200 instead of 404.


