Unstoppable Domains โ€” Expired Auctions

How to secure your php.ini

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
NamecheapNamecheap
Watch
Impact
14
Here are a few tips of how to secure your php.ini !

Edit our php.ini by logging into shell with root :

pico /usr/lib/php.ini

And change the line:

disable_functions =
to:
disable_functions = exec, shell_exec, system, passthru

another thing you could change is

safe_mode = Off
to
safe_mode = On


another thing you could disable is
enable_dl=On
change to
enable_dl=Off
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
I run php on my local pc small server, so thanks for these tips. Just if you could explain to me further about each function, and why it should be changed. Thanks :)
 
0
•••
disable_functions stops php from being able to carry out these functions within a script http://uk.php.net/features.safe-mode (about 1/4 of the way down)

changing enable_dl to off stops php from loading any extra modules http://uk2.php.net/dl

enabling safe_mode changes some functionality of php for example when not in safe mode you can edit a file anywhere on the server, when safe_mode is on you can only write to files within a certain tree http://uk.php.net/features.safe-mode
 
0
•••
thanks for the useful tips. I just setup my own php.ini on a shared server.
 
0
•••
If you have a shared server, I assume ini_set() could be used.
 
0
•••
as long as the host has not disabled the function, if you have htaccess access on your server then some of the options that are pointless changing in your script can be changed in this file.
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back