Add to Favourites Add to Favourites    Print this Article Print this Article

Cannot add new rule to firewall: "proc_close() failed: mktime() [function.mktime]"

Parallels Plesk Panel version 9.0.1 is installed.

The following error occurs when try to add new firewall rule through Parallels Plesk Control Panel {Home -> Settings -> Manage Firewall Rules -> Edit Firewall Configuration -> Add Custom Rule -> OK}:

Error: Could not activate firewall configuration:
proc_close() failed: mktime() [function.mktime]:
It is not safe to rely on the system's timezone settings.

How do I activate my firewall rule?

The problem is a known one. It will be fixed in future update of Parallels Plesk Panel.

As an intermediate solution you may extract shell script for firewall activation on activation step.
To extract the script login to Parallels Plesk Panel as administrator and follow {Home -> Modules -> Firewall -> Edit Firewall Configuration -> Activate}, click button {Preview} to see the script. Run it manually on the server.

Was this answer helpful?

Also Read