Re: php5

2007-09-25 Thread Gabriel Dragffy

On 25 Sep 2007, at 00:20, Thomas Abthorpe wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 24 September 2007 18:59:00 Bill Banks wrote:

I just installed php5 but if I goto index.php it wants to download it
and not display it. What am I missing?


You are likely missing the following lines from your httpd.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps



Also make sure you compiled the apache module. If installing from  
ports it asks you. However, if you installed from a package it won't  
have this enabled. Assuming you're using apache, natch.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Gvinum and RAID 5 (again)

2007-09-25 Thread Gabriel Dragffy

Hi,

I've found out that gvinum won't let you grow a RAID 5 system without  
obliterating it first. Something that I haven't been able to  
ascertain is if gvinum will let you add discs to a RAID 5 array later  
on as hot spares?


Many thanks for so much help

Gabe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Netatalk

2007-09-24 Thread Gabriel Dragffy


On 24 Sep 2007, at 06:16, Ted Mittelstaedt wrote:



Gabriel,

Ignore Martin he doesen't know how to get it running
so he's pulling the old spurning what he cannot do
refer to the Aesop fable Fox and the Grapes for more
information.

If you run OS9 emulation under OSX you need AFP.

Many older print servers only speak AFP

AFP handles the split resource/data fork properly,
Samba does not.  You will see this in a number of
minor ways.

To get it running:

define NETATALK in kernel and recompile


cd /usr/ports/net/netatalk
make  WITH_SRVLOC=yes install

add the following in /etc/rc.conf:

slpd_enable=YES
netatalk_enable=YES
atalkd_enable=YES
cnid_metad_enable=YES
afpd_enable=YES

cd /usr/ports/net/howl
make install

cd /etc
vi rc.conf
add in
mdnsresponder_enable=YES
mdnsresponder_flags=-f /usr/local/etc/mDNSResponder.conf

then create the config file as such

vi /usr/local/etc/mDNSResponder.conf
BigMac _afpovertcp._tcp local.  548
BigMac _ssh._tcpServers. 548

MUST BE TABS BETWEEN ITEMS and NEWLINE AT END!
BigMac is your servername

test with slptool findsrvs service:service-agent
and mDNSResponder lookups

your problem is that afpd only advertises over appletalk, not over
tcp/ip.  Since your Macs are all OSX they don't listen to appletalk
announcements.  They listen to appletalk-over-tcp/ip announcements
which use the rendezevous protocol which is what mdnsresponder is
all about.

One important note - try to keep the samba shares separate
from the appletalk shares.  Samba clients do not update the
desktop file when they move/change/delete files which will result in
a corrupted desktop file. (ie: CNID database)  If that happens do  
this:



/usr/local/etc/rc.d/netatalk.sh stop

cat /usr/local/etc/AppleVolumes.default

(shares are listed at the bottom)

go to each share with the problem and rename the directory, ie:

cd /home/shares/Public
mv .AppleDB .AppleDB-temp-backup

restart netatalk

/usr/local/etc/rc.d/netatalk.sh start

verify people can mount the shares and get to their files

Delete the .AppleDB-temp-backup dirs.

Ted

PS:  Appletalk is older networking technology but there is
nothing wrong with it and it works no worse than newer
technologies.



Thank you so much for this comprehensive reply. I can see there are  
several things in there that I didn't get, as they were missed out in  
my other guides. Seems like a small nightmare setting up netatalk,  
hope it will be worth it!


Thanks again, I really appreciate it.

Gabe

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Why is sendmail in the core of FreeBSD?

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 11:22, cpghost wrote:


On Sat, 22 Sep 2007 19:30:59 +0300
Abdullah Ibn Hamad Al-Marri [EMAIL PROTECTED] wrote:


On 9/22/07, Wojciech Puchar [EMAIL PROTECTED] wrote:

i personally use only sendmail.



Yep... if it works, don't 'fix' it.


same with any other things :)


I would prefer to have postfix vs sendmail since it built with
security in mind


Ditto here. I've switched to postfix after a talk by
Wietse Venema at the SANE 1998:
  http://www.sane.nl/events/sane98/daily/19/venema.html
(postfix was still named VMailer back then)
and never looked back since. I was lucky doing so, because
soon after, there had been a flurry of sendmail exploits,
while postfix kept chugging along undisturbed. But more
importantly, its behaviour under stress and huge traffic
bursts is excellent.


