[CentOS] Installing GDChart fails: pecl/gdchart requires PHP extension gd

2010-12-13 Thread Alexander Farber
Hello, has anybody solved the problem of installing GDChart on CentOS 5.5 (I've tried both 32 and 64 bit versions)? I have: # rpm -qa | grep -i php php-pear-1.4.9-6.el5 php-gd-5.1.6-27.el5 php-ldap-5.1.6-27.el5 php-pgsql-5.1.6-27.el5 php-5.1.6-27.el5 php-pdo-5.1.6-27.el5 php-common-5.1.6-27.el5

[CentOS] Passing LD_LIBRARY_PATH through sudo

2010-12-17 Thread Alexander Farber
Hello, I have a CentOS 5.5/64bit VM, where I only have sudo rights: afarber ALL=(ALL) NOPASSWD: ALL I'm trying to pass LD_LIBRARY_PATH through sudo to install DBD::Oracle ( https://rt.cpan.org/Ticket/Display.html?id=63678 ) and have tried using sudo -E and also changing these

Re: [CentOS] Passing LD_LIBRARY_PATH through sudo

2010-12-17 Thread Alexander Farber
This one works, thank you ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] php53 and Fileinfo

2011-02-28 Thread Alexander Farber
Hello, for drupal 7 installation at CentOS 5.5 (I have 32 bit and 64 bit machines) I have to upgrade PHP to 5.3. I've followed the CentOS wiki: 1) Created this file - grep -v ^# /etc/yum.repos.d/CentOS-Testing.repo [c5-testing] name=CentOS-5 Testing

Re: [CentOS] php53 and Fileinfo

2011-02-28 Thread Alexander Farber
I see though: # rpm -ql php53-common-5.3.3-1.el5 | grep modules /usr/lib/php/modules /usr/lib/php/modules/curl.so /usr/lib/php/modules/fileinfo.so /usr/lib/php/modules/json.so /usr/lib/php/modules/phar.so /usr/lib/php/modules/zip.so So json and fileinfo are probably built-in now? Sorry, I'm not

[CentOS] task md1_resync:9770 blocked for more than 120 seconds and OOM errors

2011-03-20 Thread Alexander Farber
Hello, yesterday night I had a problem with my server located at a hoster (strato.de). I couldn't ssh to it and over the remote serial console I saw out of memory errors (sorry, don't have the text). Then I had reinstall CentOS 5.5/64 bit + all my setup (2h work), because I have a contract with

Re: [CentOS] task md1_resync:9770 blocked for more than 120 seconds and OOM errors

2011-03-20 Thread Alexander Farber
Thanks Kenni, could you advise any commands for checking RAID status or health ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] task md1_resync:9770 blocked for more than 120 seconds and OOM errors

2011-03-20 Thread Alexander Farber
Thank you, I've decreased /proc/sys/dev/raid/speed_limit_max from 20 to 10. I think I don't care about the sync speed, but I'd like to avoid the OOM errors and server lockup like I had yesterday (still not sure if this will help here or if it is just to get rid of the warning) Regards

[CentOS] syslog.conf - how to redirect messages by a program name?

2011-03-20 Thread Alexander Farber
Hello, the man syslog.conf explains how to filter syslog messages by facility (auth, authpriv, cron, daemon, kern, ... ) or by priority (debug, info, notice, warning, ...). But how could I redirect messages by a program name, like drupal or php? For example I have in /var/log/messages: Mar 20

Re: [CentOS] task md1_resync:9770 blocked for more than 120 seconds and OOM errors

2011-03-21 Thread Alexander Farber
Thanks for your replies. I've also seen the following in my log now: Mar 20 05:08:55 mysite kernel: md: md1: sync done. Mar 20 05:08:55 mysite kernel: RAID1 conf printout: Mar 20 05:08:55 mysite kernel: --- wd:2 rd:2 Mar 20 05:08:55 mysite kernel: disk 0, wo:0, o:1, dev:sda3 Mar 20 05:08:55

Re: [CentOS] syslog.conf - how to redirect messages by a program name?

2011-03-21 Thread Alexander Farber
Thank you for your replies. I've ended up doing the following for my PHP and Drupal logs: Uncommented error_log = /var/log/php/php_errors.log in /etc/php.ini # mkdir /var/log/php # chown -R apache.apache /var/log/php Appended following line to /etc/syslog.conf local6.* /var/log/php/drupal.log

[CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
Hello, I've purchased a new dedicated CentOS 6.0 / 64 bit server and have 2 minor problems please: 1) The hostname is reported as CentOS-60-64-minimal at CLI - eventhough I've edited /etc/hosts and changed the 2nd line: 127.0.0.1 localhost 176.9.123.123 preferans 2) Why is /etc/localtime

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
Thank you all, On Tue, Oct 4, 2011 at 4:26 PM, lists-centos replies-lists-b3z2-cen...@listmail.innovate.net wrote:  2 - you can do the symbolic link, but i believe that RH moved     away from that approach for some reason. the appropriate     TZ file is copied to /etc/localtime when the TZ is

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
And also, which /etc/localtime do I have now? Is there a way to find out besides running diff? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
Actually I already seem to have the correct timezone file, but why is the time wrong? afarber@CentOS-60-64-minimal:~ sudo diff /usr/share/zoneinfo/Europe/Berlin /etc/localtime afarber@CentOS-60-64-minimal:~ date Wed Oct 5 00:35:39 CEST 2011 Should I: chkconfig ntp on service ntp start

[CentOS] CentOS 6: Increase shared memory limits permanently

2011-10-04 Thread Alexander Farber
Hello again, on CentOS 6 / 64 bit what is please the best way to permanently increase the shared memory? I'd like to give shared_buffers = 4096MB to PostgreSQL 8.4 on my machine with 16 GB RAM, but I currently only have: # sysctl -A|grep shm kernel.shmmax = 33554432 kernel.shmall =

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
Actually it is working now, thank you all! [root@preferans afarber]# cat /etc/sysconfig/clock ZONE=Europe/Berlin [root@preferans afarber]# /etc/init.d/ntpd status ntpd (pid 1365) is running... [root@preferans afarber]# /sbin/hwclock Tue 04 Oct 2011 07:10:06 PM CEST -0.797338 seconds

Re: [CentOS] CentOS 6: Increase shared memory limits permanently

2011-10-04 Thread Alexander Farber
Thanks, I've put (for my 16GB RAM / 64 bit machine) into /etc/sysctl.conf: kernel.shmmax = 50 And into postgresql.conf: shared_buffers = 4096MB I didn't change shmall from the default - # sysctl -A|grep shm kernel.shmmax = 50 kernel.shmall = 2097152 kernel.shmmni = 4096 because

[CentOS] postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied

2011-10-04 Thread Alexander Farber
I'm trying to configure mail forwarding through Gmail on CentOS 6 with postfix, following the blog http://carlton.oriley.net/blog/?p=31 and I think the blog has missed the step: # postmap /etc/postfix/sasl_passwd - as I've seen in the /var/log/maillog: postfix/smtp[1926]: fatal: open database

Re: [CentOS] postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied

2011-10-04 Thread Alexander Farber
Nevermind - solved that by # sudo chown root.root sasl_passwd (sorry, too tired in the evening) On Tue, Oct 4, 2011 at 9:04 PM, Alexander Farber alexander.far...@gmail.com wrote: I'm trying to configure mail forwarding through Gmail on CentOS 6 with postfix, following the blog http

Re: [CentOS] postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied

2011-10-04 Thread Alexander Farber
Thank you, the ls -laF tip is good And now I unfortunately get: postfix/postfix-script[2054]: starting the Postfix mail system postfix/master[2056]: daemon started -- version 2.6.6, configuration /etc/postfix postfix/qmgr[2059]: F10CC31D62CC: from=root@preferans.localdomain, size=609,

Re: [CentOS] postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied

