UtopiaSoftware Forums

Full Version: Installing in "root"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to install unp in the "root" site directory? I am hosting several sites in one account and am trying to reduce the number of folders Im using. My server runs php with .html and .php extentions. My Main index is .html. When I try to install using a / for the news directory I get an error saying invalid directory.

EDIT: Found the answer in the code.
Here is how I fixed it. Open install.php and find

PHP Code:
    if (!preg_match('#^/[a-zA-Z0-9./]+/$#'$unpdir))
    {
        
unp_msgBox('You have entered an invalid UNP directory');
        exit;
    } 

and either remove this or comment it out like this

PHP Code:
    /*if (!preg_match('#^/[a-zA-Z0-9./]+/$#', $unpdir))
    {
        unp_msgBox('You have entered an invalid UNP directory');
        exit;
    }*/ 


Open settings.php and find:

PHP Code:
        if (!preg_match('#^/[a-zA-Z0-9./]+/$#'$value18))
        {
            
unp_msgBox('You have entered an invalid UNP directory.');
            exit;
        } 

and either remove or coment it out like before.

Nice thought, I never expected people to run it in root. But yes, that's the ideal solution.

Brian Wrote:
Nice thought, I never expected people to run it in root. But yes, that's the ideal solution.

I did this to make it easier to include the template files for the main site.

Reference URL's