New IT forum Follow us on Twitter
22 May 2012, 10:24:13 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TonidoPlug2 - Now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Dreamplug, webserver and PHP question  (Read 1083 times)
Grinch
Newbie
*
Posts: 38


« on: 03 February 2012, 03:38:43 pm »

Hi all,
I've a DreamPlug with Linux Debian preinstalled (Debian Lenny with kernel 2.6.33.6).

I've to setup a web site with PHP able to interact with C application and I'm asking what can be a suitable web server  + PHP that I can install and run into the DreamPlug.

Someone have some experience and can give me some hint?

Thanks in advance and my
best regards

« Last Edit: 03 February 2012, 03:44:12 pm by Grinch » Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #1 on: 03 February 2012, 04:55:58 pm »

Apache is probably overkill for a plug Smiley
Take a look at using lighttpd with additional  php support, google 'lighttpd php debian' for some installation tutorials.
Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Grinch
Newbie
*
Posts: 38


« Reply #2 on: 03 February 2012, 05:01:03 pm »

Thank you as usual!!!

I've a first question about the web server, this is not present into the Dreamplug or yes? I don't know because into the /var/www I can see a lot of html file but when I type from a browser the http://192.168.2.101 (which is the eth0 IP on my wired network) I can see anything and the browser seems not stop... could you please clarify this point. Also I've to stop the AP wireless mode and switch to client mode before try the http://192.168.2.101 ?
Another info, when I type from the command line the halt command before powering off the device I can see into the log "Stopping web server: lighttpd" then I think that this was running then the web server is present but why I can't see the default web server page when from Fedora I use the browser point to the 192.168.2.101 address?  Huh

Question #2
If the web server isn't really installed I've found these command for Debian, I think with this I can install the web server and also the php module:

apt-get update
apt-get install lighttpd php5-cgi

I like to ask you before step away just to be sure about it.

Some site suggest also to install the MySQL but I've some doubt about the resource required.

sudo apt-get install mysql-server mysql-client lighttpd php5-cgi php5-mysql

could you please give me your think about?

Bye
The Grinch
« Last Edit: 03 February 2012, 06:12:57 pm by Grinch » Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #3 on: 04 February 2012, 12:50:01 am »

lighttpd has probably terminated because of an error, check the log....
Code:
dreamplug-debian:~# tail /var/log/lighttpd/error.log

If you have configured eth0 as 192.168.2.101, it should make no difference to your web browser whether the Wifi is running or not.

Code:
dreamplug-debian:~# dpkg -l
Will list all the packages that are already installed

Code:
dreamplug-debian:~# dpkg -l | grep mysql
Will list all the packages but only show the lines that contain 'mysql' in them
Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Grinch
Newbie
*
Posts: 38


« Reply #4 on: 05 February 2012, 10:54:37 am »

If you have configured eth0 as 192.168.2.101...

Thank you for reply, well tomorrow morning I'll did all the check you suggest, at now I can just say that I've not configured the eth0 as static IP, this IP is assigned dinamically by the network and I know it just because I've did the ifconfig command after boot and login into the DreamPlug.

Tomorrow I'll do all the check you suggest to me and I will report back my result.

Thanks as usual.

Best regards
The Grinch
Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #5 on: 05 February 2012, 06:35:24 pm »

Quote
IP is assigned dinamically
That's OK as long as the Wifi is using a different network IP (and you know where to point your browser).
« Last Edit: 05 February 2012, 06:55:44 pm by Confusticated » Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Grinch
Newbie
*
Posts: 38


« Reply #6 on: 06 February 2012, 10:50:41 am »

lighttpd has probably terminated because of an error, check the log....
Code:
dreamplug-debian:~# tail /var/log/lighttpd/error.log

If you have configured eth0 as 192.168.2.101, it should make no difference to your web browser whether the Wifi is running or not.

Code:
dreamplug-debian:~# dpkg -l
Will list all the packages that are already installed

Code:
dreamplug-debian:~# dpkg -l | grep mysql
Will list all the packages but only show the lines that contain 'mysql' in them


