How to Fix the Issue That VirtualBox Cannot be Opened But Indicating a PHP error?

TOS application, TNAS PC, TNAS mobile
Post Reply
User avatar
TMzethar
TerraMaster Team
Posts: 1223
Joined: 27 Oct 2020, 16:43

How to Fix the Issue That VirtualBox Cannot be Opened But Indicating a PHP error?

Post by TMzethar »

Applicable Version:
TOS 5

Applicable Models:
All TNAS models (excluding F2-210, F4-210 models)

Symptoms:
When VirtualBox is enabled, a PHP error appears on the page. As shown in the image:
Image

Cause of Failure:
This problem is usually caused by errors in the PHP configuration file. Generally, VirtualBox should run as your custom superuser, but for unknown reasons, the superuser in the configuration file has been mistakenly changed to root. The specific reason for the problem is still under investigation.

Solution:
1. Log in to your TNAS via SSH. https://forum.terra-master.com/cn/viewt ... =79&t=1511
2. Execute the following command: /etc/init.d/php-fpm restart If an error message appears in the red box in the image, proceed to step 3:
Image

3. Execute the following command to change root back to your superuser:

Code: Select all

vi /etc/nginx/php-fpm.conf
Before Modification:
Image

Press the "i" key to enter edit mode.
Use the arrow keys to move the cursor to the position that needs to be modified, delete "root", and enter the name of your superuser.
Press the ESC key to exit edit mode, and then press "Shift" + ":".
After the colon ":" appears, type "wq", then press Enter to save the configuration and exit.

After Modification:
Image

4. Please execute the following command to restart the PHP service:

Code: Select all

/etc/init.d/php-fpm restart
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Post Reply

Return to “Applications”