What potential issues can arise when moving a PHP project from a local environment to a server with php5-fpm + nginx installed?

One potential issue that can arise when moving a PHP project from a local environment to a server with php5-fpm + nginx installed is that the PHP version may not be compatible. To solve this, you will need to ensure that the PHP version on the server matches the version used in the local environment. Additionally, you may need to update any deprecated functions or features that are no longer supported in the newer PHP version.

// Check PHP version compatibility
if (version_compare(phpversion(), '5.6', '<')) {
    die('PHP version 5.6 or higher is required');
}

// Update deprecated functions
// Example: Replace deprecated mysql functions with mysqli