Dear Confusticated,
here below some first result.

Question #1
dreamplug-debian:~#  tail /var/log/lighttpd/error.log                          
2000-01-01 06:25:02: (server.c.1361) [note] graceful shutdown started          
2000-01-01 06:25:02: (server.c.1475) server stopped by UID = 0 PID = 2897      
2000-01-01 06:25:03: (log.c.75) server started                                  
2000-01-01 00:01:04: (log.c.75) server started                                  
2011-01-01 01:28:04: (log.c.75) server started                                  
dreamplug-debian:~#

Question #2
dreamplug-debian:~# dpkg -l                                                    

Reply is too long then I've added it into the txt file attached.

Question #3
dreamplug-debian:~# dpkg -l | grep mysql                                        
rc  libmysqlclient15off             5.0.51a-24+lenny2        MySQL database cliy
rc  mysql-common                    5.0.51a-24+lenny2        MySQL database coms
rc  mysql-server-5.0                5.0.51a-24+lenny2        MySQL database sers
rc  php5-mysql                      5.2.6.dfsg.1-1+lenny3    MySQL module for p5
dreamplug-debian:~#

Here below some additional info may be useful to better understand what's wrong:

dreamplug-debian:~# ifconfig                                                    
eth0      Link encap:Ethernet  HWaddr f0:ad:4e:00:8e:15                        
          inet addr:192.168.2.101  Bcast:192.168.2.255  Mask:255.255.255.0      
          inet6 addr: fe80::f2ad:4eff:fe00:8e15/64 Scope:Link                  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:481 errors:0 dropped:0 overruns:0 frame:0                  
          TX packets:88 errors:0 dropped:0 overruns:0 carrier:0                
          collisions:0 txqueuelen:1000                                          
          RX bytes:58631 (57.2 KiB)  TX bytes:11698 (11.4 KiB)                  
          Interrupt:11                                                          
                                                                                
eth1      Link encap:Ethernet  HWaddr f0:ad:4e:00:8e:16                        
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
          Interrupt:15                                                          
                                                                                
lo        Link encap:Local Loopback                                            
          inet addr:127.0.0.1  Mask:255.0.0.0                                  
          inet6 addr: ::1/128 Scope:Host                                        
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                              
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:0                                            
          RX bytes:280 (280.0 B)  TX bytes:280 (280.0 B)                        
                                                                                
uap0      Link encap:Ethernet  HWaddr 00:24:23:3d:a7:02                        
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0        
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
                                                                                
dreamplug-debian:~#

I've did also other tests:

dreamplug-debian:~# /etc/init.d/lighttpd start
Starting web server: lighttpd2011-08-30 11:03:02: (log.c.62) opening errorlog '/var/log/lighttpd/d
2011-08-30 11:03:02: (server.c.899) Opening errorlog failed. Going down.
.
dreamplug-debian:~#

Could you please let me know what is your think about?
Thanks as usual.

Best regards
The Grinch

* File-Reply-Question2.txt (26.41 KB - downloaded 23 times.)
« Last Edit: 06 February 2012, 11:01:18 am by Grinch » Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #7 on: 06 February 2012, 11:41:02 am »

Quote
2011-01-01 01:28:04: (log.c.75) server started
Look at the timestamp, either your clock is wrong, or this log has not been written to for a long time.

192.168.2. and 192.168.1 are different networks, the Access Point Wifi and eth0 will not interfere with eachother...

MySQL packages are already installed, so you don't need to...

Quote
Starting web server: lighttpd2011-08-30 11:03:02: (log.c.62) opening errorlog '/var/log/lighttpd/d
2011-08-30 11:03:02: (server.c.899) Opening errorlog failed. Going down.
There's the lighttpd error (is that a cut'n'paste error on the first line ?).
/etc/lighttpd/lighttpd.conf should contain the lines
Code:
## where to send error-messages to
server.errorlog            = "/var/log/lighttpd/error.log"
and the directory and logfiles should have the following permissions
Code:
dreamplug-debian:~# ls -ld /var/log/lighttpd
drwxr-x--- 2 www-data www-data 4096 2011-05-31 09:10 /var/log/lighttpd
dreamplug-debian:~# ls -l /var/log/lighttpd
total 20
-rw-r--r-- 1 www-data root 1438 2012-02-04 02:24 access.log
-rw-r--r-- 1 www-data root 5313 2012-02-06 13:08 error.log
dreamplug-debian:~#

