WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
87 stars 37 forks source link

[BUG] Undefined variable in fm-install.php #548

Closed MeCJay12 closed 2 years ago

MeCJay12 commented 2 years ago

Replace everything between stars with current version of your facileManager and module installations:
fM Version : 4.2.0


(BUG | ISSUE) Expected Behavior: Connects to MySQL database successfully and completes install

(BUG | ISSUE) Actual Behavior: DB connection web page says "ERROR: Could not connect to MySQL" and apache error.log says "[Wed Feb 02 04:45:08.308153 2022] [php7:notice] [pid 11243] [client 192.168.2.10:58070] PHP Notice: Undefined variable: install_enable_ssl in /var/www/html/fm-install.php on line 289, referer: http://power.cshaheen.tech/fm-install.php"

(BUG | ISSUE) Steps to reproduce: Starting with a fresh install of Ubuntu 20: sudo apt -y update sudo apt-get -y install tar wget tzdata php php-curl php-mysql apache2 sudo mkdir /tmp/fm sudo wget http://facilemanager.com/download/facilemanager-complete-$Version.tar.gz sudo tar -xzf facilemanager-complete-$Version.tar.gz -C /tmp/fm/ sudo rm -r /var/www/html sudo mv /tmp/fm/facileManager/server /var/www/html sudo rm -r /tmp/fm sudo a2enmod rewrite sudo systemctl restart apache2

WillyXJ commented 2 years ago

Thanks for the PHP error notice. That will be fixed in the next release. However, the error is only a notice and it does not prevent the app from connecting to MySQL. I've tested the clean install successfully. This looks like your webserver cannot connect to the MySQL server (firewall, MySQL not running, etc.).

MeCJay12 commented 2 years ago

You're right