Archive for the tag 'allowed'

SBDavid

Increasing PHP Allowed memory size

Some times we get the following errors Fatal error: Allowed memory size of 123456 bytes exhausted

Php is setup is to limit memory usage per process. If we require more, this limit can be increased.

Edit

/usr/local/lib/php.ini

and set:

memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

to a higher value, like 20M. Save, exit, then restart apache.

Source: http://directadmin.com/

How can I change Webmin’s list of allowed IP addresses from the shell?

The file you need to modify is

/etc/webmin/miniserv.conf , in particular the allow= or deny= lines.

If the allow= line exists, it contains a list of all addresses and networks that are allowed to connect to Webmin. Similarly, the deny= line contains addresses that are not allowed to connect.

After modifying this file, you need to run

/etc/webmin/stop ; /etc/webmin/start

for the changes to take effect. Naturally, the file can only be edited by the root user.