I tested on Ubuntu and it works straight away. Is there any PHP configuration that would specifically prevent this from working?
-----Original Message----- From: Ivan Habunek [mailto:ivan.habu...@gmail.com] Sent: Tuesday, August 16, 2011 2:20 PM To: Log4PHP User Subject: Re: Multiple servers writing to the same file That's strange. I just tried it (windows) and it works fine. Try specifying the full file path, just in case. Something like: <param name="file" value="/home/user/myLog.log" /> Regards, Ivan On 16.8.2011. 20:15, Michael Sole wrote: > Thanks. > > I made the correction but still no luck. The file would be made in the > same folder as the script that calls it right? > > I pastebined my code for reference http://pastebin.com/r9XVataM > > But really I just copied and pasted it. > > -----Original Message----- > From: Ivan Habunek [mailto:ivan.habu...@gmail.com] > Sent: Tuesday, August 16, 2011 2:13 PM > To: Log4PHP User > Subject: Re: Multiple servers writing to the same file > > No, that's fine. You don't need any PHP extensions to log to files, > and it works with the default PHP config. > > Regards, > Ivan > > On 16.8.2011. 20:05, Michael Sole wrote: >> Just an FYI I am running this on Gentoo with PHP 5.3.x >> >> I have PEAR installed, I am wondering if there are any other PHP >> packages or configurations required to make this be able to write > files. >> >> *From:*Ivan Habunek [mailto:ivan.habu...@gmail.com] >> *Sent:* Tuesday, August 16, 2011 9:34 AM >> *To:* Log4PHP User >> *Subject:* Re: Multiple servers writing to the same file >> >> That should work fine because the file is locked each time before >> writing to it (exclusive lock). >> >> I haven't tested this on a NAS setup, but I have tested it by having >> two processes log continuously to the same log file on a local disk >> and this works ok. >> >> Let us know if you run into any problems. >> >> Regards, >> Ivan >> >> On 16 August 2011 15:26, Michael Sole<ms...@gold-mobile.com >> <mailto:ms...@gold-mobile.com>> wrote: >> >> If I were to have a NAS and mount a folder on 2 different servers to >> a > >> folder on the NAS could I use log4php to write to the same file from >> both servers? >> >> The goal is to have 1 log file from 2 servers in a load balanced > array. >> >> *_______________* >> >> *Michael F. Sole* >> ms...@gold-mobile.com<mailto:ms...@gold-mobile.com> >> >> Office: 732.632.8801, ext. 261<tel:732.632.8801%2C%20ext.%20261> >> Mobile: 516.592.3683<tel:516.592.3683> >> >> Fax: 732.632.3599<tel:732.632.3599> >> >> *Gold Mobile* >> www.gold-mobile.com<http://www.gold-mobile.com/>** >> >> *Mobile Health Tech Group* >> www.mobilehealthtech.md<http://www.mobilehealthtech.md/> >> >> This e-mail and any files transmitted are intended solely for the use >> of the individual or entity to whom they are addressed, and for the >> use of Gold Mobile. Any other use is strictly prohibited. >> >