Saturday, February 21, 2009

Start Konqueror by hotkey in KDE4

How to start konqueror by pressing hotkey combination, e.g. Win+E ?

Start System Settings,
click Advanced tab,
choose Input Actions,
press New Action (button on the bottom toolbar),
in General tab choose Name for your action,
in Action type: Keyboard shortcut -> Command/URL (simple),
in Keyboard Shortcut choose your shortcut, e.g. press Win+E,
in Command/URL Settings type your command (with full path if neccessary), e.g. konqueror,
press Apply (right bottom corner).

If the above description does not apply to you (e.g. KDE 4.2.2), try:
System settings
Input actions
Right click On the left panel
select menu Hotkey settings
select New Global Shortcut
then Command / URL
name your shortcut and press Enter
click Shortcut: None button (right bottom bar)
press your shortcut, i.e. Win+E
click on Command / URL dialog
paste command, i.e. konqueror

Test your shortcut, e.g. press Win+E

PHP per virtual host settings

While I decided to install Joomla CMS, I was facing following problem.
I want to configure directives for PHP on Apache per VirtualHost.
So how to do PHP + Apache + Joomla per virtual host settings?
In particular VirtualHost use the following directives.

Settings in httpd.conf:
<Directory /www/joomla/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>

<IfModule mod_php5.c>
php_value display_errors Off
php_value safe_mode On
php_value safe_mode_gid On
php_value safe_mode_include_dir /www/joomla/www
</IfModule>

Available PHP directives:
php_value, php_flag, php_admin_value, and php_admin_flag
PHPRC variable per-virtual-host

.htaccess settings for php.ini:
SetEnv PHPRC /home/user1

Resources:
php.net - config changes
php.net - php.ini - php.ini