You are here

Server

bash: cannot set terminal process group (3987): Inappropriate ioctl for device bash: no job control in this shell

Submitted by Druss on Wed, 2014-08-20 19:44

On a new Ubuntu 14.04 (Trusty) LTS server, I ran into the following:

$ su -c /bin/bash foo
bash: cannot set terminal process group (3987): Inappropriate ioctl for device
bash: no job control in this shell

However, the su procedure worked and I was logged in as user foo.

Drupal: PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY'

Submitted by Druss on Sat, 2012-07-07 23:38

While setting up Drupal on a friend's Ubuntu server, I ran into the following error message:

PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /var/www/mysite/includes/database/mysql/database.inc on line 42

This basically simply means that the PHP PDO extension has not been installed. It can be installed via something along the lines of:
sudo aptitude install php5-mysql

While you are at it, make sure that all the other PHP extensions that Drupal requires are also installed.

Postfix/Sendmail: Frequent emails from smmsp to root

Submitted by Druss on Fri, 2012-07-06 03:31

I just finished setting up postfix on a Debian 6 machine. All is peachy. However, when I checked my mail logs to see how things were going I noticed a number of entries for messages being sent from smmsp@example.com to root. Checking root's mail led to messages with the following content:
/usr/share/sendmail/sendmail: line 880: /usr/sbin/sendmail-msp: No such file or directory

Hiding Apache version information in Ubuntu

Submitted by Druss on Sat, 2012-06-02 00:03

If you've ever visited a webserver's error page, it will usually state the error followed by information about the server. This will customarily tend to include the webserver software, its version, possibly information about some of the modules compiled in as well as the server's address and port. While this might look generous and helpful, it also allows bad guys as well as other parties to probe the server to find out what it is running as well as other details such as version information. This information can be used for nefarious purposes.

Figure out what that site and server are running

Submitted by Druss on Sat, 2011-08-13 03:45

If you administer or program websites etc., you often find yourself wondering what the specifics of a particular website or its server are. For e.g., you might want to know if a server is running on Linux, or if a site is based on Drupal or Mambo. The following sites all assist in this endeavour:

Subscribe to RSS - Server