Hide php.ini and php.cgi from the people

software development

#1

How I can hide php.ini and php.cgi from the people? because any people can see my configuration.
I tried it putting commands on .httaccess but not working.

Any suggestions?


#2

If your php.cgi and php.ini are in /home/user/domain.com/cgi-bin/ add this to your /home/user/domain.com/cgi-bin/.htaccess

[code]Options +ExecCGI -Indexes +FollowSymLinks -Includes

<FilesMatch “^php.(ini|cgi)$”>
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS

[/code]
_____
[color=#00CC00] _ _| _ _ _ _|_ _ (_|_\|<(_||_)(_|(_| |(/_ | [/color]
:~


#3

Thank you for your response, has helped me a lot!
Gracias por tu respuesta me ha ayudado mucho!

Certainly I have enjoyed very much your web page, it makes things very interesting! I do not known