I have a russian friend, he's a sysadmin, works exclusively with  
FreeBSD. He reckon Postfix is also great under pressure. Since  
sendmail is in the core of FreeBSD, does that mean it will quickly  
get security updates when exploits are found?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


packages compiled from source

2007-09-23 Thread Gabriel Dragffy
Hi, trying to find out where the complete packge files are for the  
packges that I compiled from ports. I wanted to save these somewhere  
so I wouldn't have to recompile them in the future. The handbook  
doesn't shed any light on this:(


Best regards

gabriel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: packages compiled from source

2007-09-23 Thread Gabriel Dragffy
Many thanks too all who ansered, that's really helpful. I just had a  
hard time compiling lighttpd and php5 together, so wanted to save  
them as packages to spare me the headache in the near future.


Have read the ports man I see that I can change the PACKAGES in the  
environment, but how do I change the environment. Would I edit /etc/ 
make.conf at a guess?


On 23 Sep 2007, at 15:35, Karol Kwiatkowski wrote:


Kris Kennaway wrote:

Gabriel Dragffy wrote:

Hi, trying to find out where the complete packge files are for the
packges that I compiled from ports. I wanted to save these somewhere
so I wouldn't have to recompile them in the future. The handbook
doesn't shed any light on this:(


They are not saved separately but you can create backups using
pkg_create -b.


In addition, you can use 'package' (or 'package-recursive') target
instead of 'install' to create packages automagically. In that case
target directory is set by PACKAGES variable.

Have a look at ports(7) manpage for details.

Cheers,

Karol

--
Karol Kwiatkowski   karol.kwiat at gmail dot com
OpenPGP 0x06E09309



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Netatalk

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 16:13, Martin Hepworth wrote:

Why you need netatalk - you still got some old MacOS 8/9 machines  
about?


--


no, they are all os x macbook pros. However we sometimes access over  
the internet using AFP, and this uses encrypted passwords which is  
safer. Also, afp integrates very well with the mac machines, better  
than samba and far better than NFS. I've been using FreeNAS which has  
worked well, but unfortunately freezes every few hours, so it's  
useless. Trying to build my own version of it.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID5

2007-09-23 Thread Gabriel Dragffy


On 22 Sep 2007, at 09:03, Wojciech Puchar wrote:


If you google for gvinum you'll find tutorials etc.

AFAICT, you can't have the root device on a RAID5 gvinum. Just make a
small root partition.


yes you can
__


Hi Wojciech