To fix it (if required)
Code:
chown -R www-data.root /var/log/lighttpd
chmod u=xrw,g=xr,o= /var/log/lighttpd
chmod u=rw,g=r,o=r /var/log/lighttpd/*

Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Grinch
Newbie
*
Posts: 38


« Reply #8 on: 06 February 2012, 03:56:54 pm »

Hi,
here below a snippet taken from the boot of the Dreamplug.

Starting MTA: exim4.                                                            
ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system pos!
Starting Network Interface Plugging Daemon: eth0.                              
Starting web server: lighttpd2011-08-30 15:54:42: (log.c.62) opening errorlog 'd
2011-08-30 15:54:42: (server.c.899) Opening errorlog failed. Going down.        
.                                                                              
Starting internet superserver: inetd.

----

dreamplug-debian:~# ls -ld /var/log/lighttpd                                    
drwxr-x--- 2 root root 4096 2011-05-31 09:10 /var/log/lighttpd                  
dreamplug-debian:~# ls -l /var/log/lighttpd                                    
total 12                                                                        
-rw-r--r-- 1 root root   0 2011-05-31 09:10 access.log                          
-rw-r--r-- 1 root root 290 2011-05-31 09:10 error.log                          
-rw-r--r-- 1 root root 186 2011-05-31 09:10 error.log.1.gz                      
-rw-r--r-- 1 root root 606 2011-05-31 09:10 error.log.2.gz                      
dreamplug-debian:~#

----
I've also checked the conf file
dreamplug-debian:~# cat /etc/lighttpd/lighttpd.conf

...
## where to send error-messages to                                              
server.errorlog            = "/var/log/lighttpd/error.log"          
...

Regarding the date issue I've fixed it by the date command:

dreamplug-debian:~# date                                                        
Tue Aug 30 16:08:40 UTC 2011                                                    
dreamplug-debian:~# date --set 2012-02-06                                      
Mon Feb  6 00:00:00 UTC 2012                                                    
dreamplug-debian:~# date --set 17:07:00                                        
Mon Feb  6 17:07:00 UTC 2012                                                    
dreamplug-debian:~#


Then I've used your command:

dreamplug-debian:~# chown -R www-data.root /var/log/lighttpd                                                            
dreamplug-debian:~# chmod u=xrw,g=xr,o= /var/log/lighttpd                                                              
dreamplug-debian:~# chmod u=rw,g=r,o=r /var/log/lighttpd/*                                                              

then the ifconfig:

dreamplug-debian:~# ifconfig                                                                                            
eth0      Link encap:Ethernet  HWaddr f0:ad:4e:00:8e:15                                                                
          inet addr:192.168.2.101  Bcast:192.168.2.255  Mask:255.255.255.0                                              
          inet6 addr: fe80::f2ad:4eff:fe00:8e15/64 Scope:Link                                                          
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                            
          RX packets:1149 errors:0 dropped:0 overruns:0 frame:0                                                        
          TX packets:213 errors:0 dropped:0 overruns:0 carrier:0                                                        
          collisions:0 txqueuelen:1000                                                                                  
          RX bytes:126732 (123.7 KiB)  TX bytes:29349 (28.6 KiB)                                                        
          Interrupt:11                                                                                                  
                                                                                                                        
eth1      Link encap:Ethernet  HWaddr f0:ad:4e:00:8e:16                                                                
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                                            
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                                          
          collisions:0 txqueuelen:1000                                                                                  
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                                                        
          Interrupt:15                                                                                                  
                                                                                                                        
lo        Link encap:Local Loopback                                                                                    
          inet addr:127.0.0.1  Mask:255.0.0.0                                                                          
          inet6 addr: ::1/128 Scope:Host                                                                                
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                                                                      
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0                                                            
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0                                                          
          collisions:0 txqueuelen:0                                                                                    
          RX bytes:280 (280.0 B)  TX bytes:280 (280.0 B)                                                                
                                                                                                                        
uap0      Link encap:Ethernet  HWaddr 00:24:23:3d:a7:02                                                                
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0                                                
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                                                                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                                            
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                                          
          collisions:0 txqueuelen:1000                                                                                  
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
                                                        
and finally I've started the server:

dreamplug-debian:~# /etc/init.d/lighttpd start                                                                          
Starting web server: lighttpd.                                                                                          
dreamplug-debian:~#

Now seems that the server is able to start without error, but I can't reach it trough the browser at the address 192.168.2.1.

Do you have some other suggest? Thanks so much for now!

Best regards
The Grinch                                      
« Last Edit: 07 February 2012, 08:19:34 am by Grinch » Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #9 on: 06 February 2012, 06:22:51 pm »

Quote
address 192.168.2.1
192.168.2.101
Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Grinch
Newbie
*
Posts: 38


« Reply #10 on: 07 February 2012, 08:22:01 am »

Quote
address 192.168.2.1
192.168.2.101

Yes, just my typo error into the mail, the address that I've really wrote into the browser was 192.168.2.101 and the browser seems wait for a reply, there is no error message or something other just the browser wait for a reply...

Just to be sure I've also did a nmap scan from Fedora shell to the IP address of the DreamPlug in order to see the port state inside the DreamPlug  (to install nmap under Fedora by the shell simply type the command "yum install nmap") here the result:

[root@localhost ~]# nmap -v -O 192.168.2.101

Starting Nmap 5.51 ( http://nmap.org ) at 2012-02-07 10:23 CET
Initiating Ping Scan at 10:23
Scanning 192.168.2.101 [4 ports]
Completed Ping Scan at 10:23, 0.03s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 10:23
Completed Parallel DNS resolution of 1 host. at 10:23, 0.03s elapsed
Initiating SYN Stealth Scan at 10:23
Scanning 192.168.2.101 [1000 ports]
Discovered open port 8080/tcp on 192.168.2.101
Discovered open port 111/tcp on 192.168.2.101
Discovered open port 21/tcp on 192.168.2.101
Discovered open port 22/tcp on 192.168.2.101
Discovered open port 139/tcp on 192.168.2.101
Discovered open port 53/tcp on 192.168.2.101
Discovered open port 143/tcp on 192.168.2.101
Discovered open port 445/tcp on 192.168.2.101
Discovered open port 80/tcp on 192.168.2.101
Discovered open port 110/tcp on 192.168.2.101
Discovered open port 3128/tcp on 192.168.2.101
Completed SYN Stealth Scan at 10:23, 4.69s elapsed (1000 total ports)
Initiating OS detection (try #1) against 192.168.2.101
Retrying OS detection (try #2) against 192.168.2.101
Nmap scan report for 192.168.2.101
Host is up (0.0059s latency).
Not shown: 989 filtered ports
PORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh
53/tcp   open  domain
80/tcp   open  http
110/tcp  open  pop3
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
143/tcp  open  imap
445/tcp  open  microsoft-ds
3128/tcp open  squid-http
8080/tcp open  http-proxy
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Device type: general purpose
Running (JUST GUESSING): QEMU (90%)
Aggressive OS guesses: QEMU user mode network gateway (90%)
No exact OS matches for host (test conditions non-ideal).
TCP Sequence Prediction: Difficulty=17 (Good luck!)
IP ID Sequence Generation: Incremental

Read data files from: /usr/share/nmap
OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 8.95 seconds
           Raw packets sent: 2040 (92.952KB) | Rcvd: 51 (5.000KB)

[root@localhost ~]#

From this log seems the web server is working, do you've some other idea?

Thanks in advance as usual!

Best regards
The Grinch
« Last Edit: 07 February 2012, 05:32:34 pm by Grinch » Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #11 on: 07 February 2012, 08:51:48 am »

OK, lets have a look around, first reboot the plug for a clean start, open http://192.168.2.101/ using Windows Internet Explorer, and then....

Code:
tail -10 /var/log/lighttpd/error.log

Code:
tail -10 /var/log/lighttpd/access.log

Code:
tail -10 /var/log/messages

Code:
netstat -tapn
Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Grinch
Newbie
*
Posts: 38


« Reply #12 on: 07 February 2012, 09:42:06 am »

OK, lets have a look around, first reboot the plug for a clean start, open http://192.168.2.101/ using Windows Internet Explorer, and then....

Code:
tail -10 /var/log/lighttpd/error.log

Code:
tail -10 /var/log/lighttpd/access.log

Code:
tail -10 /var/log/messages

Code:
netstat -tapn

Thank, in order I've did the halt command and then removed the DreamPlug power cord, then I've reset minicom in Fedora and then I've plugged the power cord into the DreamPlug to perform the boot starting sequence then finally I'm logged into the Dreamplug.

From the booting stream I can see the DreamPlug network registration, here the snippet:

[CUT...]
Listening on LPF/eth0/f0:ad:4e:00:8e:15                                        
Sending on   LPF/eth0/f0:ad:4e:00:8e:15                                        
Sending on   Socket/fallback                                                    
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8                      
eth0: link up, 1000 Mb/s, full duplex, flow control disabled                    
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20                    
DHCPOFFER from 192.168.2.1                                                      
DHCPREQUEST on eth0 to 255.255.255.255 port 67                                  
DHCPACK from 192.168.2.1                                                        
bound to 192.168.2.101 -- renewal in 35244 seconds.                            
if-up.d/mountnfs[eth0]: waiting for interface eth1 before doing NFS mounts (war.
Internet Systems Consortium DHCP Client V3.1.1                                  
Copyright 2004-2008 Internet Systems Consortium.                                
All rights reserved.                                                            
For info, please visit http://www.isc.org/sw/dhcp/          
[CUT...]

then after the boot end I'm logged in:

dreamplug-debian login: root                                                    
Password:                                                                      
Last login: Tue Feb  7 09:19:43 UTC 2012 on ttyS0                              
Linux dreamplug-debian 2.6.33.6 #1 PREEMPT Tue Feb 8 03:18:41 EST 2011 armv5tel
                                                                                
The programs included with the Debian GNU/Linux system are free software;      
the exact distribution terms for each program are described in the              
individual files in /usr/share/doc/*/copyright.                                
                                                                                
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent              
permitted by applicable law.

