Does one site need a different PHP version than the rest of your plan? Set it per domain.
Here's how
- Log in to DirectAdmin: open your plan in your client area and click Open DirectAdmin. You're signed in right away.
- Open Select PHP version (under Extra Features), or type "Select PHP" in the search field.
- Click Per Domain Settings at the top and choose the domain or subdomain.
- Turn on Isolation and choose the PHP version for that domain.
- Click Save.
Per Domain Settings doesn't work for your situation? Then put a .htaccess file in that site's folder with: <FilesMatch "\.php$"> SetHandler application/x-lsphp82 </FilesMatch> (82 = PHP 8.2; 83 = PHP 8.3).
Was this article helpful?