Would you be able to give me any tips or know of any howtos that  
explain installing freebsd root on to gvinum raid5 array? I really  
cannot find any tutorials for this :(


Many thanks

gabriel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID5

2007-09-23 Thread Gabriel Dragffy


On 22 Sep 2007, at 01:13, Maxim Khitrov wrote:


On 9/21/07, Gabriel Dragffy [EMAIL PROTECTED] wrote:

Hi all

Hoping to get some help setting up software RAID5. Guides on the
internet seem to be few and far between, and official documentation
is a little too technical. Basically I have 3 x 500GB hard drives
which I'd like to have in a raid5 configuration, using software, root
partition on their too would be a bonus. I'd be grateful for  
assistance.


Best regards

Gabriel



From what I know, you're not going to be able to boot from them.

However, a simple solution to that is to get a 64+ MB USB flash drive
and put the kernel on that. Just use fdisk and bsdlabel to write the
boot blocks. As long as the kernel has all needed drivers and you
specify which root device to use (either via kernel configuration or
/etc/fstab), that should allow you to put everything else on the RAID
array. This is how I currently do full-disk encryption on my laptop
using GELI. Kernel is outside, everything else is encrypted, same idea
for RAID.



Hi Maxim

This sounds good. How exactly did you manage to encrypt discs and  
then install freebsd there? I can just about setup software raid once  
freebsd is installed, but by then I am unable to use a hard drive  
because it already has freebsd on it.


Regards

gabe

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Netatalk

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 19:14, Martin Hepworth wrote:

Beg to differ on the AFP vs samb issues from what we use at work  
using a mixed environment (*nix, windoze and Mac's).


the filetyping goes alot better using smb than appletalk with MacOS  
X, and smb will use encrypted passwds (however poorly encoded) by  
default, and even SMB is alot faster than AFP which is horrible slow.


You'll find that using a VPN to access over the internet alot more  
secure in any case.


anyway a quick google gives this..

http://www.caboo.se/articles/2006/1/18/apple-file-sharing-via-freebsd




Thanks, I've already read that link, what was suggested didn't work.

I don't mind using smb, but I have a question or two I would be glad  
if you could answer:

Can you connect to a smb server over the internet?

For example in OS X give the address as smb://example.com?

Also, how would you get the passwords encrypted? Is this done by  
default.


Best regards

Gabe

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: packages compiled from source

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 19:51, Karol Kwiatkowski wrote:


Please try not to top-post while replying to freebsd mailing list. It
makes it hard to follow reading from the archives. Comments below.



I'm sorry, was I guilty of top-posting? Didn't mean to :P


Gabriel Dragffy wrote:

On 23 Sep 2007, at 15:35, Karol Kwiatkowski wrote:

Kris Kennaway wrote:

Gabriel Dragffy wrote:

Hi, trying to find out where the complete packge files are for the
packges that I compiled from ports. I wanted to save these  
somewhere

so I wouldn't have to recompile them in the future. The handbook
doesn't shed any light on this:(


They are not saved separately but you can create backups using
pkg_create -b.


In addition, you can use 'package' (or 'package-recursive') target
instead of 'install' to create packages automagically. In that case
target directory is set by PACKAGES variable.

Have a look at ports(7) manpage for details.


Many thanks too all who ansered, that's really helpful. I just had a
hard time compiling lighttpd and php5 together, so wanted to save  
them

as packages to spare me the headache in the near future.

Have read the ports man I see that I can change the PACKAGES in the
environment, but how do I change the environment. Would I edit
/etc/make.conf at a guess?


PACKAGES is environmental variable - you'll want to change the  
variable,

not the environment ;)

To change it system wide permanently - yes, editing /etc/make.conf  
would

be a good idea. The alternatives are setting it in your shell
environment (depends on what you use) or defining it at install time
(every time) with something like 'make PACKAGES=/some/dir package'.  
And

there are probably other methods, too :)


Thanks, I'll look in to this, glad that my wild guess wasn't too far  
wide


Regards

Gabe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID5

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 19:30, Matthew Seaman wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Roland Smith wrote:


The things that you should encrypt are /home and maybe /var.


and swap.  Encrypting the swap is really quite important.

Cheers,

Matthew



Oh you know what? I grabbed an ubuntu disc, in the installation I  
configured each of the three hard drives with a 1GB partition which  
became software RAID 1, and the rest of the space another partition  
which became RAID 5 doodah. I configured all this during the  
installation using that debian installer, booted no probs. Next thing  
was to:

sudo -i
sudo aptitude update
sudo aptitude install netatalk -y

OK, done, RAID 5 system, with the OS running on RAID 1, netatlk  
installed and working a few seconds after, total time was about 45  
minutes. I've spent 4 days chasing my tail in freebsd. Wish freebsd  
would be able to help me out with software raid in sysinstall. I'd  
still very much like to figure out how to do this in freebsd, but  
unfortunately spending two weeks to do it makes me look incompetent  
to my employers. FreeBSD is running a web/database/email server and  
doing a fantastic job for that, so it might just be a case of horses  
for courses...


Regards

Gabe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: migrate from postfix to qmail

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 05:29, Lotfi kecir wrote:


HI, thank's for your post.
to give answer to your answer: i rent a dedicated server (Fedora 6)  
witch
has qmail installed on. and in my old Server witch is in our office  
turn has

Postfix.
The new sever has as Admin panel Plesk.
I already create all email acounts and now i'm looking to transfert  
all my

user acount mailboxes.
and i don't have any idea to do it.
Thanks for your help


Yeah right. I don't have hands-on experience with any MTA other than  
Postfix, but I never read a good thing about qmail. Thing is, I work  
for a design company - we have 3 VPSs two using Plesk and another on  
extend, I noticed that behind the scenes it is Qmail for all of them.  
How come it is used by these control panels when it is so poor? Just  
a small whine from me :)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID5

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 08:42, Roland Smith wrote:


On Fri, Sep 21, 2007 at 11:50:58PM +0100, Gabriel Dragffy wrote:

