Tuesday, February 16, 2016

Not able to find sendmail log

If you are not able to see log in /var/log/mail.log and file is empty, check the mail logs in /var/log/syslog
tail -n 25 /var/log/syslog

pecl install stomp error

configure: error: Cannot find OpenSSL's libraries
ERROR: `/var/tmp/stomp/configure --with-openssl-dir=/usr' failed


Solution :
While installing stomp using pecl, it asks
OpenSSL install prefix (no to disable SSL support) [/usr] :
Type yes and press return key.


Do not leave the input blank.

Server sent passive reply with unroutable address. Using server address instead

Filezilla Error : Server sent passive reply with unroutable address. Using server address instead

Solution :
In FileZilla, click on Edit > Settings.
1) Under Connection, click on FTP and choose Active as the Transfer Mode.
2) Under Connection, under FTP, click on Active mode and choose “Ask your operating system for the external IP address” (the default setting).
3) Under Connection, under FTP, click on Passive mode and choose “Fall back to active mode” (this is an optional setting).

Remove Apache server info from web page header

If you are using Ubuntu or Debian
Edit file  /etc/apache2/conf-enabled/security.conf

Change “ServerTokens OS” to “ServerTokens Prod”

and
Change “ServerSignature On” to “ServerSignature Off”

Restart apache.

If you are using CentOS, RHEL or fedora
Edit file /etc/httpd/conf/httpd.conf

Change “ServerTokens OS” to “ServerTokens Prod”
and
Change “ServerSignature On” to “ServerSignature Off”

Restart apache. 

If there are no entries of these lines, add both lines in the file.
Restart apache

Apache remove php version info from the web page header


Edit your php.ini and set following attribute.

expose_php = off
Restart apache.