Here is how to hide your apache & php versions:
1- Login to your linux server as previliged user.
2- Open apache configuration file
# vi /etc/httpd/httpd.conf
2- Look for "ServerSignature" and change it to Off:
ServerSignature Off
3- Exit vi (by ctrl + x).
4- Open php configuration file:
# vi /etc/php.ini
5- Look for expose_php and set it to Off:
expose_php Off
6- Exit editor (ctrl + x)
7- Restart apache
# service httpd restart
* Its better to set ServerTokens to Prod as well in httpd.conf (originally it would be set to "OS").
** applies to redhat linux , fedora, centos etc.
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Wednesday, October 19, 2011
Friday, October 7, 2011
phpMyadmin deployment on linux
To learn how to deploy phpMyadmin on redhat/centos/fedora, follow the below simple steps:
Prerequisites:
1- php
2- mysql
3- apache
4- php-mysql
5- php-mcrypt
6- php-mbstring (to avoid mbstring error: "The mbstring PHP extension was not found" )
Steps:
1- cd webroot ( for e.g /var/www/html)
2- wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.5/phpMyAdmin-3.4.5-all-languages.tar.gz?r=&ts=1317983320&use_mirror=space
3- tar -zxvf phpMyAdmin-3.4.5-all-languages.tar.gz (or whatever the downloaded file name)
4- mv phpMyAdmin-3.4.5-all-languages myadmin
5- cd myadmin
6- vi config.inc.php
Prerequisites:
1- php
2- mysql
3- apache
4- php-mysql
5- php-mcrypt
6- php-mbstring (to avoid mbstring error: "The mbstring PHP extension was not found" )
Steps:
1- cd webroot ( for e.g /var/www/html)
2- wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.5/phpMyAdmin-3.4.5-all-languages.tar.gz?r=&ts=1317983320&use_mirror=space
3- tar -zxvf phpMyAdmin-3.4.5-all-languages.tar.gz (or whatever the downloaded file name)
4- mv phpMyAdmin-3.4.5-all-languages myadmin
5- cd myadmin
6- vi config.inc.php
7- 
8- Now browse http://server-ip-address/myadmin and it should work!
Subscribe to:
Posts (Atom)