Hi all

Hoping to get some help setting up software RAID5. Guides on the  
internet
seem to be few and far between, and official documentation is a  
little too
technical. Basically I have 3 x 500GB hard drives which I'd like  
to have in
a raid5 configuration, using software, root partition on their too  
would be

a bonus. I'd be grateful for assistance.


What you need for RAID5 is gvinum(8), which replaces the older vinum 
(4)

driver.



Hi, reading the BSD Handbook I did find this out and I've been trying  
to use it.



If you google for gvinum you'll find tutorials etc.


I have found a couple of tutorials but like I said it is either too  
technical, or not descriptive enough and none of them describe root  
on raid 5 :(




AFAICT, you can't have the root device on a RAID5 gvinum. Just make a
small root partition.


I read in the FreeBSD hanbook that I can have root on raid 5 by doing  
the following:
There is another option as well, to have /boot/loader (Section  
12.3.3) load the vinum kernel module early, before starting the  
kernel. This can be accomplished by putting the line:

geom_vinum_load=YES
into the file /boot/loader.conf.

This was on the following page: http://www.freebsd.org/doc/ 
en_US.ISO8859-1/books/handbook/vinum-root.html


The handbook is good, but it only describes how to do raid 0 and raid  
1, it says I can do raid 5 but doesn't describe the process. I also  
totally stumped at how to make a raid 5 device and install freebsd on  
it - the sysinstall doesn't allow the configuration of raid arrays  
and I can only install to a slice. I need access to tools such as  
gvinum before installation... but how? Oh the pain!


best regards

gabriel





Roland
--
R.F.Smith   http://www.xs4all.nl/ 
~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much  
appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID:  
C321A725)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID5

2007-09-22 Thread Gabriel Dragffy

On 22 Sep 2007, at 01:13, Maxim Khitrov wrote:


However, a simple solution to that is to get a 64+ MB USB flash drive
and put the kernel on that. Just use fdisk and bsdlabel to write the
boot blocks. As long as the kernel has all needed drivers and you
specify which root device to use (either via kernel configuration or
/etc/fstab), that should allow you to put everything else on the RAID
array. This is how I currently do full-disk encryption on my laptop
using GELI. Kernel is outside, everything else is encrypted, same idea
for RAID.

I haven't ever done software RAID in FreeBSD, so can't help you with
the practical aspects of it. But I will say that technical or not, man
pages are still the best way to learn about these things. From what I
can see, RAID 5 is done through vinum, and GEOM offers RAID 3. Someone
else here may be able to tell you which one is better to use.

It's also worth noting that with software, the performance of RAID 5
is not going to be very good. I generally advise against software RAID
5. If you want good performance and reliability using software RAID,
the best bet is RAID 10, but there the utilization is 50%. I think
that if you can afford another 500GB drive and performance is
important to you, a software RAID 10 using GEOM will perform much
better. It is also easier to recover, and you can lose two drives (not
any two, but still) without completely losing all the data.



Hi, thank you for your post. I read the following in the BSD handbook  
which lead me to believe I could have root on RADI5:


quote
There is another option as well, to have /boot/loader (Section  
12.3.3) load the vinum kernel module early, before starting the  
kernel. This can be accomplished by putting the line:

geom_vinum_load=YES
into the file /boot/loader.conf.
/quote

That's here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/ 
handbook/vinum-root.html


I appreciate your post about using an alternative system to RAID 5.

Many thanks

Gabriel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Why is sendmail in the core of FreeBSD?

2007-09-22 Thread Gabriel Dragffy
Just been wondering about this. If you do a standard install of  
FreeBSD it includes things such as a basic FTP daemon, all the  
various utilities such as df, ls, etc. SSHD etc. I assum these are  
all in FreeBSDs core, as developed in the same CVS repo. Having read  
the mails on this list for several weeks it seems obvious that most  
people regard Postfix or EXIM to be the best MTAs, so I'm wondering  
why is sendmail the MTA that is integral to FreeBSD? Wouldn't it be  
ace to have the default one be Postfix or something?


Regards

Gabe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID5

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 12:19, Roland Smith wrote:


To elaborate, the loader doesn't know about the RAID layout. It is  
only

usable _after_ the kernel has loaded.


I read in the FreeBSD hanbook that I can have root on raid 5 by  
doing the

