Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: Running Meshlium software on Linux
PostPosted: Mon Aug 23, 2010 1:31 pm 

Joined: Mon Aug 23, 2010 1:12 pm
Posts: 4
Hi,

I tried to run Meshlium software on Linux. I installed the software on /var/www/html/mesh1 directory as given below:

[root@localhost mesh1]# pwd
/var/www/html/mesh1
[root@localhost mesh1]# ls -l
total 24
drwxrwxr--. 9 root root 4096 2010-08-23 12:54 core
-rw-rw-r--. 1 root root 1372 2010-08-23 12:53 index.php
-rw-rw-r--. 1 root root 2932 2010-08-23 13:56 login.php
drwxrwxr--. 8 root root 4096 2009-09-28 21:04 plugins
[root@localhost mesh1]# who am i
root pts/0 2010-08-23 12:27 (192.168.165.196)

I have executed the command * sudo chown -R root:root /var/www/html/mesh1 *

I called the following from the browser: http://localhost/mesh1
When index.php is called, the following needs to be executed: *include_once 'core/functions/check_login.php';*. But the file check_login.php is not being called.

Please help.

regards,
Siva


Top
 Profile  
 
 Post subject: Re: Running Meshlium software on Linux
PostPosted: Tue Aug 24, 2010 1:32 pm 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7814
Hi, i follow the steps you can find at:

http://www.libelium.com/development/mes ... talation#1

Copy the downloaded tgz into /var/www
manu@hormiga:~$ sudo cp /tmp/manager_system_2.0.tgz /var/www/

Make a directory for this app
manu@hormiga:/var/www$ sudo mkdir MS20

Move into this directory
manu@hormiga:/var/www$ sudo mv manager_system_2.0.tgz MS20/.
manu@hormiga:/var/www$ cd MS20/


Make sure the www-data group exists and password is not required by sudo
manu@hormiga:/var/www$ cat /etc/group | grep www
www-data:x:33:
manu@hormiga:/var/www$ sudo cat /etc/sudoers | grep www
%www-data ALL=NOPASSWD: ALL


Extract tgz into directory and change owner
manu@hormiga:/var/www/$ sudo chown -R www-data:www-data MS20/
manu@hormiga:/var/www/$ cd MS20
manu@hormiga:/var/www/MS20$ ls -l
total 4
drwxr-xr-- 4 www-data www-data 4096 ago 24 13:13 meshlium


Then, from web browser you can write the URL: http://localhost/MS20/

And it works.

I see, you install the application into /var/www/html/mesh1 and the URL you write is http://localhost/mesh1.

But, the URL must be http://localhost/html/mesh1, is'nt it?

Regards


Top
 Profile  
 
 Post subject: Re: Running Meshlium software on Linux
PostPosted: Wed Aug 25, 2010 1:50 pm 

Joined: Sat Aug 07, 2010 8:39 pm
Posts: 6
Is it not possible to run meshilum on windows based machines if it is a browser based application?
Regards,
Priyank


Top
 Profile  
 
 Post subject: Re: Running Meshlium software on Linux
PostPosted: Wed Aug 25, 2010 1:56 pm 

Joined: Mon Aug 23, 2010 1:12 pm
Posts: 4
Hi,

Thanks for the response. In fact, I have gone through the guidelines given at http://www.libelium.com/development/mes ... talation#1

To answer your question: "But, the URL must be http://localhost/html/mesh1, is'nt it?"
- But somehow, in my system the "http://localhost" is somehow mapped to "But, the URL must be http://localhost/html".

I'm able to give some *echo "hello";* and it works. My only issue is including files from sub-directories.

regards,
Siva


Top
 Profile  
 
 Post subject: Re: Running Meshlium software on Linux
PostPosted: Wed Aug 25, 2010 2:43 pm 

Joined: Mon Aug 23, 2010 1:12 pm
Posts: 4
SORRY. THERE WAS AN ERROR IN MY PREVIOUS POST. CORRECTING THE SAME HERE....

Hi,

Thanks for the response. In fact, I have gone through the guidelines given at http://www.libelium.com/development/mes ... talation#1

To answer your question: "But, the URL must be http://localhost/html/mesh1, is'nt it?"
- But somehow, in my system the "http://localhost" is somehow mapped to "http://localhost/html".

I'm able to give some *echo "hello";* in mesh1/index.php and it prints. My only issue is including files from sub-directories like *include "core/globals/users.php";*.

regards,
Siva


Top
 Profile  
 
 Post subject: Re: Running Meshlium software on Linux
PostPosted: Wed Aug 25, 2010 3:06 pm 

Joined: Mon Aug 23, 2010 1:12 pm
Posts: 4
Hi,

Further to my post above, I tried the following steps.

[siva1@localhost ~]$ cp /usr/mesh/manager_system_2.0.tgz /var/www/
[siva1@localhost ~]$ ls -l /var/www/
total 1700
drwxr-xr-x. 2 siva1 root 4096 2009-10-28 00:46 cgi-bin
drwxr-xr-x. 3 siva1 root 4096 2010-07-29 13:03 error
drwxr-xr-x. 5 siva1 root 4096 2010-08-18 17:39 html
drwxr-xr-x. 3 siva1 root 4096 2010-07-29 13:10 icons
-rw-r--r--. 1 siva1 root 1311 2010-08-18 16:00 index.php
-rw-r--r--. 1 siva1 root 609 2010-08-18 16:21 login_screen.php
-rw-r--r--. 1 siva1 siva1 1697946 2010-08-25 18:30 manager_system_2.0.tgz
drwxr-xr-x. 14 siva1 root 4096 2010-07-29 13:11 manual
drwxrwxr-x. 2 siva1 siva1 4096 2010-08-25 18:17 MS21
drwxr-xr-x. 2 siva1 root 4096 2010-08-12 03:19 usage
[siva1@localhost ~]$ cd /var/www/
[siva1@localhost www]$ sudo mkdir MS20
[sudo] password for siva1:
siva1 is not in the sudoers file. This incident will be reported.
[siva1@localhost www]$ sudo mv manager_system_2.0.tgz MS20/.
[sudo] password for siva1:
siva1 is not in the sudoers file. This incident will be reported.
[siva1@localhost www]$ cd MS20
-bash: cd: MS20: No such file or directory
[siva1@localhost www]$

Please note that I'm not able to create MS20 using 'sudo mkdir' command. What could be the problem?

regards,
Siva


Top
 Profile  
 
 Post subject: Re: Running Meshlium software on Linux
PostPosted: Thu Aug 26, 2010 9:51 pm 

Joined: Wed Sep 30, 2009 8:48 pm
Posts: 13
Siva you have to add siva1 user to sudoers using visudo. That is not a problem with manager system but with your linux configuration.

In google you'll find a lot of information but you can start here:

http://www.debianhelp.co.uk/sudo.htm


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use