Now I've started Internet Explorer directly from my Windows XP machine (the machine that I'm using also to execute VirtualBOX and the Fedora Virtual Machine) and issued the command:

http://192.168.2.101

IE return me a error, not able to show the page.

Now into the Fedora shell of the DreamPlug I wrote all the command that you have reported and into the reported sequence, here below the result:
                                                                                            
dreamplug-debian:~# tail -10 /var/log/lighttpd/error.log
2012-02-06 19:11:51: (mod_fastcgi.c.1358) [ERROR]: spawning fcgi failed.
2012-02-06 19:11:51: (server.c.908) Configuration of plugins failed. Going down.
2012-02-07 09:19:29: (log.c.75) server started
2012-02-07 09:19:29: (mod_fastcgi.c.904) bind failed for: unix:/tmp/php.socket-0 Permission denied
2012-02-07 09:19:29: (mod_fastcgi.c.1358) [ERROR]: spawning fcgi failed.
2012-02-07 09:19:29: (server.c.908) Configuration of plugins failed. Going down.
2012-02-07 10:33:58: (log.c.75) server started
2012-02-07 10:33:58: (mod_fastcgi.c.904) bind failed for: unix:/tmp/php.socket-0 Permission denied
2012-02-07 10:33:58: (mod_fastcgi.c.1358) [ERROR]: spawning fcgi failed.
2012-02-07 10:33:58: (server.c.908) Configuration of plugins failed. Going down.
dreamplug-debian:~#