following:
There is another option as well, to have /boot/loader (Section  
12.3.3)
load the vinum kernel module early, before starting the kernel.  
This can be

accomplished by putting the line:
geom_vinum_load=YES
into the file /boot/loader.conf.


The thing is that vinum is not gvinum! Gvinum is a replacement for  
vinum
using the GEOM framework. I guess nobody has gotten around to  
update the

handbook yet.



Did you read the handbook? They say at the beginning of the chapter  
20 (20.1):


Starting with FreeBSD 5, Vinum has been rewritten in order to fit  
into the GEOM architecture (Chapter 19), retaining the original  
ideas, terminology, and on-disk metadata. This rewrite is called  
gvinum (for GEOM vinum). The following text usually refers to Vinum  
as an abstract name, regardless of the implementation variant. Any  
command invocations should now be done using the gvinum command, and  
the name of the kernel module has been changed from vinum.ko to  
geom_vinum.ko, and all device nodes reside under /dev/gvinum instead  
of /dev/vinum. As of FreeBSD 6, the old Vinum implementation is no  
longer available in the code base.


So that makes me think they have updated the handbook.

and in the chapter 20.9.1 it says:
load the vinum kernel module early, before starting the kernel. This  
can be accomplished by putting the line:

geom_vinum_load=YES
into the file /boot/loader.conf.

For Gvinum, all startup is done automatically once the kernel module  
has been loaded, so the procedure described above is all that is  
needed. The following text documents the behaviour of the historic  
Vinum system, for the sake of older setups.


It seems perfectly clear the handbook has both been updated and is  
saying i can have root on raid, or am I mistaken? 
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Why is sendmail in the core of FreeBSD?

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 12:34, Andrew Pantyukhin wrote:


On Sat, Sep 22, 2007 at 11:55:51AM +0100, Gabriel Dragffy wrote:
Just been wondering about this. If you do a standard install of  
FreeBSD it
includes things such as a basic FTP daemon, all the various  
utilities such

as df, ls, etc. SSHD etc. I assum these are all in FreeBSDs core, as
developed in the same CVS repo. Having read the mails on this list  
for
several weeks it seems obvious that most people regard Postfix or  
EXIM to
be the best MTAs, so I'm wondering why is sendmail the MTA that is  
integral

to FreeBSD? Wouldn't it be ace to have the default one be Postfix or
something?


At the time sendmail was integrased into FreeBSD other MTA's were
pretty much out of the question. Ever since then, the integration
has been very well-maintained (thanks to gshapiro) and changing
the default MTA to something else is simply not worth the pain
that comes with it.

Personally I use Postfix wherever I need an MTA, it only takes a
few minutes to install it from ports. The benefit of ports is you
can configure all the options you need. We can't keep mysql
client and dovecot sasl in the base system, most people would
have to reinstall Postfix from ports even if it was the default
MTA in our base.


I see, thank you for the heads-up. It is interesting. Personally I  
try to use the software that comes with the OS where possible.  
Especially in the case of FreeBSD, as I find the core software is  
rock solid and I love that. I think I'll learn how to configure  
sendmail and try sticking with it. At least it is documented somewhat  
in the handbook.


Many thanks to all

Regards

gabriel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Netatalk

