[GH-ISSUE #41] On Ubuntu 16.04 LTS seems not working #26

Open
opened 2026-02-28 00:40:13 +03:00 by kerem · 20 comments
Owner

Originally created by @haizen007 on GitHub (Jan 10, 2017).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/41

I made a fresh install from 1.2.0 -> 1.3.0 and from Ubuntu 14.04 -> 16.04.
On the old server everything was fine.
Now, on the new Ubuntu, both LG versions doesn't works and I don't know why.
when I click on "Run Test" nothing happens.
Yes, I followed the config.sh -> "Installation is complete"
Running on apache 2.4.

http://lg.yonathan.com.br

Originally created by @haizen007 on GitHub (Jan 10, 2017). Original GitHub issue: https://github.com/telephone/LookingGlass/issues/41 I made a fresh install from 1.2.0 -> 1.3.0 and from Ubuntu 14.04 -> 16.04. On the old server everything was fine. Now, on the new Ubuntu, both LG versions doesn't works and I don't know why. when I click on "Run Test" nothing happens. Yes, I followed the config.sh -> "Installation is complete" Running on apache 2.4. [http://lg.yonathan.com.br](http://lg.yonathan.com.br)
Author
Owner

@Backtogeek commented on GitHub (Jan 10, 2017):

I am having the same issue on Debian 8 64bit, I have compared it with a known working install on CentOS 7 everything matches up.

<!-- gh-comment-id:271724507 --> @Backtogeek commented on GitHub (Jan 10, 2017): I am having the same issue on Debian 8 64bit, I have compared it with a known working install on CentOS 7 everything matches up.
Author
Owner

@havok2 commented on GitHub (Jan 24, 2017):

I had the same problem. Changed directories to the LookingGlass subdir and ran the configure.sh script again, and everything worked again.

<!-- gh-comment-id:274705416 --> @havok2 commented on GitHub (Jan 24, 2017): I had the same problem. Changed directories to the LookingGlass subdir and ran the configure.sh script again, and everything worked again.
Author
Owner

@haizen007 commented on GitHub (Jan 25, 2017):

Move assets to the LookingGlass sub dir? I think I did not understand...

<!-- gh-comment-id:275127755 --> @haizen007 commented on GitHub (Jan 25, 2017): Move assets to the LookingGlass sub dir? I think I did not understand...
Author
Owner

@Backtogeek commented on GitHub (Jan 25, 2017):

I see, I have no idea why it is required by I copied the 'assets' directory in to the LookingGlass directory, reran the config and it works fine now.

Edit: scrap that, its a problem with the LookingGlass/ratelimit.db

If you change rate limit to 0 in Config.php everything works again (obviously that disables rate limiting)

<!-- gh-comment-id:275137090 --> @Backtogeek commented on GitHub (Jan 25, 2017): I see, I have no idea why it is required by I copied the 'assets' directory in to the LookingGlass directory, reran the config and it works fine now. Edit: scrap that, its a problem with the LookingGlass/ratelimit.db If you change rate limit to 0 in Config.php everything works again (obviously that disables rate limiting)
Author
Owner

@haizen007 commented on GitHub (Jan 25, 2017):

it is not working for me. http://lg.yonathan.com.br

<!-- gh-comment-id:275152107 --> @haizen007 commented on GitHub (Jan 25, 2017): it is not working for me. [http://lg.yonathan.com.br](http://lg.yonathan.com.br)
Author
Owner

@Backtogeek commented on GitHub (Jan 25, 2017):

did you set $rateLimit = (int) '0'; in Congif.php

?

<!-- gh-comment-id:275153309 --> @Backtogeek commented on GitHub (Jan 25, 2017): did you set $rateLimit = (int) '0'; in Congif.php ?
Author
Owner

@haizen007 commented on GitHub (Jan 25, 2017):

Yes

// IPv4 address
$ipv4 = '104.238.129.33';
// IPv6 address (can be blank)
$ipv6 = '2001:19f0:300:4165::64';
// Rate limit
$rateLimit = (int) '0';
// Site name (header)
$siteName = 'LookingGlass';
// Site URL
$siteUrl = 'http://lg.yonathan.com.br';
// Server location
$serverLocation = 'New Jersey, NY - USA';
// Test files
$testFiles = array();
$testFiles[] = '10MB';
$testFiles[] = '100MB';
$testFiles[] = '1000MB';
// Theme
$theme = 'cerulean';

<!-- gh-comment-id:275176475 --> @haizen007 commented on GitHub (Jan 25, 2017): Yes > // IPv4 address > $ipv4 = '104.238.129.33'; > // IPv6 address (can be blank) > $ipv6 = '2001:19f0:300:4165::64'; > // Rate limit > $rateLimit = (int) '0'; > // Site name (header) > $siteName = 'LookingGlass'; > // Site URL > $siteUrl = 'http://lg.yonathan.com.br'; > // Server location > $serverLocation = 'New Jersey, NY - USA'; > // Test files > $testFiles = array(); > $testFiles[] = '10MB'; > $testFiles[] = '100MB'; > $testFiles[] = '1000MB'; > // Theme > $theme = 'cerulean';
Author
Owner

@telephone commented on GitHub (Jan 26, 2017):

Sorry for the delay, I haven't tested LG on Ubuntu 16.04 yet, but my guess is it's a permission based issue.

I'll leave a quote from a previous issue: https://github.com/telephone/LookingGlass/issues/32#issuecomment-103438233

The problem is permission (SUID) based. The short of it is ping and MTR need root permission to open a socket, but some OS' have tighter privileges which prevent your web user (www-user) from accessing the commands.

Try these commands:

sudo chmod u+s `which ping`
sudo chmod u+s `which ping6`
sudo chmod u+s `which mtr`

You can try the above for the commands that do not work. If the issue still persists I'll have a look on 16.04.

<!-- gh-comment-id:275539078 --> @telephone commented on GitHub (Jan 26, 2017): Sorry for the delay, I haven't tested LG on Ubuntu 16.04 yet, but my guess is it's a permission based issue. I'll leave a quote from a previous issue: https://github.com/telephone/LookingGlass/issues/32#issuecomment-103438233 > The problem is permission (SUID) based. The short of it is ping and MTR need root permission to open a socket, but some OS' have tighter privileges which prevent your web user (www-user) from accessing the commands. > > Try these commands: > > ``` bash > sudo chmod u+s `which ping` > sudo chmod u+s `which ping6` > sudo chmod u+s `which mtr` > ``` You can try the above for the commands that do not work. If the issue still persists I'll have a look on 16.04.
Author
Owner

@haizen007 commented on GitHub (Jan 27, 2017):

I tried and still not working.

Not sure if I'm doing something wrong, but seems pretty simple.
I've been using LG for a long time without any problem on 14.04 LTS, but now I'm completely lost to figure out.

error_log:

[Fri Jan 27 19:44:28.272886 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: PHP Notice: Array to string conversion in /home/lg.yonathan.com.br/public_html/ajax.php on line 44, referer: http://lg.yonathan.com.br/

[Fri Jan 27 19:44:28.273123 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: PHP Notice: Undefined property: Telephone\LookingGlass::$Array in /home/lg.yonathan.com.br/public_html/ajax.php on line 44, referer: http://lg.yonathan.com.br/

[Fri Jan 27 19:44:28.273132 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Function name must be a string in /home/lg.yonathan.com.br/public_html/ajax.php:44, referer: http://lg.yonathan.com.br/

[Fri Jan 27 19:44:28.273136 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: Stack trace:, referer: http://lg.yonathan.com.br/

[Fri Jan 27 19:44:28.273140 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: #0 {main}, referer: http://lg.yonathan.com.br/

[Fri Jan 27 19:44:28.273144 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: thrown in /home/lg.yonathan.com.br/public_html/ajax.php on line 44, referer: http://lg.yonathan.com.br/

<!-- gh-comment-id:275782271 --> @haizen007 commented on GitHub (Jan 27, 2017): I tried and still not working. Not sure if I'm doing something wrong, but seems pretty simple. I've been using LG for a long time without any problem on 14.04 LTS, but now I'm completely lost to figure out. error_log: > [Fri Jan 27 19:44:28.272886 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: PHP Notice: Array to string conversion in /home/lg.yonathan.com.br/public_html/ajax.php on line 44, referer: http://lg.yonathan.com.br/ >[Fri Jan 27 19:44:28.273123 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: PHP Notice: Undefined property: Telephone\\LookingGlass::$Array in /home/lg.yonathan.com.br/public_html/ajax.php on line 44, referer: http://lg.yonathan.com.br/ >[Fri Jan 27 19:44:28.273132 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Function name must be a string in /home/lg.yonathan.com.br/public_html/ajax.php:44, referer: http://lg.yonathan.com.br/ >[Fri Jan 27 19:44:28.273136 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: Stack trace:, referer: http://lg.yonathan.com.br/ >[Fri Jan 27 19:44:28.273140 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: #0 {main}, referer: http://lg.yonathan.com.br/ >[Fri Jan 27 19:44:28.273144 2017] [fcgid:warn] [pid 1199] [client 200.175.74.182:28945] mod_fcgid: stderr: thrown in /home/lg.yonathan.com.br/public_html/ajax.php on line 44, referer: http://lg.yonathan.com.br/
Author
Owner

@dalenoe commented on GitHub (Jan 28, 2017):

I'm seeing the same thing on ubuntu 16

<!-- gh-comment-id:275852319 --> @dalenoe commented on GitHub (Jan 28, 2017): I'm seeing the same thing on ubuntu 16
Author
Owner

@dalenoe commented on GitHub (Jan 28, 2017):

This is the culprit, haven't found a fix yet though.

PHP Fatal error: Uncaught Error: Function name must be a string in /var/www/html/LookingGlass/ajax.php:44

Missing php module? php not able to execute shell commands? I have looked at the permissions on /bin/ping and such and those look fine.

<!-- gh-comment-id:275853136 --> @dalenoe commented on GitHub (Jan 28, 2017): This is the culprit, haven't found a fix yet though. PHP Fatal error: Uncaught Error: Function name must be a string in /var/www/html/LookingGlass/ajax.php:44 Missing php module? php not able to execute shell commands? I have looked at the permissions on /bin/ping and such and those look fine.
Author
Owner

@dalenoe commented on GitHub (Jan 28, 2017):

I'm starting to point the finger at PHP versions. Ubuntu 16 is using php7.x whereas all the errors I am seeing mention php5.6

<!-- gh-comment-id:275853623 --> @dalenoe commented on GitHub (Jan 28, 2017): I'm starting to point the finger at PHP versions. Ubuntu 16 is using php7.x whereas all the errors I am seeing mention php5.6
Author
Owner

@dalenoe commented on GitHub (Jan 28, 2017):

A quick fix, is uninstalling php7, and installing 5.6.

It's definetely the PHP versions.

<!-- gh-comment-id:275853839 --> @dalenoe commented on GitHub (Jan 28, 2017): A quick fix, is uninstalling php7, and installing 5.6. It's definetely the PHP versions.
Author
Owner

@dalenoe commented on GitHub (Jan 28, 2017):

@haizen007 Try my fix above in the last comment. =)

<!-- gh-comment-id:275853897 --> @dalenoe commented on GitHub (Jan 28, 2017): @haizen007 Try my fix above in the last comment. =)
Author
Owner

@haizen007 commented on GitHub (Jan 28, 2017):

@dalenoe I thought it was that, but I prefer php7 instead of the old 5.6.
I can install the old one and change this virtual server to run on 5.6.
Anyway, I suppose that the LG should be improved to be able to run with new releases of PHP.

My current php -v:
PHP 7.0.13-0ubuntu0.16.04.1 (cli) ( NTS )

<!-- gh-comment-id:275854259 --> @haizen007 commented on GitHub (Jan 28, 2017): @dalenoe I thought it was that, but I prefer php7 instead of the old 5.6. I can install the old one and change this virtual server to run on 5.6. Anyway, I suppose that the LG should be improved to be able to run with new releases of PHP. My current php -v: PHP 7.0.13-0ubuntu0.16.04.1 (cli) ( NTS )
Author
Owner

@Backtogeek commented on GitHub (Jan 28, 2017):

I obviously had a different issue related to the ratelimit.db

I cant believe we got to this stage and the OP just now thinks it is relevant to mention it is php7, haha.

<!-- gh-comment-id:275854702 --> @Backtogeek commented on GitHub (Jan 28, 2017): I obviously had a different issue related to the ratelimit.db I cant believe we got to this stage and the OP just now thinks it is relevant to mention it is php7, haha.
Author
Owner

@matthiasvdh commented on GitHub (Feb 3, 2017):

For PHP 7 compatibility you might want to try the changes in the fork by MartinVerges:

github.com/MartinVerges/LookingGlass@175f48a9c3

Additionaly, if you are using sqlite as well, make sure to install the necessary dependencies for using sqlite on PHP 7.0.

<!-- gh-comment-id:277240176 --> @matthiasvdh commented on GitHub (Feb 3, 2017): For PHP 7 compatibility you might want to try the changes in the fork by MartinVerges: https://github.com/MartinVerges/LookingGlass/commit/175f48a9c32b2ec6f3aa7a2f84aee0b91399dd5b Additionaly, if you are using sqlite as well, make sure to install the necessary dependencies for using sqlite on PHP 7.0.
Author
Owner

@dalenoe commented on GitHub (Feb 3, 2017):

Awesome. I will take a look at that this weekend.

On Fri, Feb 3, 2017 at 6:54 AM, matthiasvdh notifications@github.com
wrote:

For PHP 7 compatibility you might want to try the changes in the fork by
MartinVerges:

MartinVerges@175f48a
https://github.com/MartinVerges/LookingGlass/commit/175f48a9c32b2ec6f3aa7a2f84aee0b91399dd5b

Additionaly, if you are using sqlite as well, make sure to install the
necessary dependencies for using sqlite on PHP 7.0.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/telephone/LookingGlass/issues/41#issuecomment-277240176,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7gQLXNqXtzoYrP7yL2xRsanoGlEtafks5rYyNugaJpZM4Lf5_l
.

<!-- gh-comment-id:277246546 --> @dalenoe commented on GitHub (Feb 3, 2017): Awesome. I will take a look at that this weekend. On Fri, Feb 3, 2017 at 6:54 AM, matthiasvdh <notifications@github.com> wrote: > For PHP 7 compatibility you might want to try the changes in the fork by > MartinVerges: > > MartinVerges@175f48a > <https://github.com/MartinVerges/LookingGlass/commit/175f48a9c32b2ec6f3aa7a2f84aee0b91399dd5b> > > Additionaly, if you are using sqlite as well, make sure to install the > necessary dependencies for using sqlite on PHP 7.0. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/telephone/LookingGlass/issues/41#issuecomment-277240176>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AA7gQLXNqXtzoYrP7yL2xRsanoGlEtafks5rYyNugaJpZM4Lf5_l> > . >
Author
Owner

@ztang commented on GitHub (Nov 25, 2017):

Hi,

I have met the same problem in Ubuntu 16.04 LTS. And I have fixed it. Here I illustrate some steps, maybe it can be helpful.

  1. Open PHP error log.
    vim /etc/php.ini
    Find display_errors, and changed to On. Then restart the webserver.

  2. Run the code. Get the error information.
    For example, in my case, the error is proc_open() has been disabled for security reason.

  3. Fix the problem.
    Edit the php.ini again, and find disable_functions = exec,system,dl,passthru,chown,shell_exec,popen,proc_open, remove proc_open here. Restart the webserver.

<!-- gh-comment-id:346942718 --> @ztang commented on GitHub (Nov 25, 2017): Hi, I have met the same problem in Ubuntu 16.04 LTS. And I have fixed it. Here I illustrate some steps, maybe it can be helpful. 1. Open PHP error log. `vim /etc/php.ini` Find `display_errors`, and changed to `On`. Then restart the webserver. 2. Run the code. Get the error information. For example, in my case, the error is `proc_open() has been disabled for security reason`. 3. Fix the problem. Edit the `php.ini` again, and find `disable_functions = exec,system,dl,passthru,chown,shell_exec,popen,proc_open`, remove `proc_open` here. Restart the webserver.
Author
Owner

@SoraKasvgano commented on GitHub (Apr 29, 2020):

Hi,

I have met the same problem in Ubuntu 16.04 LTS. And I have fixed it. Here I illustrate some steps, maybe it can be helpful.

  1. Open PHP error log.
    vim /etc/php.ini
    Find display_errors, and changed to On. Then restart the webserver.
  2. Run the code. Get the error information.
    For example, in my case, the error is proc_open() has been disabled for security reason.
  3. Fix the problem.
    Edit the php.ini again, and find disable_functions = exec,system,dl,passthru,chown,shell_exec,popen,proc_open, remove proc_open here. Restart the webserver.

How to uninstall lookingglass....thanks...

<!-- gh-comment-id:621073991 --> @SoraKasvgano commented on GitHub (Apr 29, 2020): > Hi, > > I have met the same problem in Ubuntu 16.04 LTS. And I have fixed it. Here I illustrate some steps, maybe it can be helpful. > > 1. Open PHP error log. > `vim /etc/php.ini` > Find `display_errors`, and changed to `On`. Then restart the webserver. > 2. Run the code. Get the error information. > For example, in my case, the error is `proc_open() has been disabled for security reason`. > 3. Fix the problem. > Edit the `php.ini` again, and find `disable_functions = exec,system,dl,passthru,chown,shell_exec,popen,proc_open`, remove `proc_open` here. Restart the webserver. How to uninstall lookingglass....thanks...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LookingGlass#26
No description provided.