zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Quickshare methods

November 26, 2018 by Igor Drobot Leave a Comment

Sharing is caring. For this situations there are following command line methods to provide some data to be downloaded from everywhere.
On the most common linux systems is python preinstalled or is a part of the core system,
so the next two python-examples should work like a charm.
[Read more…]

Filed Under: Linux Tagged With: Linux, PHP, Python, python3

apc.shm_size now uses M/G

March 19, 2013 by Igor Drobot Leave a Comment

php5-fpm

PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files

Solution is pretty simple change in your php.ini

from:

1
apc.shm_size=512

apc.shm_size=512

to

1
apc.shm_size=512M

apc.shm_size=512M

You may need to specify “M” for Megabyte (MB) or “G” for Gigabyte(GB) to solve this issue.

Filed Under: Linux Tagged With: apc, PHP

PHP Security

November 28, 2010 by Igor Drobot Leave a Comment

PHP

PHP reveals its presence on the server in a variety of ways: It may send an HTTP header (X-Powered-By: PHP), or append its name and version to Apache’s signature. In addition, there are easter egg URLs that return the PHP logo or some PHP authors, one of them is:
http://www.host.com/index.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000

Obviously there is no reason to let end users know about the server’s PHP version. Luckily, there is a switch in php.ini that will disable all of the above:

1
expose_php = Off

expose_php = Off

Filed Under: Linux Tagged With: PHP, PHP Security, Webserver Security

Hide PHP version

August 15, 2010 by Igor Drobot Leave a Comment

In order to do this, you need to do some sysdmin job:). I am going to specifically focus on Apache and PHP because I’m more of a LAMP user. If you use ASP on Microsofts IIS, I can’t help you (but hey!, Google is there to save your sunny day! :P)

Find your php.ini file in my case,

1
vim /etc/php5/apache2/php.ini

vim /etc/php5/apache2/php.ini

Look for the line that says: “expose_php On“
Change it to:

1
expose_php Off

expose_php Off

Now our PHP is very silent

Note by PHP developer:
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.

Filed Under: Debian, Linux Tagged With: PHP, security

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok