Hiding information when server problem

Status
Not open for further replies.
Messages
65
Reaction score
0
Points
6
Hi,

Now that there is a problem with the server, how can I fix it where people can't view all my code?? It's like important information only I should be viewing. I can access my cpanel now but when I tried to restore it said can't access database. I will have to create a backup site elsewhere.

Nicole
 

usama_rasab27

Member
Messages
208
Reaction score
15
Points
18
Hi, I guess you want to hide the errors. All you have to do is go to CPanel and click File Manager, when the pop up box comes up, tick the 'Show Hidden Files(dotfiles)' then go to .htaccess. Add this code to a new line:

Code:
php_flag display_errors off
 
Messages
65
Reaction score
0
Points
6
Hi, I guess you want to hide the errors. All you have to do is go to CPanel and click File Manager, when the pop up box comes up, tick the 'Show Hidden Files(dotfiles)' then go to .htaccess. Add this code to a new line:

Code:
php_flag display_errors off
HEY! That helped!...but I want to display a message. What and where to display to my customers that there are updates being made to the server and it will be backup shortly?
 

peppermi

Member
Messages
118
Reaction score
8
Points
18
As I posted in your other topic
In File the file manager make a index.html or index.php then input this code

HTML:
<html>

<head>
<title>HTML Reference</title>
</head>

<body>
The content of the document......
</body>

</html>
 
Status
Not open for further replies.
Top