Managing multiple PHP versions is essential for maintaining compatibility and performance across different web applications. DirectAdmin, with its CustomBuild interface, makes it easy to enable and manage PHP versions. Here’s a step-by-step guide to enabling PHP versions as an Admin user and setting them per domain.
Step 1: Login as Admin
Start by logging into your DirectAdmin control panel using your Admin credentials.
Step 2: Access CustomBuild
- Navigate to Extra Features
- Click on CustomBuild
Step 3: Configure PHP Versions
- Go to the Options tab
- Look for the custom options section
- Select the PHP Version Options
Here, configure the desired PHP versions:- php1_release – The primary PHP version (e.g., 8.1)
- php2_release, php3_release, etc. – Additional versions as required
This setup allows multiple PHP versions to be available on your server.
Step 4: Update PHP Configuration
- Go to the Update tab within CustomBuild
- Click Update All
This will apply your selected PHP configurations and install any new versions if required.
Setting a Domain’s PHP Version (User Level)
Once the admin has enabled the necessary PHP versions, individual users can assign them per domain.
Step 5: Log In as a Specific User
Use the DirectAdmin interface to log in to the user account associated with the domain.
Step 6: Assign PHP Version to Domain
- Go to Account Manager → PHP Settings
- Select the domain you want to configure
- Choose the preferred PHP version from the dropdown list
This allows domain-level flexibility, which is especially useful for hosting multiple websites that require different PHP environments.
Summary
Whether you’re an admin managing a shared hosting server or a developer deploying multiple PHP-based applications, DirectAdmin provides a simple and efficient way to control PHP versions. By following this guide, you can ensure that your server and domains are running the optimal PHP version for stability, security, and performance.
Need Expert Server Management? Let ServerAdminz Handle It for You.
From configuring PHP environments to securing and optimizing your server, our expert system administrators are available 24/7. Whether you’re running a shared hosting setup or a complex multi-site environment, we ensure seamless configuration, updates, and performance tuning.
Talk to Our Server Experts Now and streamline your PHP and server operations with confidence!