RE: [PHP] read from comport: windows vs. linux

2005-04-07 Thread Kim Madsen
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 07, 2005 6:18 AM > > [EMAIL PROTECTED] dev]# ls -al ttyS* > > crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 This is not an acceptable solution anyway, the permissions are changed on a rebo

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Richard Lynch
On Tue, April 5, 2005 11:41 pm, Kim Madsen said: > >> -Original Message- >> From: Jay Blanchard [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, April 05, 2005 3:42 PM > > >> > having apache be the groupowner doesn´t change anything > >> You may also need to change the user/owner, depending on w

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 16:18, Kim Madsen wrote: > > Are you running SELinux? > > Jeps, that?s installed, but I have no clue, what that is and do. The > server with the problem runs Feodora 3, I?m running RH9 on my own > servers. Check the archives, there have been a lot of people having proble

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 10:43 AM > Are you running mod_security? Nops: [EMAIL PROTECTED] ~]# httpd -l Compiled in modules: core.c prefork.c http_core.c And SELinux is now disabled, still no change...

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Burhan Khalid
Kim Madsen wrote: -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:36 AM Well if "other" has "rw" then it doesn't really matter who owns the file. My point exactly! What does the php error log say? Samething as on the site: "Apr 6 10:16

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 9:36 AM > Well if "other" has "rw" then it doesn't really matter who owns the file. My point exactly! > What does the php error log say? Samething as on the site: "Apr 6 10:16:12 lage

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 14:41, Kim Madsen wrote: > User and group is apache. It made _no_ difference at all, I´m still > getting permission denied, when calling fopen :-/ > > [EMAIL PROTECTED] dev]# ls -al ttyS* > crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 Well if "other" has "rw" th

RE: [PHP] read from comport: windows vs. linux

2005-04-05 Thread Kim Madsen
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 3:42 PM > > having apache be the groupowner doesn´t change anything > You may also need to change the user/owner, depending on what Apache is > running as. User and group is apache. It

RE: [PHP] read from comport: windows vs. linux

2005-04-05 Thread Jay Blanchard
[snip] I´ve got a problem porting from windows to Linux, when I wanna read and write to the serial port. This works like a charm in windows: if (!$fp = fopen("COM1", 'w+b')) { echo "\nError! Could not open COMport - Got a terminal open?\n"; exit; } The program continues, but breaks in li

[PHP] read from comport: windows vs. linux

2005-04-05 Thread Kim Madsen
Hi there I´ve got a problem porting from windows to Linux, when I wanna read and write to the serial port. This works like a charm in windows: if (!$fp = fopen("COM1", 'w+b')) { echo "\nError! Could not open COMport - Got a terminal open?\n"; exit; } The program continues, but breaks in