Linux Apache Tips Tricks How To Make Your Web Server More Secured
Posted On Tue Mar 06, 2007 By hostman In Linux wallpaper Hosting forums topics about gallery sites in linux systems Forums
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:
3. look for these lines:
4. Now Change
From:
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:
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
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
; 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
Related Content
Information
Forums »
Linux wallpaper Hosting forums topics about gallery sites in linux systems »
Linux Apache Tips Tricks How To Make Your Web Server More Secured
Linux wallpaper Hosting forums topics about gallery sites in linux systems »
Linux Apache Tips Tricks How To Make Your Web Server More Secured
Title: Linux Apache Tips Tricks How To Make Your Web Server More Secured
Description: Linux Apache Tips Tricks How To Make Your Web Server More Secured
Tags: linux ,apache ,tips ,tricks ,how ,to ,make ,your ,web ,server ,more ,secured
Info: This Post Has Been Viewed 0 Times Since
Date: Tue Mar 06, 2007
Author hostman Received 0 Replies #419
Date: Tue Mar 06, 2007
Author hostman Received 0 Replies #419
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
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
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5