dreamplug-debian:~# tail -10 /var/log/lighttpd/access.log                      

dreamplug-debian:~# tail -10 /var/log/messages                                  
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: L2CAP ver 2.14              
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: L2CAP socket layer initialid
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: RFCOMM TTY layer initialized
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: RFCOMM socket layer initiald
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: RFCOMM ver 1.11            
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: SCO (Voice Link) ver 0.6    
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: SCO socket layer initialized
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: vendor=0x2df, device=0x91052
Feb  7 10:34:03 dreamplug-debian kernel: Bluetooth: BNEP (Ethernet Emulation) v3
Feb  7 10:34:03 dreamplug-debian kernel: Bridge firewalling registered          

dreamplug-debian:~# netstat -tapn                                              
Active Internet connections (servers and established)                          
Proto Recv-Q Send-Q Local Address           Foreign Address         State      e
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:915           0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
tcp6       0      0 :::139                  :::*                    LISTEN      
tcp6       0      0 :::53                   :::*                    LISTEN      
tcp6       0      0 :::22                   :::*                    LISTEN      
tcp6       0      0 :::445                  :::*                    LISTEN      
dreamplug-debian:~#

Now I've also did a server stop and start and then read the error log, here below the result:

dreamplug-debian:~# date                                                                                                                
Tue Feb  7 11:13:02 UTC 2012                                                                                                            
dreamplug-debian:~# /etc/init.d/lighttpd stop                                                                                          
Stopping web server: lighttpd.                                                                                                          
dreamplug-debian:~# /etc/init.d/lighttpd start                                                                                          
Starting web server: lighttpd.                                                                                                          
dreamplug-debian:~# tail -10 /var/log/lighttpd/error.log                                                                                
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysqli.so' - /usr/lib/php5/20060613+lfs/mysqli.so0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo_mysql.so' - /usr/lib/php5/20060613+lfs/pdo_my0
2012-02-07 11:13:09: (server.c.1475) server stopped by UID = 0 PID = 2843                                                              
2012-02-07 11:13:12: (log.c.75) server started                                                                                          
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysql.so' - /usr/lib/php5/20060613+lfs/mysql.so: 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysqli.so' - /usr/lib/php5/20060613+lfs/mysqli.so0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo_mysql.so' - /usr/lib/php5/20060613+lfs/pdo_my0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysql.so' - /usr/lib/php5/20060613+lfs/mysql.so: 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysqli.so' - /usr/lib/php5/20060613+lfs/mysqli.so0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo_mysql.so' - /usr/lib/php5/20060613+lfs/pdo_my0
dreamplug-debian:~#

