Jump to content

Install problem


scrobie

Recommended Posts

Hi

I hired a new Linux server. but when I installed phpvms errors. There was the missing modules. phpvms need to install the modules for the server. If you are happy to help.

I get the following error. Maybe there is a different solution.

--------------------------------------------------------------------

Warning: opendir() [function.opendir]: open_basedir restriction in effect. File(/var/www/vhosts/ndonva.com/httpdocs/v1.0//core/modules) is not within the allowed path(s): (/var/www/vhosts/corendonva.com/httpdocs:/tmp) in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/MainController.class.php on line 68

Warning: opendir(/var/www/vhosts/ndonva.com/httpdocs/v1.0//core/modules) [function.opendir]: failed to open dir: Operation not permitted in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/MainController.class.php on line 68

Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/MainController.class.php on line 70

Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/MainController.class.php on line 87

An Error Was Encountered

No modules were found in module path! (/var/www/vhosts/ndonva.com/httpdocs/v1.0//core/modules)

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/crystal.php) is not within the allowed path(s): (/var/www/vhosts/corendonva.com/httpdocs:/tmp) in /var/www/vhosts/corendonva.com/httpdocs/v1.0/index.php on line 51

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/layout.tpl) is not within the allowed path(s): (/var/www/vhosts/corendonva.com/httpdocs:/tmp) in /var/www/vhosts/corendonva.com/httpdocs/v1.0/index.php on line 66

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/header.tpl) is not within the allowed path(s): (/var/www/vhosts/corendonva.com/httpdocs:/tmp) in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/TemplateSet.class.php on line 227

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/header.tpl) is not within the allowed path(s): (/var/www/vhosts/corendonva.com/httpdocs:/tmp) in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/TemplateSet.class.php on line 246

Notice: The template file "/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/header.tpl" doesn't exist in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/TemplateSet.class.php on line 248

An Error Was Encountered

The module "FRONTPAGE" doesn't exist!

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/footer.tpl) is not within the allowed path(s): (/var/www/vhosts/corendonva.com/httpdocs:/tmp) in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/TemplateSet.class.php on line 227

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/footer.tpl) is not within the allowed path(s): (/var/www/vhosts/corendonva.com/httpdocs:/tmp) in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/TemplateSet.class.php on line 246

Notice: The template file "/var/www/vhosts/ndonva.com/httpdocs/v1.0//lib/skins/crystal/footer.tpl" doesn't exist in /var/www/vhosts/corendonva.com/httpdocs/v1.0/core/classes/TemplateSet.class.php on line 248

Link to comment
Share on other sites

Please run the checkinstall.php file, and post the results, looks like you have some corrupted files.

<html>

<head>

<title>phpVMS Install Checker</title>

<style>

body { font-family: "Lucida Grande" , Verdana, Geneva, Sans-serif; font-size: 11px; line-height: 1.8em; }

span { font-weight: bold; }

.style1 { color: #F60; font-size: x-large; filter: DropShadow(Color=#000, OffX=5, OffY=5, Positive=10); }

.style2 { font-size: small; }

</style>

</head>

<body>

<strong><span class="style1">phpVMS</span> <span class="style2">Virtual Airline Administration Software</span></strong><br />

<strong>Install Check</strong>

<br /><br />

<?php

/* Check install

This checks a set of directories against a hash list generated by md5sum

*/

error_reporting(E_ALL);

ini_set('display_errors', 'on');

# Pure laziness

define('DS', DIRECTORY_SEPARATOR);

# Path to this file

define('ROOT_PATH', dirname(dirname(__FILE__)));

# Path to the hash list

define('HASH_LIST', ROOT_PATH.DS.'install'.DS.'hashlist');

define('PHPVMS_API_SERVER', 'http://api.phpvms.net');

/* includes

*/

include ROOT_PATH.DS.'core'.DS.'classes'.DS.'CodonWebService.class.php';

function error($title, $txt)

{

echo "<span style=\"color: red\">[{$title}]</span> {$txt}<br />";

}

function success($title, $txt)

{

echo "<span style=\"color: #006600\">[{$title}]</span> {$txt}<br />";

}

/* Rest of the script begins here */

echo "<strong>phpVMS Build Number: </strong> ".file_get_contents(ROOT_PATH.'/core/version');

echo '<br /><br />';

echo '<strong>Checking PHP version</strong><br />';

$version = phpversion();

$version = substr($version, 0, 3);

if($version[0] == '4' || $version == '5.0' || $version == '5.1')

{

error('Error!', 'Must be running at least PHP 5.2');

}

else

{

$version = phpversion();

success('OK', "PHP version is {$version}.x");

}

echo '<br />';

echo '<strong>ASP Tags</strong><br />';

$val = ini_get('asp_tags');

if(!empty($val))

{

error('Error!', 'The setting "asp_tags" in php.ini must be off!');

}

else

{

success('OK', 'ASP-style tags are disabled');

}

echo '<br />';

echo '<strong>Checking connectivity...</strong><br />';

$file = new CodonWebService();

$contents = @$file->get(PHPVMS_API_SERVER.'/version');

if($contents == '')

{

$error = $file->errors[count($file->errors)-1];

error('Connection failed', 'Could not connect to remote server - error is "'.$error.'"');

}

else

{

success('OK', 'Can contact outside servers');

}

unset($file);

/* Simple XML? */

echo '<br />';

echo '<strong>Checking for SimpleXML module...</strong><br />';

if(function_exists('simplexml_load_string') == true)

{

success('OK', 'SimpleXML module exists!');

}

else

{

error('Fail', 'SimpleXML module doesn\'t exist or is not installed. Contact your host');

}

/* File hashes check */

echo '<br >';

echo '<strong>Checking file hashes for corrupt or mismatched files</strong><br />';

$fp = fopen(HASH_LIST, 'r');

if(!$fp)

{

error('Fatal', 'Could not read '.HASH_LIST);

exit;

}

$total = 0;

$errors = 0;

while(!feof($fp))

{

$line = fgets($fp);

$line = trim($line);

if(empty($line))

continue;

fscanf($fp, '%s %s', $checksum, $file);

$total ++;

$file = str_replace('*./', '../', $file);

if($file == '../core/local.config.php' || substr_count($file, 'unittest') > 0 || empty($file))

{

continue;

}

if(!file_exists($file))

{

$errors++;

error('Error', "{$file} doesn't exist");

continue;

}

$calc_sum = md5_file($file);

$file = str_replace('../', '/', $file); # make pretty

if($calc_sum === false)

{

$errors++;

error('Checksum failed', "{$file} - permissions might be incorrect!");

continue;

}

if($calc_sum != $checksum)

{

$errors++;

error('Checksum failed', "{$file} did not match, possibly corrupt or out of date");

continue;

}

$file = '';

}

if($errors == 0)

{

success('OK', 'No errors found!');

}

echo "<br /><strong> -- Checked {$total} files, found {$errors} errors</strong><br />";

?>

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...