2011-10-04 Thread Alexander Farber
= no On Tue, Oct 4, 2011 at 9:18 PM, Alexander Farber alexander.far...@gmail.com wrote: postfix/smtp[2061]: F10CC31D62CC: to=alexander.far...@gmail.com, orig_to=root, relay=smtp.gmail.com[74.125.39.109]:587, delay=2963, delays=2963/0.07/0.03/0.01, dsn=5.7.0, status=bounced (host smtp.gmail.com

Re: [CentOS] postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied

2011-10-04 Thread Alexander Farber
Hello, On Tue, Oct 4, 2011 at 10:37 PM, Craig White craig.wh...@ttiltd.com wrote: postfix/smtp[2061]: warning: TLS library problem: 2061:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:698:Expecting: TRUSTED CERTIFICATE: postfix/smtp[2061]: warning: TLS library problem:

[CentOS] Migrating CentOS 5 - 6: where to put /etc/inittab respawn scripts?

2011-10-04 Thread Alexander Farber
Hello, sorry, for 1 more question on CentOS 5 - CentOS 6 migration. On my old CentOS 5.7 machine I have the following line: pref:3:respawn:/bin/su -c '/usr/local/pref/pref.pl /tmp/pref-`date +%a`.txt 21' afarber and this has served me well, I don't want to install anything else like

Re: [CentOS] Migrating CentOS 5 - 6: where to put /etc/inittab respawn scripts?

2011-10-05 Thread Alexander Farber
Hello, unfortunately /etc/init.d doesn't seem to suit me: I want my (sockets) script to be restarted when crashed or killed (I kill it every night to solve memory issues with perl interpreter) Regards Alex ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied

2011-10-05 Thread Alexander Farber
Thanks Craig for your comments. I've got my sendmail on CentOS 6 working with: # yum erase postfix # yum install sendmail sendmail-cf # mkdir /etc/mail/auth # chmod 700 /etc/mail/auth # mkdir /etc/mail/certs # chmod 700 /etc/mail/certs Create the file /etc/mail/auth/client-info:

Re: [CentOS] postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied

2011-10-05 Thread Alexander Farber
Also needed for Gmail in sendmail.mc: define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl ___ CentOS mailing list CentOS@centos.org

[CentOS] Howto use Gmail with sendmail on CentOS 6

2011-10-05 Thread Alexander Farber
Hello, I hope nobody minds, if I post a short summary here for archives - How to forward mails via Gmail account from CentOS 6 (I use sendmail, because haven't figured out how to setup Postfix yet): # yum erase postfix # yum install sendmail sendmail-cf cyrus-sasl-plain cyrus-sasl-md5 # mkdir

Re: [CentOS] Migrating CentOS 5 - 6: where to put /etc/inittab respawn scripts?

2011-10-05 Thread Alexander Farber
Hello again, I still have 1 minor problem - I've created a new file /etc/init/pref.conf: start on stopped rc RUNLEVEL=3 stop on starting rc RUNLEVEL=[!3] console output respawn chdir /tmp exec /bin/su -c '/usr/local/pref/pref.pl /tmp/pref-`date +%a`.txt 21' afarber And started my script (a

Re: [CentOS] Migrating CentOS 5 - 6: where to put /etc/inittab respawn scripts?

2011-10-05 Thread Alexander Farber
Hello Michael and others - On Wed, Oct 5, 2011 at 5:42 PM, Michael Gliwinski michael.gliwin...@henderson-group.com wrote: On Wednesday 05 Oct 2011 15:03:43 Alexander Farber wrote: start on stopped rc RUNLEVEL=3 stop on starting rc RUNLEVEL=[!3] console output respawn chdir /tmp exec /bin

Re: [CentOS] Migrating CentOS 5 - 6: where to put /etc/inittab respawn scripts?

2011-10-05 Thread Alexander Farber
:26 static init: pref respawning too fast, stopped is that all maybe the reason and is there something I could do? (maybe somehow delay the subsequent spawns?) Regards Alex On Wed, Oct 5, 2011 at 5:51 PM, Alexander Farber alexander.far...@gmail.com wrote: http://serverfault.com/questions/318742

Re: [CentOS] Migrating CentOS 5 - 6: where to put /etc/inittab respawn scripts?

2011-10-05 Thread Alexander Farber
Good idea, thank you! On Wed, Oct 5, 2011 at 7:22 PM, Les Mikesell lesmikes...@gmail.com wrote: Can you make it sleep a bit and retry the socket open a few times if it fails due to the previous process not releasing the port yet? ___ CentOS mailing

[CentOS] WARNING: Deprecated config file /etc/modprobe.conf

2011-10-09 Thread Alexander Farber
Hello, I've changed the web hoster recently and also upgraded from CentOS 5 to6. Now I get this warning: # service iptables restart iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading

[CentOS] PAM unable to dlopen(/lib64/security/pam_fprintd.so)

2011-10-14 Thread Alexander Farber
Hello the logwatch from my CentOS 6 / 64 bit machine (minimal install, with permissive SELinux) keeps reporting me: **Unmatched Entries** PAM adding faulty module: /lib64/security/pam_fprintd.so: 9 Time(s) PAM unable to dlopen(/lib64/security/pam_fprintd.so):

[CentOS] PCIe errors handled by OS

2011-10-26 Thread Alexander Farber
Does anybody please have any experience with the following CentOS 6 warnings in logwatch? WARNING: Kernel Errors Present ACPI Error (psargs-0359): [ ...: 1 Time(s) pci :00:01.0: PCIe errors handled by OS. ...: 1 Time(s) pci :00:1c.0: PCIe errors handled by OS. ...: 1 Time(s)

[CentOS] max user processes - is /etc/security/limits.conf the best place to change?

2011-12-14 Thread Alexander Farber
Hello centos-users, in CentOS 6.1 is /etc/security/limits.conf the best place to change the number of max user processes for a daemon process? (I'm asking because the .../security/... part of the path sounds a bit strange) Thank you Alex ___ CentOS

[CentOS] Setting From address for cronjob mails (because Gmail rejects)

2012-01-20 Thread Alexander Farber
Hello, I have two identical CentOS 6.2 machines with stock Postfix package and unchanged config: # rpm -qa|grep post postfix-2.6.6-2.2.el6_1.x86_64 # postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix

Re: [CentOS] Setting From address for cronjob mails (because Gmail rejects)

2012-01-20 Thread Alexander Farber
Hello, thank you for your reply. I'd like to provide 2 quick additional details before trying your suggestions: 1) If I add a from address at the command line, then mail is delivered ok: $ mail Alеxander.far...@gmail.com -r wеbmaster@prеferans.de But if I just run $ mail

Re: [CentOS] Setting From address for cronjob mails (because Gmail rejects)

2012-01-20 Thread Alexander Farber
Hello, thank you for all the replies. I've solved my current problem by going back to sendmail (which I'm better used than to postfix) and adding this line to the stock CentOS sendmail.mc: MASQUERADE_AS(`preferans.de')dnl Yes, I use Google Apps for incoming mail and that is why I have their MX

[CentOS] sshd: listen on ip1:port1 and ip2:port2

2012-01-24 Thread Alexander Farber
Hello, with CentOS 6.2 - is it possible to configure OpenSSH daemon to listen on different IPs _and_ ports? I have received a 2nd IP address for my server and have successfully configured by adding the new /etc/sysconfig/network-scripts/ifcfg-eth0:1 file. I'd like SSHd to keep listening at

Re: [CentOS] sshd: listen on ip1:port1 and ip2:port2

2012-01-24 Thread Alexander Farber
Thank you! And sorry for not re-reading the man sshd_config! I guess, I was too stressed by having to configure my 2nd IP address :-) Regards Alex ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Installing CentOS security updates to RHEL machines? (RHN subscription expired)

2008-11-30 Thread Alexander Farber
Hello, I hope my question is not annoying. I work as sysadmin at a 400 users firm and we have around 20 CentOS 4/5 servers and VMs and CentOS is awesome, thank you! However we have 4 important SAP-servers running RHEL5 and our RHN subscription has unforunately expired and buying it again is not

Re: [CentOS] Installing CentOS security updates to RHEL machines?(RHN subscription expired)

2008-11-30 Thread Alexander Farber
You don't know our situation and already have an opinion. We already spent 40 Euro for SW licenses this year (and we have only 400 users). And we're an automotive business, so I can understand that management tries to save some money. Regards Alex On Sun, Nov 30, 2008 at 7:10 PM, Jim

[CentOS] iptables-save: INPUT DROP [26:8260]

2008-12-02 Thread Alexander Farber
Hello, why does iptables-save print 2 numbers in square brackets? Is it used for anything? Is it number of inspected packets (and what's the other number then)? And what does *filter mean? Thank you Alex $ sudo iptables-save # Generated by iptables-save v1.3.5 on Tue Dec 2 23:53:56 2008

Re: [CentOS] Centos 5.2 on Vmware Server: Disk space not preallocated - no disk found by installer

2008-12-07 Thread Alexander Farber
CentOS 5.2 and 4.7 work for me at the latest VMWare Workstation, Server and ESX :-) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] yum-updatesd or similar for CentOS 4

2008-12-11 Thread Alexander Farber
Hello, we have enabled yum-updatesd on our dozen real and virtual machines running CentOS 5.2 some time ago and are very satisfied: afar...@ablsw01:~ grep -v ^# /etc/yum/yum-updatesd.conf [main] run_interval = 7200 updaterefresh = 1200 emit_via = email dbus_listener = no do_update = yes

Re: [CentOS] Watchdog process?

2008-12-11 Thread Alexander Farber
Can't you just add an entry to /etc/inittab? This worked well for me On Thu, Dec 11, 2008 at 5:52 AM, Greg Bailey gbai...@lxpro.com wrote: Is there a generic built-in way on CentOS to overlook that a specific process is alive and re-spawn it (or just run a configured command) when it dies?

Re: [CentOS] yum-updatesd or similar for CentOS 4

2008-12-12 Thread Alexander Farber
Thank you all, I'll go with yum service On Thu, Dec 11, 2008 at 10:20 PM, Barry Brimer li...@brimer.org wrote: chkconfig yum on service yum start ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Generating password string in /var/nis/passwd with Perl

2009-01-20 Thread Alexander Farber
/.:10154153:5725:Alexander Farber,jn-05/02:/home/farber:/bin/bash Has anybody already figured out, how to do it from Perl? I'm sure there must be some way (smth. with Perl's crypt). Regards Alex PS: Here is my script: http://pastebin.com/m46057a70 feel free to modify and use

[CentOS] squid stops working several times a day

2009-02-02 Thread Alexander Farber
Hello, I have a problem here with: [r...@ablprx01 squid]# cat /etc/*release CentOS release 5.2 (Final) [r...@ablprx01 squid]# rpm -qa|grep -i squid squid-2.6.STABLE6-5.el5_1.3 The web proxy process (used by 300-400 users) seems to run ok: [r...@ablprx01 squid]# ps uawwwx|grep squid root

Re: [CentOS] squid stops working several times a day

2009-02-04 Thread Alexander Farber
Thank you, On Mon, Feb 2, 2009 at 3:32 PM, John Doe jd...@yahoo.com wrote: From: Alexander Farber alexander.far...@gmail.com [r...@ablprx01 squid]# rpm -qa|grep -i squid squid-2.6.STABLE6-5.el5_1.3 Sadly, CentOS squid packages are quite old. Squid recent releases are: 2.7.STABLE5 and 3.0

Re: [CentOS] squid stops working several times a day

2009-02-04 Thread Alexander Farber
Uh oh http://people.redhat.com/mnagy/squid/ doesn't have them yet... On Wed, Feb 4, 2009 at 1:06 PM, John Doe jd...@yahoo.com wrote: Talking about squid versions: Advisory SQUID-2009:1 Due to an internal error Squid is vulnerable to a denial of service attack when processing specially crafted

Re: [CentOS] squid stops working several times a day

2009-02-04 Thread Alexander Farber
On Wed, Feb 4, 2009 at 5:16 PM, Les Mikesell lesmikes...@gmail.com wrote: Ramon Nieto wrote: CentOS supplied Squid is running just fine here. Here too, 1300+ users, 80+ acl's and squidguard. Likewise here, working as an internal cache for data used by a very busy web server farm with

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
Hello, On Fri, Feb 13, 2009 at 2:31 PM, John Doe jd...@yahoo.com wrote: Still using 2.x here but, isn't there a commands.cfg file with some check_http definition? In doubt, take a working check_xyz and grep it in all the conf files and see if you missed any... thanks - yes, I always grep

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
On Fri, Feb 13, 2009 at 2:45 PM, John Doe jd...@yahoo.com wrote: What I meant was that there should also be a definition in the commands.cfg file (if it is like 2.x)... Allright - that was it: I should have added the commands to the /etc/nagios/objects/commands.cfg and not to the

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
Hello, On Fri, Feb 13, 2009 at 3:06 PM, Rainer Duffner rai...@ultra-secure.de wrote: Alexander Farber schrieb: I should have added the commands to the /etc/nagios/objects/commands.cfg and not to the /etc/nagios/command-plugins.cfg Well, you can include those, too (I think in nagios.cfg

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
Oops a typo - I actually mean: unfortunately you can't put cfg_file=/etc/nagios/command-plugins.cfg into /etc/nagios/nagios.cfg - it will bail out with an error message. ___ CentOS mailing list CentOS@centos.org

[CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-05 Thread Alexander Farber
Hello, we have a mixed environment at work: CentOS + Win2003 servers. The Win2k3 part contains: AD, DNS (inlc. dyndns), DHCP, DFS, Exchange. The CentOS part: NIS passwords + also a DNS server. So currently we have to update the Linux DNS server zone infos by hand: I export a text file from

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-05 Thread Alexander Farber
On Thu, Mar 5, 2009 at 2:47 PM, Les Mikesell lesmikes...@gmail.com wrote: You can specify multiple forwarders if you have more than one server already set up the way you want.  Named will find one that works and cache the results locally for its time to live.  Once you have a couple of robust

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-06 Thread Alexander Farber
Hello, On Thu, Mar 5, 2009 at 12:44 PM, Brian McKerr bmck...@gmail.com wrote: http://technet.microsoft.com/en-us/library/dd316373.aspx thank you, I have the forward zones replicated from the prim. DNS hosted at our Windows DC fine with this config: # cat /etc/*release CentOS release 5.2

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-06 Thread Alexander Farber
On Fri, Mar 6, 2009 at 10:05 AM, Alain RICHARD alain.rich...@equation.fr wrote: But the replication of the reverse zone doesn't work yet - I get errors: named[30219]: zone 42.121.10.in-addr.arpa/IN: refresh: unexpected rcode (NXDOMAIN) from master 10.121.42.40#53 (source 0.0.0.0#0) You need

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-06 Thread Alexander Farber
Ok, figured it out: # cat /var/named/chroot/etc/named.conf options { directory /var/named; }; zone internal.mycompany.com IN { type slave; file slaves/internal.mycompany.com; masters { 10.121.42.40 port 53;}; check-names ignore; }; zone 121.10.in-addr.arpa IN {

[CentOS] CentOS 5.6 and php53 packages

2011-04-13 Thread Alexander Farber
Hello fellow CentOS users, until now I was using CentOS 5.5 with php 5.3 through this file: # grep -v ^# /etc/yum.repos.d/CentOS-Testing.repo [c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ enabled=1 gpgcheck=1

Re: [CentOS] CentOS 5.6 and php53 packages

2011-04-13 Thread Alexander Farber
Thank you for the replies and the new release ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Adding comments to /etc/sysconfig/iptables

2011-04-24 Thread Alexander Farber
Hello, I'm a user (and big fan) of CentOS 5.6 and in my /etc/sysconfig/iptables there are few blocking rules for some annoying visitors of my website (I run a card game there since many years and some people are special): *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [294:35064]

Re: [CentOS] Adding comments to /etc/sysconfig/iptables

2011-04-24 Thread Alexander Farber
Ouch you're correct. I only tried end-of-line comments, sorry On Sun, Apr 24, 2011 at 9:30 AM, Nicolas Thierry-Mieg nicolas.thierry-m...@imag.fr wrote: Alexander Farber wrote: Is there a way to add comments to the iptables file? A hash mark # does not seem to work. assuming you are talking

[CentOS] Samba can't access dir - SELinux problem?

2011-04-25 Thread Alexander Farber
Hello, I was using CentOS 5.5 as a playground VM at my WinXP notebook and now I'm migrating to a new CentOS 5.6 install and everything has worked well - except samba. I have this very permissive config to export my ~/src dir: # cat /etc/samba/smb.conf [global] guest ok= yes guest

Re: [CentOS] Samba can't access dir - SELinux problem?

2011-04-25 Thread Alexander Farber
# chcon -R -t samba_share_t src hasn't helped either ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Samba can't access dir - SELinux problem?

2011-04-25 Thread Alexander Farber
Thank you! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Blocking an IP address both as source and destination

2011-04-25 Thread Alexander Farber
Hello, how do you block incoming AND outgoing traffic to a site? I have 2 drop lines for a site in my /etc/sysconfig/iptables: *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [294:35064] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -s

Re: [CentOS] Blocking an IP address both as source and destination

2011-04-25 Thread Alexander Farber
Thank you, it seems to work now ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Server offline :-( please help to repair software RAID

2011-04-28 Thread Alexander Farber
Hello, since weeks I was ignoring this warning at my CentOS 5.6/64 bit machine - /etc/cron.weekly/99-raid-check: WARNING: mismatch_cnt is not 0 on /dev/md0 in the hope that the software RAID will slowly repair itself. I also had executed echo 10 /proc/sys/dev/raid/speed_limit_max

Re: [CentOS] Server offline :-( please help to repair software RAID

2011-04-28 Thread Alexander Farber
Additional info (how many RAID arrays do I have??): # mdadm -D /dev/md3 /dev/md3: Version : 00.90 Creation Time : Sat Mar 19 22:53:25 2011 Raid Level : raid1 Array Size : 185151360 (176.57 GiB 189.59 GB) Used Dev Size : 185151360 (176.57 GiB 189.59 GB) Raid Devices : 2

Re: [CentOS] Server offline :-( please help to repair software RAID

2011-04-28 Thread Alexander Farber
Hello, I didn't touch anything, just booted the hoster's rescue image. # cat /etc/mdadm.conf cat: /etc/mdadm.conf: No such file or directory # cat /proc/mdstat Personalities : [linear] [raid0] [raid1] md0 : active raid1 sda1[0] sdb1[1] 1023936 blocks [2/2] [UU] md1 : active raid1 sda3[0]

Re: [CentOS] Server offline :-( please help to repair software RAID

2011-04-28 Thread Alexander Farber
Thank you all, it seems to have finished - I'm rebooting. Just curious why is the State of md3 active, while the others are clean? # cat /proc/mdstat Personalities : [linear] [raid0] [raid1] md0 : active raid1 sda1[0] sdb1[1] 1023936 blocks [2/2] [UU] md1 : active raid1 sda3[0] sdb3[1]

Re: [CentOS] Server offline :-( please help to repair software RAID

2011-04-28 Thread Alexander Farber
On the 2nd try it has booted and seems to work. The /var/log/mcelog is (and was) empty. # sudo cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb1[1] sda1[0] 1023936 blocks [2/2] [UU] md2 : active raid1 sdb5[1] sda5[0] 277728192 blocks [2/2] [UU] md3 : active raid1

Re: [CentOS] Server offline :-( please help to repair software RAID

2011-04-28 Thread Alexander Farber
Turned out, smartd kept saying, that it had no entries in smartd.conf. I've copied smartd.rpmnew over smartd.conf, restarted it, now I have (in /var/log/messages, date+hostname removed): smartd version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is

Re: [CentOS] Switching to php53

2011-05-01 Thread Alexander Farber
Hello Dave, this really works - I run Drupal 7 at my CentOS 5.6 machine with the native php53 and postgresql84 packages. Just remove the older php packages first. Regards Alex ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] Server offline :-( please help to repair software RAID

2011-05-01 Thread Alexander Farber
Hello Mark and others, On Thu, Apr 28, 2011 at 10:21 PM, m.r...@5-cent.us wrote: At this point, I'd run the long test on each drive, and (after coming back an hour or two later, see the results. I have that dreadly warning again - /etc/cron.weekly/99-raid-check: WARNING:

[CentOS] Restarting a Perl-script (socket daemon) from /etc/inittab

2011-06-02 Thread Alexander Farber
Hello fellow CentOS sysadmins, I run a small multiplayer card game with around 500 users at peak times. The client is in Flash and the server is in Perl. The Perl server binds to port 8080, i.e. only 1 instance of it can be started (important detail). The Perl server poll()s TCP-sockets and

Re: [CentOS] Restarting a Perl-script (socket daemon) from /etc/inittab

2011-06-02 Thread Alexander Farber
On Thu, Jun 2, 2011 at 10:10 PM, Les Mikesell lesmikes...@gmail.com wrote: On 6/2/2011 2:46 PM, Alexander Farber wrote: The Perl server poll()s TCP-sockets and forks only once - at the startup by calling this method:      sub daemonize {          die Can not fork: $!\n unless defined (my

Re: [CentOS] Restarting a Perl-script (socket daemon) from /etc/inittab

2011-06-02 Thread Alexander Farber
I'll omit fork() and run my script from /etc/inittab as pref:3:respawn:/bin/su -c '/usr/local/pref/pref.pl' nobody 21 /tmp/pref.txt Do you think I still need setsid(); chdir(/); and umask(0); ? Regards Alex ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] Restarting a Perl-script (socket daemon) from /etc/inittab

2011-06-02 Thread Alexander Farber
Thank you, now my perl daemon works with /etc/inittab I've removed fork() and used this line: pref:3:respawn:/bin/su -c '/usr/local/pref/pref.pl /tmp/pref.txt 21' nobody Regards Alex ___ CentOS mailing list CentOS@centos.org

[CentOS] apr-util-pgsql

2011-06-12 Thread Alexander Farber
Hello, does anybody know of a good source for a apr-util-pgsql rpm package for CentOS 5.6 / 64 bit and even more I'm curious why isn't it included but the apr-util-mysql is included... Thank you Alex ___ CentOS mailing list CentOS@centos.org

[CentOS] Is reboot needed after updating kernel, glibc, database?

2011-06-28 Thread Alexander Farber
Hello, I always wanted to ask: do you need to reboot after updating packages like kernel, glibc, postgresql? Or do you need to restart the postgresql service after updating it with yum? Regards Alex # sudo yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

[CentOS] Remote X connection to CentOS 5.5 using Xming -ac

2010-06-15 Thread Alexander Farber
Hello, I've rented a dedicated root server (SR7 at strato.de) and would like to run qemu at it, but get the error: # qemu -hda install.img -cdrom install47.iso -boot d Could not initialize SDL - exiting It seems that I have to establish X connection, so I've installed Xming at my WinXP laptop

Re: [CentOS] Remote X connection to CentOS 5.5 using Xming -ac

2010-06-15 Thread Alexander Farber
Hello Brian, On Tue, Jun 15, 2010 at 9:16 PM, Brian Mathis brian.mat...@gmail.com wrote: If you setup X11 forwarding in PuTTY, then double-click on a saved putty session, it will clear out the X11 forwarding and use the settings from the saved session (no X forwarding).  If X forwarding is

Re: [CentOS] Remote X connection to CentOS 5.5 using Xming -ac

2010-06-15 Thread Alexander Farber
On Tue, Jun 15, 2010 at 9:50 PM, Les Mikesell lesmikes...@gmail.com wrote: Is something in your .profile or .bashrc clearing your DISPLAY variable?  When I log in with putty with the X forwarding box checked I get a DISPLAY variable set automatically (you can see it with 'env') that isn't set

Re: [CentOS] Remote X connection to CentOS 5.5 using Xming -ac

2010-06-15 Thread Alexander Farber
grep -rw DISPLAY /etc/ doesn't set anything either... So, when connecting via SSH/PuTTY, then the DISPLAy should be set to localhost:10.0 by SSH, correct? Regards Alex On Tue, Jun 15, 2010 at 9:54 PM, Alexander Farber alexander.far...@gmail.com wrote: On Tue, Jun 15, 2010 at 9:50 PM, Les

[CentOS] kernel: Machine check events logged

2010-07-07 Thread Alexander Farber
Hello, every few hours I get the following message in /var/log/message: Jul 5 20:23:28 hXXX kernel: Machine check events logged Jul 5 20:53:28 hXXX kernel: Machine check events logged Jul 5 22:13:28 hXXX kernel: Machine check events logged Jul 5 23:53:28 hXXX kernel: Machine check events

Re: [CentOS] kernel: Machine check events logged

2010-07-07 Thread Alexander Farber
Hello Mark, On Wed, Jul 7, 2010 at 2:51 PM, m.r...@5-cent.us wrote: First, this is *very* bad - I'm not good enough on this to tell you if it's the CPU, or the motherboard, but it's one of the two, *not* just memory. Second, if you're paying for hosting, and it's *their* server, you need to

Re: [CentOS] kernel: Machine check events logged

2010-07-07 Thread Alexander Farber
I've only found this Solaris blog, but don't understand it well enough: http://blogs.sun.com/gavinm/entry/amd_opteron_athlon64_turion64_fault Can't provide you more details, because my dedicated server is under hoster's hardware tests since 5 hours :-( (and I guess everyone will run home for the

Re: [CentOS] kernel: Machine check events logged

2010-07-07 Thread Alexander Farber
Anyway my hoster has finished the hardware tests (probably just kept running memtest86 or some vendor CD?) on my CentOS 5.5/64bit machine with quad Opteron 1381 and said that they haven't found any issues. I'll post here a short note if I will experience any issues on my LAPP server (preferans.de

[CentOS] Redirecting PHP error messages into a log file

2010-07-30 Thread Alexander Farber
Hello, I'm using CentOS release 5.5 x86_64 with the stock php-5.1.6-27.el5 and would like to redirect PHP messages into /var/log/httpd/php_log First I tried adding that file name to /etc/php.ini: error_log = /var/log/httpd/php_log and restarted httpd, but the file didn't appear. I've touched it

Re: [CentOS] Redirecting PHP error messages into a log file

2010-07-30 Thread Alexander Farber
So you think the httpd.* line in syslog.conf is correct? On Sat, Jul 31, 2010 at 12:48 AM, Jason Pyeron jpye...@pdinc.us wrote: -Original Message- I still would like to move those messages to a separate file though, so I've added the following line to /etc/syslog.conf and reloaded

[CentOS] Shutdown CentOS VM when closing VMWare Workstation

2010-09-09 Thread Alexander Farber
Hello, I'm using CentOS 5.5 / 16bit as a virtual machine in VMWare Workstation and have installed the VMWare Tools by running vmware-install.pl and vmware-config-tools.pl but can't figure out how to make the VM shutdown, when I shutdown the Windows PC hosting it. Does anybody please have any

[CentOS] Forbidden: can't access *.html files in /var/www/html

2010-09-29 Thread Alexander Farber
Hello, I'm using the latest CentOS with phpBB 3.0.x + postgreSQL + sendmail (relayed through gmail.com) - all those programs working fine, with no big modifications of the CentOS defaults (i.e. SELinux is on). Now I'm struggling with the seemingly simple problem, that when I put an .html file

Re: [CentOS] Forbidden: can't access *.html files in /var/www/html

2010-09-29 Thread Alexander Farber
Nope this doesn't help. I've tried both 444 and 644 for Alex.html and vice versa: 444 and 644 for the .php and .xml files. On Wed, Sep 29, 2010 at 4:52 PM, Rob Del Vecchio rob.delvecc...@gmail.com wrote:  # ls -al Alex.html index.php hello-world.php -r--r--r-- 1 root    root     599 Sep 29 15:49

Re: [CentOS] Forbidden: can't access *.html files in /var/www/html

2010-09-29 Thread Alexander Farber
On Wed, Sep 29, 2010 at 5:29 PM, Simon Billis si...@houxou.com wrote: Can you show the output of ls -laZ please? This will show the selinux context information for the files - the error is usually to do with the context of the files. Hello and thanks for your reply. The SELinux stuff is new

[CentOS] iptables failure at the last line

2010-10-05 Thread Alexander Farber
Hello, can anybody please spot an error here? # sudo service iptables start Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter[ OK ] Unloading iptables modules:[ OK ] Applying

  1   2   >