Mass enable/disable comments

If you created nodes and then enabled comments module after that you will have all those nodes without comments. Even if you enable comments for that content type, this will only help on the new nodes created. So to do that you would probably either run some code in phpmyadmin or make action to use with VBO module.

So for drupal 6 we go to phpmyadmin and run this query

Hide an Empty Panel in Drupal (Views pane, mini panels)

I had this problem with view panes in panels. I create a view pane, add it to panel and it works nicely when there is data. But when there is not I got just some empty html data, problem is that this html data was wrapper data and it showed some CSS elements even when there was no data.

Simplenews Content Selection - sorting of nodes

In this module default sort is just terrible, terrible idea. If you are creating newsletter, chances are you will want to put newest content in it. Currently you have oldest nodes first and newest on 10th page. So you will have to change sort each time you create NL. This is just bad design.

Drupal 6 to drupal 7 migration tips

However you choose to do a migration from drupal 6 to drupal 7 if you have any complexity in your site it is going to be ugly. Lots of errors and leaps of faith :-).

I choose to do it with drush. So after the drush made what it could do. I tested the site. Not working at all, not even logging in possible. What I did is:

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.

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