ltsp-cluster-control not working with PHP7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ltsp-cluster-control (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
OS: Ubuntu 16.04.2 LTS
Package : ltsp-cluster-
Further packages : apache2, PHP7
The script "ltsp-cluster-
--- snip ---
if($CONFIG[
header("Location: http://".$prefix.
}else{
header("Location: https://".$prefix.
}
--- snap ---
This error avoids "admin.php" to be executed.
Using the CLI and callig the admin.php manually, I get the error message (some warnings omitted here) :
--- snip ---
php /usr/share/
...
PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /usr/share/
Stack trace:
#0 /usr/share/
#1 /usr/share/
#2 /usr/share/
#3 {main}
thrown in /usr/share/
--- snap ---
Same problem here: (ubuntu 16.04 and PHP7)
php -f /usr/share/
PHP Notice: Undefined index: ldap_host in /usr/share/
PHP Notice: Undefined index: ldap_version in /usr/share/
PHP Notice: Undefined index: auth_state in /usr/share/
PHP Notice: Undefined index: auth_state in /usr/share/
PHP Notice: Undefined index: HTTP_X_
PHP Notice: Undefined index: HTTP_HOST in /usr/share/
PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /usr/share/
Stack trace:
#0 /usr/share/
#1 /usr/share/
#2 /usr/share/
#3 {main}
thrown in /usr/share/
Hope ltsp-cluster people can do some upgrade here.
I solved this problem by installing PHP5.6 parallel with PHP7: ======= ======= ======= ======= ======= ======= ======= ======= mod-php5. 6
=======
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6 php5.6-mysql php5.6-pgsql php-gettext php5.6-mbstring php-mbstring php-xdebug libapache2-
sudo a2dismod php7.0
sudo a2enmod php5.6
Restart the Apache2 and Postgresql:
sudo service apache2 restart
sudo service postgresql restart
Open your Firefox and go to the admin web page.
http:// ltsp1/ltsp- cluster- control/ Admin/admin. php
its working now for me.
Ubuntu 16.04 LTS
Dariosh Rizi