Month: December 2013

Install Elgg social network on Centos

Elgg is a social network web application that could e nice as intranet for companies. Well Its a PHP application so its easy to install   First some yum packages yum install mysql mysql-server httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring wget unzip Setup an apache config <VirtualHost *:80> DocumentRoot /var/www/html/ ServerName ServerAlias ServerAdmin… Read more →

No more spam (Centos and postfix)

So i HATE spam and now to get rid of as so many as possible i go for 3 step. 1. Postfix  Get postfix to restrict witch is to allow to send email to me. No strange name and use spam block lists. Also restrict time in how many connections you can do. 2. Greylisting So the first time some… Read more →

Mailsystem Centos 6 (Postfix,Mysql,Dovecot) with TLS and SSL Part 2

So now I have en working Postfix that receive email i need something so that I can read me emails. So we will setup dovecot to use our mysql for users. and use SSL on all our connections.   Setup Mysql Create a file called dovecot-sql.conf.ext in /etc/dovecot (Ore where you want to have it) Add the following settings to the… Read more →

Mailsystem Centos 6 (Postfix,Mysql,Dovecot) with TLS and SSL

So for my virtual machines I have set up an mail system with Postfix that will look up users and domain in a Mysql server. Then store the emails in one mailbox. For users to get there mail it uses Dovecot IMAP and Squrrelmail for displaying email. This setup can be deployed all on one machine as I do. Or… Read more →

Mysql InnoDB: Error: checksum mismatch

So efter I had publish mw post i got some mysql error. The checksum did was not correct. So for solving this i had to.   Control the checksum ibdata is you innodb data file innochecksum ibdata1 -d So i have not all writen to database. so lets write then with force mysqld_safe –innodb_force_recovery 4 Then when it done kill… Read more →

Mining Litecoins and Feathercoin

Start mining some coins right now. First you need to sign up to some mining pools. I use for Litecoins and for Feathercoin You can have differnt mining task running on you GPU ore on you CPU. I at the moment only using my CPU but it i get the GPU runing as well i will update the blog. This is and… Read more →

Apache performance config

Now on all my Apache i always load this Apache config. It enabled some apache standard performance config for Apache as a good standard. KeepAlive. Gzip all transfer and local disk cache   my /etc/httpd/cond.f/01.conf NameVirtualHost *:80 NameVirtualHost *:443 #Speedning upp webres Apache config # 2 HOURS <FilesMatch “\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$”> Header set Cache-Control “max-age=7200, public” </FilesMatch> # 1 HOUR <FilesMatch “\.(xml|txt)$”>… Read more →

Fail2Ban on Centos

Fail2Ban is a small service to block unwanted traffic to you server. I use it to block ssh,and postfix loggins in to my virtual hosts. Fail2Ban scans the service loggfiles and if it find any strange traffik like ssh bruteforce. That ip will be blocket for some time. All settings are done in /etc/fail2ban/ folder. Install Have  epel repo aktivated… Read more →

%d bloggers like this: