How do I send smtp-auth email from the command line ?

The following is an example of an SMTP conversation where the sender is authenticated with SMTP-Auth.  Your mail server may listen on a port other than 25, maybe 465 or 587. (more…)

How do I enable sql query logging for mysql server

Add “log=/var/log/mysqld.log” under the [mysqld] section of the file “/etc/my.cnf“.

You must restart mysqld for this change to become affective. (service mysqld restart)

The general query log is a general record of what mysqld is doing. The server writes information to this log when clients connect or disconnect, and it logs each SQL statement received from clients. The general query log can be very useful when you suspect an error in a client and want to know exactly what the client sent to mysqld.

mysqld writes statements to the query log in the order that it receives them, which might differ from the order in which they are executed. This logging order contrasts to the binary log, for which statements are written after they are executed but before any locks are released. (Also, the query log contains all statements, whereas the binary log does not contain statements that only select data.)

To enable the general query log, start mysqld with the --log[=file_name] or -l [file_name] option.

If no file_name value is given for --log or -l, the default name is host_name.log in the data directory.

From: http://dev.mysql.com/doc/refman/5.0/en/query-log.html

How do I perform SHA-2 family hashing in my PHP application?

How do I perform SHA-2 family hashing in my PHP application? (more…)

Why do I see 403 Forbidden after creating a new VirtualHost…

Question:  Why do I see 403 Forbidden after creating a new VirtualHost on my apache webserver?

Submitted by: Joe Dickson

Answer: It may be that the directory or parent directory of your DocumentRoot needs execute permission.

chmod +x /path/to/directory

How do I uninstall Zend Optimizer?

How do I uninstall Zend Optimizer?

Instructions to uninstall and remove Zend Optimizer can be found at…

http://www.zend.com/support/knowledgebase.php?kbid=89&view_only=1

How do I install Zend Optimizer?

Instructions for installation can be found at…

http://www.zend.com/support/knowledgebase.php?kbid=89&view_only=1