[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

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

Re: [CentOS] /dev/md1 => 93% Used. Warning. Disk Filling up. - what would be safe to delete in /boot ?

2018-02-07 Thread Alexander Farber
Thank you Pete for the very insightful answer! This has worked like a charm - On Wed, Feb 7, 2018 at 10:16 AM, Pete Biggs wrote: > > In fact there are a number of tools to help you. By default yum keeps > 5 versions of old kernels (which is usually too many for the default

[CentOS] /dev/md1 => 93% Used. Warning. Disk Filling up. - what would be safe to delete in /boot ?

2018-02-07 Thread Alexander Farber
Hello CentOS users, in the recent time I keep getting the logwatch warnings from my 2 dedicated servers running CentOS 7.4.1708. I guess because of the numerous kernel updates (because of Spectre+Meltdown) in the near past? Could someone please suggest me, which files in my /boot partition

Re: [CentOS] File access in Apache 2.4

2017-11-23 Thread Alexander Farber
Hi David, On Tue, Nov 21, 2017 at 3:19 AM, david wrote: > I'm having file-access problems in Apache 2.4 under Centos 7. In > particular: > > - I have a file that's readable to every user and every application, > (writeable by only one user), but my CGI scripts cannot read it. >

Re: [CentOS] An rpm package with country flags in PNG format for CentOS 6

2017-02-10 Thread Alexander Farber
awstats is good suggestion, thank you Frank Also found https://github.com/hjnilsson/country-flags - public domain and any size ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos

[CentOS] An rpm package with country flags in PNG format for CentOS 6

2017-02-10 Thread Alexander Farber
Hello fellow CentOS users, does anybody please know a package for CentOS 6 with at least 200 country flag images in PNG format and (lowercased or uppercased) ISO-conform 2-letter naming (like "us.png", "de.png", "ru.png", ...)? This does not have to be a specific graphic-related package, but can

Re: [CentOS] CentOS 6 - logwatch report not in HTML format

2016-08-31 Thread Alexander Farber
You should have provided more info initially. "goes out in text format" might mean several things. On Wed, Aug 31, 2016 at 5:31 PM, Arun Khan <knu...@gmail.com> wrote: > On Wed, Aug 31, 2016 at 7:58 AM, Alexander Farber > <alexander.far...@gmail.com> wrote: &g

Re: [CentOS] CentOS 6 - logwatch report not in HTML format

2016-08-31 Thread Alexander Farber
logwatch is run as cronjob. On Wed, Aug 31, 2016 at 4:11 PM, Arun Khan <knu...@gmail.com> wrote: > On Mon, Aug 29, 2016 at 10:24 PM, Alexander Farber > <alexander.far...@gmail.com> wrote: > > No, I mean there is sometimes a variable for mail format too: > > The

Re: [CentOS] CentOS 6 - logwatch report not in HTML format

2016-08-29 Thread Alexander Farber
Arun Khan <knu...@gmail.com> wrote: > On Sun, Aug 28, 2016 at 10:56 PM, Alexander Farber > <alexander.far...@gmail.com> wrote: > > Maybe the format is set in > > > > sudo crontab -l > > You mean in the way it is invoked from the cron entry? > > > _

Re: [CentOS] CentOS 6 - logwatch report not in HTML format

2016-08-28 Thread Alexander Farber
Maybe the format is set in sudo crontab -l Am Montag, 29. August 2016 schrieb Arun Khan : > CentOS 6 (amd64) up to date with latest security / bug fixes. > > The logwatch reports come in plain text even though the config states HTML. > > > mailer = "/usr/sbin/sendmail -t" > TmpDir = /tmp >

Re: [CentOS] haproxy + Apache + virtual hosts -> wrong host is displayed

2016-06-24 Thread Alexander Farber
Ok, I had to add ServerAlias for each server, didn't think of it because before I had a mod_rewrite rule to remove the "www." prefix... On Fri, Jun 24, 2016 at 9:58 PM, Alexander Farber < alexander.far...@gmail.com> wrote: > > On CentOS 7.2.1511 I have installed: > ha

[CentOS] haproxy + Apache + virtual hosts -> wrong host is displayed

2016-06-24 Thread Alexander Farber
Hello, I hope my question is not off-topic here. On CentOS 7.2.1511 I have installed: haproxy-1.5.14-3.el7.x86_64 httpd-2.4.6-40.el7.centos.1.x86_64 The /etc/haproxy/haproxy.cfg binds HAProxy to ports 80 and 443 and accepts HTTPS to slova.de: defaults modehttp

Re: [CentOS] Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?

2016-06-21 Thread Alexander Farber
I think I have finally figured it out - http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-6.html says that "-j REDIRECT" is just a shortcut for "-j DNAT" with destination address being the one of the interface: "There is a specialized case of Destination NAT called redirection: it is a

Re: [CentOS] Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?

2016-06-21 Thread Alexander Farber
Hello Gordon and others On Tue, Jun 21, 2016 at 4:13 PM, Gordon Messmer <gordon.mess...@gmail.com> wrote: > On 06/21/2016 02:30 AM, Alexander Farber wrote: > >> -A PREROUTING -p tcp -m tcp -d 144.76.184.154/32 --dport 80 -j REDIRECT >> --to-ports 8080 >> > > &

Re: [CentOS] Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?

2016-06-21 Thread Alexander Farber
Hello again, unfortunately the following /etc/sysconfig/iptables file does not work: *nat :INPUT ACCEPT :OUTPUT ACCEPT :PREROUTING ACCEPT :POSTROUTING ACCEPT #-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 -A PREROUTING -p tcp -m tcp -d 144.76.184.154/32 --dport 80 -j

[CentOS] Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?

2016-06-20 Thread Alexander Farber
Good evening, on a CentOS 7 LAMP (not gateway) dedicated server I am using iptables-services with the following /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

Re: [CentOS] Error: Could not find or load main class with OpenJDK and Oracle Java

2016-06-17 Thread Alexander Farber
Nevermind, I had to move my test file under thepackagename/TheClassName.class and then it runs fine. However my real program [1] consisting of few jar-files still does not run on CentOS (while running fine on Windows). I have to investigate more and will ask a separate question. Regards Alex

[CentOS] Error: Could not find or load main class with OpenJDK and Oracle Java

2016-06-17 Thread Alexander Farber
Hello fellow Linux users, on CentOS 7.2 I have successfully downloaded and installed Oracle Java [1] with: # rpm -Uvh jdk-8u91-linux-x64.rpm Also there is already OpenJDK installed: # rpm -qa | grep -i jdk java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el7_2.x86_64

Re: [CentOS] iptables.service listed as: not-found inactive dead

2016-05-31 Thread Alexander Farber
-services # systemctl enable iptables # systemctl start iptables And it seems to work well now Regards Alex On Tue, May 31, 2016 at 3:29 PM, Marcelo Roccasalva < marcelo-cen...@irrigacion.gov.ar> wrote: > On Tue, May 31, 2016 at 9:57 AM, Alexander Farber < > alexander.f

[CentOS] iptables.service listed as: not-found inactive dead

2016-05-31 Thread Alexander Farber
Hello fellow CentOS users, on a freshly installed 7.2 machine and after reading https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html I try to enable iptables with following commands: # cat

Re: [CentOS] Socket behavior change from 6.5 to 6.6

2015-01-16 Thread Alexander Farber
What about SO_LINGER at the Linux side, have you tried that? http://stackoverflow.com/questions/3757289/tcp-option-so-linger-zero-when-its-required On Fri, Jan 16, 2015 at 1:18 PM, Glenn Eychaner geycha...@mac.com wrote: Since you always use the same local port - maybe you need to set

Re: [CentOS] Socket behavior change from 6.5 to 6.6

2015-01-15 Thread Alexander Farber
Since you always use the same local port - maybe you need to set SO_REUSEADDR option. Greetings from Germany Alex ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Changing LANG from de_DE to en_US in CentOS 6

2014-12-21 Thread Alexander Farber
Hello, on a Macbook with OSX Yosemite (which prints de_DE.UTF-8 as value of $LANG in Terminal) and VmWare Fusion 7 I have installed CentOS 6.6 minimal. When I ssh to my new VM as root, the $LANG is de_DE.UTF-8 too. I would like it to be en_US.UTF-8 instead. I have grepped /etc and /root for

Re: [CentOS] Not To James B. Byrne

2014-11-14 Thread Alexander Farber
On Wed, Nov 12, 2014 at 4:46 PM, Kai Schaetzl mailli...@conactive.com wrote: That's ridiculous, you don't even know what's wrong or if it's wrong at all or what you want him to do but you have to cry it out loud to the list to put social pressure on him. No, actually it's more like you have to

[CentOS] To James B. Byrne

2014-11-11 Thread Alexander Farber
Dear James, everyday I look into my Gmail SPAM folder and your mails (sent to Centos list) are there. Noone else is there but you. Please finally fix your MX records or whatever is needed. No offence Greetings from Germany Alex ___ CentOS mailing list

Re: [CentOS] To James B. Byrne

2014-11-11 Thread Alexander Farber
intended. Just moral support meant. Valeri On Tue, November 11, 2014 10:16 am, Alexander Farber wrote: Dear James, everyday I look into my Gmail SPAM folder and your mails (sent to Centos list) are there. Noone else is there but you. Please finally fix your MX records or whatever is needed

Re: [CentOS] To James B. Byrne

2014-11-11 Thread Alexander Farber
Of couse I could explain my Gmail mailbox not move messages by James - but I assumed the person sending 3-4 messages daily to this mailing list might be asked to consider to fix his own settings (MX and http certificate). The Chrome warning for harte-lyne.ca looks dreadful by the way. Regards

Re: [CentOS] To James B. Byrne

2014-11-11 Thread Alexander Farber
Reindl, you should relax a bit. I didn't mean exactly MX, just meant a heads up to take a look at own configs. I like how you defend using a broken http cert. Regards Alex On Tue, Nov 11, 2014 at 7:42 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 11.11.2014 um 19:34 schrieb Alexander

Re: [CentOS] Need help for issue with /etc/ppp/ip-down in Centos 6.4 64 bits

2014-09-01 Thread Alexander Farber
Have you tried: # fgrep -r ip-down /etc On Mon, Sep 1, 2014 at 11:35 AM, nampt2 nam_phamt...@yahoo.com wrote: I have question about /etc/ppp/ip-down What 's the script call this one when ppp interface down ? Or how can i check it's working ?

Re: [CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide

2014-08-18 Thread Alexander Farber
Thanks Adam, it works for me now and I have summarized my setup at: http://serverfault.com/questions/619537/use-postfix-and-spamassassin-packages-on-centos-6-to-reject-spam-without-custo I don't see a reason to add a milter or amavis - because my server is idling. Regards Alex On Thu, Aug

Re: [CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide

2014-08-12 Thread Alexander Farber
Hello again, here is my solution on how to use Postfix + Spamassassin on CentOS in 4 steps: 1) yum install spamassassin 2) useradd spam 3) Add the following line to /etc/postfix/header_checks: /^Subject: \[SPAM\]/ DISCARD 4) Add the following lines to /etc/postfix/master.cf: smtp

[CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide

2014-08-11 Thread Alexander Farber
Hello fellow CentOS-users, on the net there are lots of Spamassassin related HOWTOs - describing how to create a shell script for Postfix and how to install Spamassassin and start its spamd daemon - step by step. Additionally antivirus setups are described... But I have a strong feeling, that

Re: [CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide

2014-08-11 Thread Alexander Farber
scratch. (Unless I have misunderstood your question, then I am sorry). Regards Alex On Mon, Aug 11, 2014 at 1:04 PM, Adam King ki...@sghs.org.uk wrote: whats your database user in spamd.conf? - Original Message - From: Alexander Farber alexander.far...@gmail.com So I have installed

Re: [CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide

2014-08-11 Thread Alexander Farber
Hello again, here is what I'm trying at my CentOS 6.5: 1) Installed postfix and spamassassin packages 2) Configured postfix - it works well (I omit details here) 3) Added -x to the SPAMDOPTIONS in /etc/sysconfig/spamassassin 4) Added the following 2 lines to the /etc/postfix/master.cf: smtp

[CentOS] How to update MySQL with CentOS 6 in most unintrusive way - in regard to perl and PHP packages

2014-08-05 Thread Alexander Farber
Dear fellow CentOS users, for my few hobby projects (web games + forums) I have been using CentOS 5 (then 6) with Drupal and PostgreSQL plus few custom PHP and Perl scripts written by mysef. Since PostgreSQL version delivered with CentOS package has been a bit dated, I always used the PGDG

Re: [CentOS] don't use centos 7 as a developer workstation

2014-08-04 Thread Alexander Farber
Oh noes, are sed and gzip not included? On Sun, Aug 3, 2014 at 1:19 PM, Farkas Levente lfar...@lfarkas.org wrote: Don't use CentOS 7 as a developer workstation since currently there is not included any developer IDE. ___ CentOS mailing list

[CentOS] Tuning MySQL - what's the best place for mysqld parameters?

2013-11-11 Thread Alexander Farber
Hello CentOS users, for a Wordpress website I have installed mysql-server-5.1.69-1.el6_4.x86_64 and run /usr/bin/mysql_secure_installation on a CentOS 6.4 machine with mucho RAM (32 GB) and I wonder, what would be the best place for the mysqld parameters descibed at

[CentOS] How to use watchdog daemon with hardware watchdog driver interface?

2013-09-18 Thread Alexander Farber
Good morning! On a CentOS 6.4 / 64 bit server I have installed the watchdog 5.5 package. The rpm -qi watchdog states: The watchdog program can be used as a powerful software watchdog daemon or may be alternately used with a hardware watchdog device such as the IPMI hardware watchdog driver

Re: [CentOS] How to use watchdog daemon with hardware watchdog driver interface?

2013-09-18 Thread Alexander Farber
Hello Steve, yes, I have that device: # ll /dev/watchdog crw-rw 1 root root 10, 130 Sep 17 23:21 /dev/watchdog # ps uawwx|grep w[a]tchdog root 6 0.0 0.0 0 0 ?SSep17 0:00 [watchdog/0] root10 0.0 0.0 0 0 ?SSep17 0:00

[CentOS] MySQL 5.1.69 at CentOS 6.4 doesn't know enable-named-pipe?

2013-09-13 Thread Alexander Farber
Hello, I've only had experience with PostgreSQL sofar, but have now to install MySQL (and WordPress) on a CentOS 6.4 /64 bit server. I have installed the mysql-5.1.69-1.el6_4.x86_64 package and executed the following commands: # chkconfig mysqld on # service mysqld start # /usr/bin/mysqladmin

Re: [CentOS] MySQL 5.1.69 at CentOS 6.4 doesn't know enable-named-pipe?

2013-09-13 Thread Alexander Farber
Thank you, that was it. I didn't realize mysqld-nt means Windows only ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Make server reboot by itself instead of dropping to kernel debugger

2013-08-23 Thread Alexander Farber
Hello, on OpenBSD if you put ddb.panic=0 into /etc/sysctl.conf, the server won't drop into debugger on kernel panic. Is there please a similar setting for CentOS 6.4 / 64 bit? The background is that I have a new dedicated server with Haswell CPU and once a month it is stuck, displaying kernel

Re: [CentOS] Make server reboot by itself instead of dropping to kernel debugger

2013-08-23 Thread Alexander Farber
I've ended up doing this (hope it's valid for CentOS 6.4): # echo 10 /proc/sys/kernel/panic # echo kernel.panic=10 /etc/sysctl.conf ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Make server reboot by itself instead of dropping to kernel debugger

2013-08-23 Thread Alexander Farber
Thank you, I have this # dmesg|grep -i watch NMI watchdog enabled, takes one hw-pmu counter. iTCO_wdt: Intel TCO WatchDog Timer Driver v1.07rh do you have any tips or doc pointers? ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] Make server reboot by itself instead of dropping to kernel debugger

2013-08-23 Thread Alexander Farber
Ok, sorry - I've found the man watchdog and man watchdog.conf ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Make server reboot by itself instead of dropping to kernel debugger

2013-08-23 Thread Alexander Farber
I am not sure though, if I need to start the watchdog daemon at all - because I altready have these lines in my dmesg: iTCO_vendor_support: vendor-support=0 iTCO_wdt: Intel TCO WatchDog Timer Driver v1.07rh iTCO_wdt: Found a Lynx Point TCO device (Version=2, TCOBASE=0x1860) iTCO_wdt: initialized.

[CentOS] CentOS 6.4 with VMWare Fusion on MBA 2013

2013-07-12 Thread Alexander Farber
Hello, is anybody successfully using CentOS 6.4 with VMWare Fusion 5 on a Macbook? I have tried moving a CentOS 6.4 VM from VMWare Workstation on Win 7 (where it works well) to VMWare Fusion on a Macbook Air (2013) and when it boots it says: Detected CPU family 6 model 69 unsupported

[CentOS] Finding matching words in a word game

2013-03-05 Thread Alexander Farber
Hello, is there maybe a clever way of finding all possible words from a given set of letters by means of PostgreSQL (i.e. inside the database vs. scanning all database rows by a PHP script, which would take too long) - if the dictionary is kept in a simple table like: create table good_words (

Re: [CentOS] Finding matching words in a word game

2013-03-05 Thread Alexander Farber
I apologize - sent to a wrong mailing list! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Using postfix in CentOS 6 to relay mails to first.l...@gmail.com

2013-01-16 Thread Alexander Farber
Hello - On Tue, Jan 15, 2013 at 3:05 PM, Wietse Venema wie...@porcupine.org wrote: http://www.postfix.org/BASIC_CONFIGURATION_README.html with CentOS 6 I've ended up adding inet_interfaces = all virtual_alias_domains = videoskat.de balkan-preferans.de to /etc/postfix/main.cf and

[CentOS] Using postfix in CentOS 6 to relay mails to first.l...@gmail.com

2013-01-15 Thread Alexander Farber
Hello fellow CentOS users, I'm using: # cat /etc/*release CentOS release 6.3 (Final) # rpm -qa | grep post postfix-2.6.6-2.2.el6_1.x86_64 on 2 servers: preferans.de and (yes, funny name) static.103.78.9.176.clients.your-server.de I own several domains and would like all incoming mails

Re: [CentOS] Using postfix in CentOS 6 to relay mails to first.l...@gmail.com

2013-01-15 Thread Alexander Farber
Thanks - On Tue, Jan 15, 2013 at 2:10 PM, John Doe jd...@yahoo.com wrote: Tried both MXs and none answered... $ telnet static.103.78.9.176.clients.your-server.de 25 Trying 176.9.78.103... I've opened the firewall for 176.9.78.103 only sofar... (doing hosts one by one). Is mayb postfix

[CentOS] Doubled up RAM to 32 GB - now how to speed up a LAPP server?

2012-09-29 Thread Alexander Farber
Dear CentOS users, I run a small Facebook game at a CentOS 6.3 machine with PostgreSQL 8.4.3 + few PHP scripts + 1 Perl daemon and even though the server worked ok, I've suggested my users to double up the RAM to 32 GB and they have collected money for that. Now my problem is that I don't know,

Re: [CentOS] Doubled up RAM to 32 GB - now how to speed up a LAPP server?

2012-09-29 Thread Alexander Farber
Sorry a typo, I have max_connections = 100 in postgresql.conf (I was advised not to change that number). ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Alexander Farber
Hello, I'm using CentOS 6.2 with the stock rpm php-5.3.3-3.el6_2.8.x86_64 and the following /etc/php.ini file: error_reporting = E_ALL ~E_DEPRECATED display_errors = Off error_log = /var/log/php/php_errors.log and that file is very useful for me because I have many custom PHP-scripts at

Re: [CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Alexander Farber
Hello Luigi and others, On Tue, Jun 5, 2012 at 4:04 PM, Luigi Rosa li...@luigirosa.com wrote: Alexander Farber said the following on 05/06/12 15:57: So my question is for how to rotate it (esp. since it should be owned by apache user) - what do you guys use? the standard logrotate config

Re: [CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Alexander Farber
And also the files I rotate by the /etc/logrotate.d/httpd belong to root and not Apache # ls -al /var/log/httpd/my_vhost_1/ -rw-r--r--. 1 root root 144298773 Jun 5 16:17 access_log -rw-r--r--. 1 root root 391503903 May 13 03:18 access_log-20120513 -rw-r--r--. 1 root root 369049605 May 20 03:35

[CentOS] CentOS 6.2: suspending vim with ctrl-z and resuming with fg - stopped working

2012-05-26 Thread Alexander Farber
Hello, pardon my chaotic question, but does anybody have an idea, why can't I suspend vim-enhanced-7.2.411-1.6.el6.x86_64 with a CTRL-Z, then execute few commands at my bash prompt and then get back to the vim session again with fg? It has stopped working at my CentOS 6.2 machine (I haven't

[CentOS] Block outgoing connections for certaing uids (root, apache, nobody)

2012-04-04 Thread Alexander Farber
Good morning With iptables in CentOS 5 and 6 Linux - how can you please prevent processes running as root, apache or nobody from initiating outgoing connections? On CentOS 5 Linux I've tried putting these lines into /etc/sysconfig/iptables: -A OUTPUT -m owner --uid-owner root -j DROP -A OUTPUT

Re: [CentOS] Block outgoing connections for certaing uids (root, apache, nobody)

2012-04-04 Thread Alexander Farber
Yep, I've locked out myself out of the dedicated server today. The numeric uids work, thank you. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

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

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

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

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:

  1   2   >