Varnish help

So Varnish is really good caching thingy if you use drupal (or other stuff) so to see what it is doing and how, you can login to your server and try this commands.

varnishlog - See what Varnish is currently processing, you will get complete header info I think

varnishstat - Shows various information about varnish

Setting a drupal 7 Multisite to localhost

Without a powerful server drupal administration online is very slow. As I have a multisite online, for some bigger changes I decided to take it offline to localhost and try to build/change things on my computer an then upload DB online. But first I needed to configure my localhost to work with multisite.

Where is drush installed (using drush sup and search for alisases.drushrc.php)

Maybe you are wondering the same thing as I, where the heck is my drush installed. Easiest way is to write "find / -name 'drush' -type d" and you will get info. So finally you know where that alisases.drushrc.php is and you can go and add configuration for drupal 6 to drupal 7 migration.

If this doesn't help you, try commands

which drush or drush status

Fcgid and phpmyadmin 403 permission denied error

If you installed fcgi and got 403 error when trying to run phpmyadmin, you just need to add one thing and it is to edit /etc/phpmyadmin/apache.conf to add +ExecCGI in the section

<Directory /usr/share/phpmyadmin>
        Options FollowSymLinks +ExecCGI
        DirectoryIndex index.php
....

Remove root user access

Having root user access available is good foundation to have your website(s) or server hijacked. Why well they know username they need to just go through different passwords to try and guess and belive me people do have software and servers doing this so they can gain something out of that theft. Today I just checked my log files and saw some chineese IP's trying to break in.

Fcgid settings on Apache

If you are using fcgi and mpm-worker mode with your apache. You will probably need to set some variables to make your drupal sites work. As they have some stupid defaults like 128kb upload limit (really 128 kb today?) and they override your php.ini settings as now PHP is running trough this FCGI, then you need to go to

Memcache and admin

If you are planing to do some optimization for your server, I would recommend to use memcache at least for your drupal admin pages. When installed it will cache some vital tables that will make faster your admin, even if you use boost and static pages for all your content and your visitors, install this module, it is rather easy this days to do it.

More here