Category Archives: Linux Tips

Samba4 Systemd script

If you are using Samba4 AD DC with CentOS 7, you will missed the initScript for Samba4 created for older versions. CentOS 7 has no longer support initScript which now replaced with Systemd. Here we are demonstrating the Samba4 Systemd script for CentOS7:

Samba4 Backup – tdbbackup: command not found

Q: While taking Samba4 backup as described in Backup and restore an Samba AD DC wiki page, i received following error message:  

This is due to missing tdb-tools package, install it using following command:

Update: If you are still getting following error then try to add $PATH into your crontab script as… Read More »

How to convert SSL certificate from CRT format to PEM format

Question: How can I convert .crt to .pem? Answer: You can use OpenSSL in CentOS and convert the .crt certificate to .pem certificate. Run following command on terminal:

If you are on Windows, the use OpenSSL libraries for Windows and run above same command. Download OpenSSL for Windows – http://www.slproweb.com/products/Win32OpenSSL.html  

Where to download Samba 4.3 RPM for CentOS?

Question: Where can i download the RPM for Samba 4.3 for CentOS? Answer:  The SerNet Samba is the famous repo to download Samba RPMs. Unfortunately, with the release of the Samba 4.3 packages SerNet changed to SAMBA+: Samba 4.3 packages as well as all later versions are available as software subscription. What does this mean?

NameVirtualHost has no effect in Apache 2.4

Quesion: Recently, using Apache 2.4 i got the error message “NameVirtualHost has no effect and will be removed in the next release”. Can you explain this?Answer: From the apache documentation: Prior to 2.3.11, NameVirtualHost was required to instruct the server that a particular IP address and port combination was usable as a name-based virtual host.… Read More »

How to upgrade php 5.5 on CentOS


Warning: array_merge(): Argument #2 is not an array in /home3/ttt/public_html/askchief.org/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php on line 292

OK, upgrading php can be tricky because all web application depends on it. While upgrading the php you need to ensure that you use remi repository along with EPEL.

Once Remi repository is installed, use your favorite editor and enabled it.

>>> Edit enabled=0 line to enabled=1: Now run yum to update the… Read More »

How to change Qmailadmin password?

QmailAdmin is a free software package that provides a web interface for managing a Qmail system with virtual domains. It provides admin for adding/deleting users, Aliases, Forwards, Mailing lists and Autoresponders. In qmail, Qmailadmin is administrated by postmaster id, so if you forgot the postmaster’s password or just need to reset it, run following command… Read More »