Linux Apache Tips Tricks How To Make Your Web Server More Secured

Mobile
feeds
Welcome Login | Register

Linux Apache Tips Tricks How To Make Your Web Server More Secured
  Forums Index
      » Linux Hosting Forums
        » » Linux Apache Tips Tricks How To Make Your Web Server More Secured



Linux Apache Tips Tricks How To Make Your Web Server More Secured
Post Description:
Post Tags: linux, apache, tips, tricks, how, to, make, your, web, server, more, secured, linux hosting, troubleshoot, help, support advise, questions, answers
This Post Has Been Viewed 410 Times Since Tue Mar 06, 2007 2:47 pm Posted By hostman with 0 replies
Linux Apache Tips Tricks How To Make Your Web Server More Secured
Today, i will show you a simple thing or tip you can use to make sure server a little more secured.

Often you see on some web pages you see the php error and it shows your absolute path and your file name. On a production server, its best to turn off all errors.

WARNING: before you attempt something like this, you should always make a backup copy of your php.ini file.

So how do you disable display errors in Apache? - I have a Redhat (fedora) seerver,,, Well the answer is simple. take these steps:

1. login to your server linux shell command as root.
2. Now edit the php.ini file with this command:
     Code:
nano /etc/php.ini

3. look for these lines:
     Code:
; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = Off

4. Now Change
From:
     Code:
display_errors = Off
To:
     Code:
display_errors = On

Save your changes by hiting Control + x and type y (for yes) at the prompt
5. Now that you have saved your changes, restart http server for the changes to take affect:
     Code:
/etc/init.d/httpd restart


Now your server will not show up the error. Remember, this should be done in a production environment. Ofcourse you would leave this Off in a testing server so you can see the errors.

If you have any comments or questions, please reply. Thanks


Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About Linux Apache Tips Tricks How To Make Your Web Server More Secured




(0) Comments