[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 baseurl=http://dev.centos.org/centos/$release

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 Al

[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

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 mysi

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 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 gpgkey=http://dev.centos.org/ce

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 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 ta

[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 accou

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 xx.

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 T

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 sdb6

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 http://smartmontoo

Re: [CentOS] Switching to php53

2011-04-30 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 http://lists.centos.org/mailman/l

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

2011-04-30 Thread Alexander Farber
Hello Mark and others, On Thu, Apr 28, 2011 at 10:21 PM, 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: mismatch_cnt is not

[CentOS] certbot stopped working on CentOS 7: pyOpenSSL module missing required functionality

2020-10-05 Thread Alexander Farber
Hello fellow CentOS users, I had this cronjob working for many moons on CentOS 7.8.2003: #minute hourmdaymonth wdaycommand 6 6 * * 1 certbot renew --post-hook "cat /etc/letsencrypt/live/raspasy.de/fullchain.pem /etc/letsencrypt/live/ ras

Re: [CentOS] certbot stopped working on CentOS 7: pyOpenSSL module missing required functionality

2020-10-05 Thread Alexander Farber
Yes, I had a typo in the mail, but not in the cronjob Still wondering how to get certbot-1.7.0-1.el7.noarch working on CentOS 7 again. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos

[CentOS] CentOS 8.2: error running non-shared postrotate script for /var/log/mysql/mysqld.log

2020-12-05 Thread Alexander Farber
Hello fellow CentOS users! I have installed CentOS 8.2.2004 with the following packages: mysql-common-8.0.21-1.module_el8.2.0+493+63b41e36.x86_64 mysql-8.0.21-1.module_el8.2.0+493+63b41e36.x86_64 mysql-errmsg-8.0.21-1.module_el8.2.0+493+63b41e36.x86_64 mysql-server-8.0.21-1.module_el8.2.0+493+63b

[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/localtim

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 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 selected >     on install or changed. is the

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 = 2097

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 [root@pref

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 wrote: > I'm trying to configure mail forwarding through Gmail > on CentOS 6 with postfix, following the blog > http://carlton.oriley.

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=, size=609, nrcpt=1 (queue active) postfix/

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

2011-10-04 Thread Alexander Farber
On Tue, Oct 4, 2011 at 9:18 PM, Alexander Farber wrote: > postfix/smtp[2061]: F10CC31D62CC: to=, > orig_to=, 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[74.125.39.109] said: 530 5.7.0 Must issu

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 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: >> 2061:error:140DC0

[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 2>&1' afarber and this has served me well, I don't want to install anything else like daemont

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

2011-10-04 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 htt

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: AuthInfo:smtp.

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 http://lists.centos.org/mailman/

[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 2>&1' afarber And started my script (a T

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 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 /

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 wrote: > http://serverfault.com/questions/318742/etc-inittab-respawn-scr

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 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 list CentOS@centos.org

[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 modules:

[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): /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 m

[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 daemon

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 Аlеxan

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 s

[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 the

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] 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 hi

[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 int

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 wrote: >> # ls -al Alex.html index.php hello-world.php >> -r--r--r-- 1 root    root     599 Sep 29 15:49 Alex.html >> -rw-r--

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 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 for me. Yes I h

[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 iptables

Re: [CentOS] iptables failure at the last line

2010-10-05 Thread Alexander Farber
Hello Nicolas, On Tue, Oct 5, 2010 at 11:01 AM, Nicolas Thierry-Mieg wrote: >> Any hints on how to debug those issues? > > the same way you debug stuff when you can't see the problem by just > staring at it: reduce it to a minimal error-case. So, remove some of > those /etc/sysconfig/iptables lin

Re: [CentOS] iptables failure at the last line

2010-10-05 Thread Alexander Farber
Seems to work now, thank you (I was having -p tcp instead of -p udp): *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 194.247.190.0/24 -j DROP -A INPUT -p icmp -m icmp --icmp-type

[CentOS] How to install and update a src rpm?

2010-10-22 Thread Alexander Farber
Hello, is there please a way to install and later update a src rpm - instead of locating and downloading that package manually? I've run: "yum install rpm-build mock yum-utils" successfully. But when I try to run "yumdownloader --source httpd", I get the error listed at the bottom of my mail. D

[CentOS] How to install PHP PEAR stuff best?

2010-11-25 Thread Alexander Farber
Hello CentOS users, I'm using gChartPhp by having copied it into /var/www/html dir. It works ok, but I wonder how to better install/organize/maintain PEAR "packages" under CentOS? I've got the php-pecl rpm installed too, wonder if it's helpful here. Or maybe just add a dir to php.ini? Please sh

Re: [CentOS] How to install PHP PEAR stuff best?

2010-11-26 Thread Alexander Farber
Maybe I should just copy gChartPhp's files here: # ls GChartPhp/PEAR/ gBarChart.phpgMapChart.phpgScatterChart.php gChart.php gMeterChart.php gStackedBarChart.php gConcentricPieChart.php gOverlappedBarChart.php gVennDiagram.php gFormula.php

Re: [CentOS] How to install PHP PEAR stuff best?

2010-11-26 Thread Alexander Farber
Hello, On Fri, Nov 26, 2010 at 1:31 PM, Kai Schaetzl wrote: > I don't quite understand your whole question. What has this to do with > PEAR? It's not a PEAR package, it's a library that's hosted on > code.google.com. yes, but it has the subdir called "PEAR" in it... If someone would ask: "how

[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 li

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] 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 a

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 Wildman

[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 *filte

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 do_dow

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 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 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 modi

[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 23

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 wrote: > From: Alexander Farber >> [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.STA

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 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 requests."

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 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 somewhere around 100

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

2009-02-13 Thread Alexander Farber
Hello CentOS users, I have problems posting the question below to the Nagios mailing list (my subscription is not accepted for some reason). Has anybody of you already had this probably frequent problem with Nagios in CentOS? I can't use check_squid from command-plugins.cfg (s. below) Thank you f

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

2009-02-13 Thread Alexander Farber
I still think my question isn't offtopic here - seeing how people discuss procmail/logrotate/etc. On Fri, Feb 13, 2009 at 2:17 PM, Rainer Duffner wrote: > Alexander Farber schrieb: >> I have problems posting the question below >> to the Nagios mailing list (my subscription is

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 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 -ri" for com

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 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 /etc/nagios/command-plugi

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 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 thin

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 http://lists.centos.org/mailman/

[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 Window

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 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 boxes configured i

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 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 (Final) # rpm -qa|grep

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 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 to authorize the r

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"

[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 for

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 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 "C

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 2>&1 > /tmp/pref.txt Do you think I still need setsid(); chdir("/"); and umask(0); ? Regards Alex ___ CentOS mailing list CentOS@centos.o

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 2>&1' nobody Regards Alex ___ CentOS mailing list CentOS@centos.org http://lists.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 http://list

  1   2   >