Search found 197 matches
- Sat Jun 28, 2014 12:16 pm
- Forum: Postfix
- Topic: postfix/smtpd[2898]: fatal: no SASL authentication mechanism
- Replies: 3
- Views: 28135
Re: postfix/smtpd[2898]: fatal: no SASL authentication mecha
I think you have 2 problems. first one is with TLS; the file /etc/ssl/certs/ca-certificates.crt is missing, or can't be read by postfix. Make sure the file exists and is readable. My be something went wrong with the installation. You could try to copy it from another machine. Second problem is with ...
- Mon Jun 09, 2014 6:11 pm
- Forum: Shell
- Topic: tar (child): bzip2: Cannot exec: No such file or directory
- Replies: 1
- Views: 23999
Re: tar (child): bzip2: Cannot exec: No such file or directo
sound to me that bzip2 is not installed on your system.
check for the command bzip2
if you can find it, install it on Debian (or ubuntu) with
If you use another flavor of linux, either use yum (CentOS, RedHat, mandrive, ...) or emerge (gentoo)
check for the command bzip2
if you can find it, install it on Debian (or ubuntu) with
Code: Select all
apt-get install bzip2
- Wed May 28, 2014 6:08 pm
- Forum: Servers
- Topic: DNS-server used in DDOS attack
- Replies: 1
- Views: 29329
Re: DNS-server used in DDOS attack
The same can happen if you are running a NTP-server (Network Time Protocol). This service is less common to be set on a web-server then a DNS-server. But if it is running it can also be (mis-)used to setup a DDoS-attack. The easiest solution is to upgrade to the latest version (at least 4.2.7p26). M...
- Wed May 28, 2014 5:48 pm
- Forum: Servers
- Topic: DNS-server used in DDOS attack
- Replies: 1
- Views: 29329
DNS-server used in DDOS attack
Last week someone come too me with the following problem: He received a mail from his hosting-provider that is server was used in DNS DDoS-attack. I find it it important enough to post it here. The problem was the configuration of his DNS-server (named), a common problem. The solution is just a add ...
- Tue May 13, 2014 7:57 pm
- Forum: Shell
- Topic: read piped info into a script
- Replies: 1
- Views: 19410
Re: read piped info into a script
I think piped info is just as standard input.
Something like this should work
Standard input get stored in variable MESSAGE
You can test the script with this
echo "this is a test" | script.sh
Something like this should work
Code: Select all
MESSAGE="$(< /dev/stdin)"
You can test the script with this
echo "this is a test" | script.sh
- Fri Mar 14, 2014 6:56 pm
- Forum: SQL
- Topic: Solved: Increment a number in database
- Replies: 2
- Views: 22002
Re: Increment a number in database
You can try the following, it should work in MySQL:
This way MySQL is doing the counting, and not your application or script.
Doesn't have to +1, it can do any counting.
Code: Select all
UDPATE table SET num= num +1 WHERE id='x';
Doesn't have to +1, it can do any counting.
- Tue Nov 05, 2013 8:34 pm
- Forum: Apache
- Topic: Apache won't start
- Replies: 1
- Views: 25000
Re: Apache won't start
I had the same problem once.
I forgot to add the "hostname" in the file:
/etc/hosts
127.0.0.1 localhost HOSTNAME
I forgot to add the "hostname" in the file:
/etc/hosts
127.0.0.1 localhost HOSTNAME
- Mon Oct 21, 2013 7:18 pm
- Forum: Shell
- Topic: Solved: Replace a line in a file with shell
- Replies: 2
- Views: 22333
Re: Replace a line in a file with shell
You can use sed It is a very useful program with lots of option (Check the man page > man sed ) sed -i "s/12345678/${REPLACE}/g" $FILE this replaces the string 12345678 with the contents of variable $REPLACE in the file $FILE. the -i option let you edit the file But if you want to replace ...
- Tue Oct 15, 2013 8:44 pm
- Forum: PHP
- Topic: Change the timezone for a script
- Replies: 2
- Views: 23511
Re: Change the timezone for a script
If you want to set it for all the scripts,
you can set it in php.ini
you can set it in php.ini
Code: Select all
[Date]
date.timezone = Your/Timezone
- Tue Oct 15, 2013 6:02 pm
- Forum: PHP
- Topic: Change the timezone for a script
- Replies: 2
- Views: 23511
Re: Change the timezone for a script
You can use the date_default_timezone_set() function
Code: Select all
date_default_timezone_set('America/Los_Angeles');
print date("Y-m-d");
date_default_timezone_set('Europe/Brussels');
print date("Y-m-d");