<h4>Server Migration from 51.161.13.142 to 148.113.189.152</h4><ul><li>Migrated entire platform to new server with PHP 8.1</li><li>Replaced 1200+ hardcoded paths with dynamic <code>BASEPATH_</code> constant (<code>rtrim($_SERVER['DOCUMENT_ROOT'], '/')</code>)</li><li>Added <code>HTMLBASEPATH</code> constant for parent directory reference</li><li>Fixed 430+ autoloader paths to use absolute <code>rtrim($_SERVER['DOCUMENT_ROOT'],'/').'/controller/spl_autoload_register.php'</code></li><li>Centralized error logging to <code>/var/log/youportal_errors.log</code> with <code>error_reporting(E_ALL)</code></li><li>Applied conditional <code>session_start()</code> checks across all files to prevent double-session errors</li><li>Added null coalescing operators (<code>??</code>) throughout for PHP 8.1 strict null handling</li><li>Created symlink <code>demo_youportal → youportal</code> for backwards compatibility</li><li>Configured Apache vhost at <code>152.youportal.lcl</code></li><li>Loaded environment variables via <code>vlucas/phpdotenv</code> from <code>.env</code> file</li></ul>