Apache 2.2 Browser-Caching

If you want to enable the browser cache with the new Apache 2.2, you have to enable the module rewrite first and then to restart the Apache:

Add this to the File “/etc/apache2/apache2.conf” :

This is an example config, for images I choose 2,CSS 1day and for JavaScript 2 Hours from the last access.

Search engine optimization (SEO)

This article is how to improve the search engine rank like Google, Baidu, DuckDuckGo, Yahoo or Yandex.

 

Robots.txt and Sitemap

The “Robots.txt” lets the Search engines know what directory’s are allowed to crawl and what not.

The Sitemap is a map where all pages are listed so the Search engine could index all your pages.

My “Robots.txt” :

I allow to crawl everything excepted my admin folder, and I show them my site map so they know what’s all on my Blog.You could use a plug-in for your Blog or generate them by yourself, for self-made look at Sitemap Generator and for Plug-in here.

For a live preview you could see my Robts.txt here and my Site map here.

Now its better to say the search engines that you homage is new, but you could wait until they find you too.To add your web page to Google webmaster-tools click here and for Bing here.In both tools you have nice features to see how many pages are ready for the search or how many users are on your page.

Meta tags

Then you should fill up your meta tags like description and keyword so the Search engine knows what’s the theme about you homepage, I use this plug-in: Add Meta Tags.

back links

Back links are links from other pages to your page, so the search engine thinks your page have a lot of important information.For building back links you find enough tools via google.

Content

Its very important to bring good content so back links would build from alone.

Share buttons and social pages

Make your own social page and use an auto poster like this and like buttons like this to make your platform available in social networks.This brings good back links and a more users on your page.

push social

To push your social network you could try like4like and always bring new good content.

As an example my social network links: facebook profile, facebook page, blogger, twitter, blogspot, delicius, tumbler, wordpress and google plus.

Captcha

I use captchas to avoid spam on my blog but it is a problem for search engines if they don’t access to your web page so don’t overuse them.Another problem is flash,search engines are not able to read that so avoid it.

JavaScript in word press post

Sometimes I want to post some examples about JavaScript and html, but word press removes the JavaScript so it don’t work, for that I installed the JavaScript-Inline-Plugin now you could wrote your code like that:

But don’t forget so do this in the Text tab, and if you move back to Visual its gone… that’s annoying but the best what I found ….

WordPress Backup Script

I made a simple script to backup my word press every day at 12:30, if you want to make it by hand look at Backup WordPress.

script

 

Install

save this script at your server, I choose “/root”, then run this:

now we add this to the cronjob:

and add this line:

then wait and test if your server shows the backup files.

install ownCloud on a NAS

I want to install ownCloud on my NAS Server Synology ds415+ to share files, at first we download the install files from here.Then upload this file to your NAS and open it in the Browser if you got an permission error look at disk station manager synology – change web rights.Then follow the instructions and if you only have to run this service on your server you cloud install it in the current folder with a dot.And I prefer to use as database mariaDB over liteSQL.

And now we are done:

Bildschirmfoto vom 2015-03-29 17:25:42

wordpress backup problems with rewrite

I set up my new word press to my new Silent Server, after I moved the database and the ftp folder I had some troubles with the permalinks, this shows how to solve them.

Set Rights

navigate to your www folder, my one is at “/var/www”, then set the rigthts, user and the group:

Set rewrite

now I check if rewrite is enabled:

now open apache2.conf with:

and add this line:

now open sites-available/default with:

and change this:

to this:

 

After you made your changes restart your web server:

apache2 Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration

I got this error today:

This happen if the headers module from apche2 is missing.

Install with:

then restart the apche2:

Now it should work.

Backup WordPress

Its importand to make Backups, and so we make a backup from our wordpress.

At first we copy all files from our server to the local host:

copyI used the integrated FTP manage but you could use another FTP program too.

 

Now we make a dump from our database, login into your phpmyadmin, and then:

phpmyadmin

  1. Export
  2. manual to choose what database (only wordpress)
  3. if you want to backup all (more than wordpress)
  4. only wordpress
  5. compress to save store

phpmyadmin_ok

Now hit the OK Button and download the File.

If you have to use your backup look at : wordpress backup problems with rewrite.

For a backup script look at WordPress Backup Script.