The Blog


Gracefull Apache2 config reload

Posted on

Login as root and type the following command
# /etc/init.d/httpd reload
# apachectl -k graceful
This is also known as gracefully restarting the Apache httpd daemon. If the daemon is not running, it is started. This differs from a normal restart in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them.

Posted in Uncategorized Leave a comment

Persistent connect to additional MySQL in a clever way.

Posted on

# create ssh key

# copy ssh key to the mysql source server
ssh-copy-id -i ~/.ssh/ [email protected] -p 2222

# use this to test ssh connection
ssh [email protected] -p 2222

# here we make persistent connection to the source DB by changing DB port
ssh -fNg -L 3307: [email protected] -p 2222

# and here we make the connection!
mysql -h -P 3307 -u root -p some_db_on_source_server

Posted in Uncategorized Leave a comment
Next Page »