2007-09-22 Thread Gabriel Dragffy
I've been following several different tutorials on the net for  
getting netatalk working. I've compiled in the neccessary option to  
the kernel, installed the port. Added various things to rc.conf, run / 
usr/local/etc/rc.d/netatalk start  and... nothing :( I think the  
problem is that all the tutorials I have found are years our of date.  
Does someone know how to get the modern port of netatalk on 6.2 working?


Many thanks

Gabriel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Software RAID5

2007-09-21 Thread Gabriel Dragffy

Hi all

Hoping to get some help setting up software RAID5. Guides on the  
internet seem to be few and far between, and official documentation  
is a little too technical. Basically I have 3 x 500GB hard drives  
which I'd like to have in a raid5 configuration, using software, root  
partition on their too would be a bonus. I'd be grateful for assistance.


Best regards

Gabriel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Lighttpd won't serve up php pages - 500 internal server error

2007-09-12 Thread Gabriel Dragffy

Hi all

I've install php5 and php5-extensions from the latest ports and also  
lighty too. I compiled php5 with fastcgi support.


In lighttpd's error log I see the following:
2007-09-12 17:32:06: (mod_fastcgi.c.1731) connect failed: Connection  
refused on unix:/tmp/php-fastcgi.socket-3
2007-09-12 17:32:06: (mod_fastcgi.c.2885) backend died; we'll disable  
it for 5 seconds and send the request to another backend instead:  
reconnects: 0 load: 1

2007-09-12 17:32:06: (mod_fastcgi.c.2658) child signaled: 11
2007-09-12 17:32:06: (mod_fastcgi.c.2462) unexpected end-of-file  
(perhaps the fastcgi process died): pid: 26390 socket: unix:/tmp/php- 
fastcgi.socket-3

2007-09-12 17:32:06: (mod_fastcgi.c.3211) child signaled: 11
2007-09-12 17:32:06: (mod_fastcgi.c.3254) response not received,  
request sent: 850 on socket: unix:/tmp/php-fastcgi.socket-3 for / 
phpinfo.php , closing connection



I added the following to php.ini: cgi.fix_pathinfo = 1.


And the relevant sections of lighttpd.conf are:
server.modules  = (
mod_access,
   mod_fastcgi, )
server.document-root= /usr/local/www/data/

fastcgi.server = ( .php =
   ( localhost =
 (
   socket = /tmp/php- 
fastcgi.socket,
   bin-path = /usr/local/bin/php- 
cgi

 )
   )
)


The web page shown just displys 500 - Internal Server Error.

Thank you

Gabriel



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hunks failed, is this bad?

2007-09-11 Thread Gabriel Dragffy

Hi all

I hope you can help me.

I have a clean install of freebsd. I changed to /usr and made ports  
directory. Then I ran portsnap fetch and then extract. Then I changed  
to ports-mngmt/portmanager and did   make install clean.


When I try to install any port using either 'make install clean' or  
'portmanager www/lighttpd' (for example) I see hunks failed in  
stdout. As an exaple I saw one of these flas by when installing  
lighttpd:


|--- /usr/ports/Mk/bsd.port.mk  Tue Nov  8 01:02:51 2005
|+++ bsd.port.mkWed Nov 16 02:16:57 2005
--
Patching file bsd.port.mk using Plan A...
Hunk #1 failed at 2049.
1 out of 1 hunks failed--s

As far as I can tell I see similar errors no matter what port I try  
to install. Is this a problem?


Many thanks

Gabriel Dragffy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hunks failed, is this bad?

2007-09-11 Thread Gabriel Dragffy

Hi all

I hope you can help me.

I have a clean install of freebsd. I changed to /usr and made ports  
directory. Then I ran portsnap fetch and then extract. Then I changed  
to ports-mngmt/portmanager and did   make install clean.


When I try to install any port using either 'make install clean' or  
'portmanager www/lighttpd' (for example) I see hunks failed in  
stdout. As an exaple I saw one of these flas by when installing  
lighttpd:


|--- /usr/ports/Mk/bsd.port.mk  Tue Nov  8 01:02:51 2005
|+++ bsd.port.mkWed Nov 16 02:16:57 2005
--
Patching file bsd.port.mk using Plan A...
Hunk #1 failed at 2049.
1 out of 1 hunks failed--s

As far as I can tell I see similar errors no matter what port I try  
to install. Is this a problem?


Many thanks

Gabriel Dragffy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hello

2007-09-06 Thread Gabriel Dragffy

Dear list members.

I just wanted to say hi to all of you. My name is Gabriel, and I have  
just been setting up a FreeBSD server at work, having moved from Linux.


There are just a couple of things that aren't working quite as I  
would like, and I was hoping someone might be kind enough to help me  
out. I've been using the FreeBSD handbook, and I must say it is quite  
superb, and makes starting with FreeBSD much easier.


Using sysinstall I enabled anonymous FTP, with uploads allowed in the  
folder /incoming. Uploading works a treat, however the files don't  
have permissions to be downloaded again (by anon user). I know I  
could change this by executing a cron job every two minutes that  
would chmod the files in /incoming. But surely there must be a far  
better way...? The FreeBSD handbook says it doesn't recommend  
allowing anon users to d/load files uploaded anonymously, however I  
would still like to implement this.


I'd be very appreciative for any help.

Best regards

Gabriel Dragffy

[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]