Page 1 of 1

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

Posted: 26 Feb 2024, 15:42
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

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

Posted: 23 Dec 2024, 21:33
by star
TMzethar wrote: 26 Feb 2024, 15:42
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.
The error why this happens is if you install virtualbox with a user that is admin but not the super user.

if you install it with the super user it will work :)