Archive for the ‘System administration’ Category

Debian/Ubuntu: Basic Apache 2 security

Update 2010-10-25: I’ve added “TraceEnable Off” to the configuration (which is not the default on Debian). If you run an Apache 2 web server on a production system, it is always a good idea to make some easy configuration changes in /etc/apache2/conf.d/security to increase the server’s security: # Disable access, directory indexing and .htaccess files […]

Read more…

Ubuntu 10.04: Setup APC for PHP 5.3 and Apache2

Installing the APC (Alternative PHP Cache) using the php-apc package is straightforward: # sudo aptitude install php-apc # sudo /etc/init.d/apache2 restart# sudo aptitude install php-apc # sudo /etc/init.d/apache2 restart Using the package php-apc installs APC 3.1.3p1. If you would like to use the most recent version 3.1.4 you can manually set up the PECL package […]

Read more…

Ubuntu 10.04 & PHP 5.3: Installing pecl_http

To install the pecl_http PHP extension on Ubuntu 10.04 follow the instructions below: Install the required packages: # sudo apt-get install php-pear php5-dev libcurl4-openssl-dev# sudo apt-get install php-pear php5-dev libcurl4-openssl-dev Install pecl_http: # sudo pecl install pecl_http# sudo pecl install pecl_http Create file /etc/php5/conf.d/http.ini with the following content: extension=http.soextension=http.so Restart Apache2: # sudo /etc/init.d/apache2 restart# […]

Read more…

Microsoft CRM 4.0: Fix “TrySetFocusOnSubject” error after installing Update Rollup 12

After installing the Update Rollup 12 for Microsoft Dynamics CRM 4.0, I get an error (“Microsoft Dynamics CRM has encountered an error”) in the web frontend when closing an activity (e.g. a task). The error report says: <CrmScriptErrorReport> <ReportVersion>1.0</ReportVersion> <ScriptErrorDetails> <Message>Object expected</Message> <Line>1</Line> <URL>[…]</URL> <PageURL>[…]</PageURL> <Function>function anonymous()
{
TrySetFocusOnSubject()
}</Function> <CallStack> <Function>function anonymous()
{
TrySetFocusOnSubject()
}</Function> </CallStack> </ScriptErrorDetails> <ClientInformation> <BrowserUserAgent>[…]</BrowserUserAgent> <BrowserLanguage>en-us</BrowserLanguage> […]

Read more…

Debian/Ubuntu: Multi network/gateway ip routing setup

If you would like to connect your Debian or Ubuntu system to more than one network (e.g. with more than one physical or virtual network device) you could use the following ip routing setup to use a specific gateway for each network. Create a configuration file in /etc/network/if-up.d/ (like /etc/network/if-up.d/routing) and add one section for […]

Read more…