Kloxo Protected directory dont work

Here is the solution to this very annoying problem.

edit file


and delete everything in there and REPLACE with:


< ? php
class dirprotect__apache extends lxDriverClass {
function dbactionAdd()
function createDiruserfile()
global $gbl, $sgbl, $login, $ghtml;
$dir = "__path_httpd_root/{$this->main->getParentName()}/__dirprotect/";
$dir = "/home/httpd/{$this->main->getParentName()}/__dirprotect";
$dirfile = $dir . "/" . $this->main->getFileName();
if (!lxfile_exists($dir)) {
lxuser_mkdir($this->main->_var_username, $dir);
//lxfile_unix_chown($dir, $this->main->_var_username);
$fstr = null;
foreach($this->main->diruser_a as $v) {
$fstr .= $v->nname . ':' . crypt($v->param) . "\n";
lfile_put_contents($dirfile, $fstr );
lxfile_unix_chown($dirfile, $this->main->_var_username);
lxfile_generic_chmod($this->main->_var_username, $dirfile, "0755");
function dbactionUpdate($subaction)

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Control Panel doesn't Open

If kloxo - lxadmin stop working, run this command yum install lxlighttpd Then run service...

Switch program blank page

run this from ssh cd /sed -i 's/^;zend_/zend_/'...

Kloxo admin password reset

When your VPS is installed by us with Kloxo or LXadmin the password will 'admin' and the username...