BartekSz95 / phpvirtualbox

A web interface to manage and access Virtualbox machines.
Other
57 stars 16 forks source link

PHP problem in Debian 12 and PHP version 8.2.7 #10

Closed didzejj closed 11 months ago

didzejj commented 1 year ago

Hi, I have a problem with phpvirtualbox Version 7.0 (Release Candidate 1). When I try to login I receive "An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password). Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message. ..."

My system is Debian 12, PHP version 8.2.7 and VirtualBox installd ist 7.0.10. This version should be work with PHP 8.2, but I don't know what about 8.2.7 version.

How can I resolve it?

Regards

BartekSz95 commented 12 months ago

I'm using newest PHP version on Debian testing and Windows Server, this works on both without problem, so I don't know what is wrong with files on your server. I don't change config.php file, this is still the same file like on original repository.

PS. If you are uploading files via FTP, change file type from ASCII to binary because it's sounds like problem with file type than with this script.

didzejj commented 11 months ago

What kind of www server do you use ?

BartekSz95 commented 11 months ago

What kind of www server do you use ?

Newest version of Apache 2.4.

didzejj commented 11 months ago

As mine. I have 2.4.57. Ok, I'll try to find a way. Thanks. Ps. Are you from Poland Bartek ?

didzejj commented 11 months ago

I found solution: missing packages php-xml php8.2-xml . After I installed those packages all works fine. Regards

BartekSz95 commented 11 months ago

I found solution: missing packages php-xml php8.2-xml . After I installed those packages all works fine. Regards

Good to hear that the problem was with this dependence.