I've also attached the conf file taken from the DreamPlug by using the scp command.
Code:
scp root@192.168.2.101:/etc/lighttpd/lighttpd.conf .

for all beginner like to me this command retrieve the file at the path "/etc/lighttpd/lighttpd.conf" and copy it to the current directory on the machine where this command is being executed. Of course in my case the IP address of the DreamPlug was equal to 192.168.2.101.

Hope to be useful.

Thanks as usual!!
The Grinch


* lighttpd-conf.zip (2.13 KB - downloaded 4 times.)
* error-log.zip (0.87 KB - downloaded 4 times.)
« Last Edit: 07 February 2012, 01:09:35 pm by Grinch » Logged
PacoLM
Jr. Member
**
Posts: 98


« Reply #13 on: 07 February 2012, 11:37:20 am »

Are you executing the start and stop of the lightt as root?
Logged
Grinch
Newbie
*
Posts: 38


« Reply #14 on: 07 February 2012, 12:15:36 pm »

Are you executing the start and stop of the lightt as root?

Hi,
I think yes because I'm loggin into the DreamPlug as root user.

Into my previous post I've also added the light http web server conf file and error log file taken from the DreamPlug, may be useful for some experienced user to better know what is the trouble I'm experiencing.

Thanks also to you for your interest into my problem.
Best regards

The Grinch
« Last Edit: 07 February 2012, 01:10:13 pm by Grinch » Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!