Archive for April, 2008

Enable service to run automatically when CentOS boots up

Monday, April 21st, 2008 by The BCM Team

chkconfig –-add

for example:


chkconfig –-add mysql

Common CentOS commands don’t work

Monday, April 21st, 2008 by The BCM Team

Say, you want to use a “service” or “ifconfig” commands under CentOS but running them in the terminal results in “command not found”.

There is an easy fix – commands are not found because they located under /sbin (not /bin). So, you’d need to run it with /sbin/service or add /sbin to the list of directories in the path

UPDATE: 08/08/2009

This problem is most likely to appear when using a su command instead of su -

Send emails from your local development Linux server

Monday, April 21st, 2008 by The BCM Team

If you are having troubles with sending out emails from your local development Linux server, as a quick fix, I suggest using Exim4

You would need to install the following packages: exim4, exim4-base and exim4-config

After they are installed -> run exim4-config to set configure it.

Enable debug menu in Safari for Windows and Mac OsX

Sunday, April 6th, 2008 by The BCM Team

To enable a debug menu in Safari browser for Windows do the following:

Windows

Add a key/value pair <key>IncludeDebugMenu</key><true/> before the closing </dict> to the following Safari configuration file:

  1. Windows XP/2000 C:\Documents and Settings\<USERNAME>\Application Data\Apple Computer\Safari\Preferences.plist

  2. Windows Vista C:\Users\<USERNAME>\Application Data\Apple Computer\Safari\Preferences.plist

and restart Safari.

Mac OsX

Run the following command in terminal:


defaults write com.apple.Safari IncludeDebugMenu 1

Very slow and laggy Adobe Photoshop or Illustrator when opening files

Sunday, April 6th, 2008 by The BCM Team

If you experience a real slowdown when using latest Adobe Photoshop or Illustrator (CS3 at the time of writing) when you open files or create new documents within the program, then you should check your system printer settings. Most definitely your default printer is offline or disconnected. Just make sure that your default printer is online (and try to avoid having invalid printers listed as well).

The slowness is caused by Photoshop/Illustrator trying to access the printer and until this request times out your Photoshop/Illustrator comes to a stop.

Apache test page instead of directory listing in Linux

Sunday, April 6th, 2008 by The BCM Team

Are you trying to set up your hosting so that if you type a URL ending with a directory name it lists all the files in that directory (in the browser), but instead of the directory listing you get an Apache test page ?

Usually, directory listing is enabled by default (at least in CentOS 4.x) in a freshly installed apache (or httpd in CentOS case). But here are the checkpoints you need to go through to make sure everything is set up correctly:

  1. Check that you have “Options +Indexes" httpd.conf inside the appropriate <Directory>...</Directory> definition.
  2. Make sure that you have removed the welcome.conf file in /etc/httpd/conf.d.This file will be displayed instead of the directory listing if you don’t remove/rename it.