PHP - error en conexion a mi web

 
Vista:
sin imagen de perfil

error en conexion a mi web

Publicado por armando (2 intervenciones) el 03/12/2020 18:28:09
quisiera saber porque me manda este error mi sitio web

Warning: require_once(/var/www/www_003_llantascuevas/public/system/startup.php): failed to open stream: No such file or directory in /home/llantas5/public_html/index.php on line 20

Fatal error: require_once(): Failed opening required '/var/www/www_003_llantascuevas/public/system/startup.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/llantas5/public_html/index.php on line 20


en mi index tengo este codigo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// Version
define('VERSION', '3.0.2.0');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 
// Configuration
if (is_file('config.php')) {
	require_once('config.php');
}
 
// Install
if (!defined('DIR_APPLICATION')) {
	header('Location: install/index.php');
	exit;
}
 
// Startup
    require_once(DIR_SYSTEM . 'startup.php');
 
start('catalog');



y el otro error de startup
es este codigo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
// Error Reporting
error_reporting(E_ALL);
 
// Check Version
if (version_compare(phpversion(), '5.4.0', '<') == true) {
	exit('PHP5.4+ Required');
}
 
if (!ini_get('date.timezone')) {
	date_default_timezone_set('UTC');
}
 
// Windows IIS Compatibility
if (!isset($_SERVER['DOCUMENT_ROOT'])) {
	if (isset($_SERVER['SCRIPT_FILENAME'])) {
		$_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen($_SERVER['PHP_SELF'])));
	}
}
 
if (!isset($_SERVER['DOCUMENT_ROOT'])) {
	if (isset($_SERVER['PATH_TRANSLATED'])) {
		$_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF'])));
	}
}
 
if (!isset($_SERVER['REQUEST_URI'])) {
	$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'], 1);
 
	if (isset($_SERVER['QUERY_STRING'])) {
		$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
	}
}
 
if (!isset($_SERVER['HTTP_HOST'])) {
	$_SERVER['HTTP_HOST'] = getenv('HTTP_HOST');
}
 
// Check if SSL
if ((isset($_SERVER['HTTPS']) && (($_SERVER['HTTPS'] == 'on') || ($_SERVER['HTTPS'] == '1'))) || (isset($_SERVER['HTTPS']) && (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443))) {
	$_SERVER['HTTPS'] = true;
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on') {
	$_SERVER['HTTPS'] = true;
} else {
	$_SERVER['HTTPS'] = false;
}
 
// Modification Override
function modification($filename) {
	if (defined('DIR_CATALOG')) {
		$file = DIR_MODIFICATION . 'admin/' .  substr($filename, strlen(DIR_APPLICATION));
	} elseif (defined('DIR_OPENCART')) {
		$file = DIR_MODIFICATION . 'install/' .  substr($filename, strlen(DIR_APPLICATION));
	} else {
		$file = DIR_MODIFICATION . 'catalog/' . substr($filename, strlen(DIR_APPLICATION));
	}
 
	if (substr($filename, 0, strlen(DIR_SYSTEM)) == DIR_SYSTEM) {
		$file = DIR_MODIFICATION . 'system/' . substr($filename, strlen(DIR_SYSTEM));
	}
 
	if (is_file($file)) {
		return $file;
	}
 
	return $filename;
}
 
// Autoloader
if (is_file(DIR_STORAGE . 'vendor/autoload.php')) {
	require_once(DIR_STORAGE . 'vendor/autoload.php');
}
 
function library($class) {
	$file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php';
 
	if (is_file($file)) {
		include_once(modification($file));
 
		return true;
	} else {
		return false;
	}
}
 
spl_autoload_register('library');
spl_autoload_extensions('.php');
 
// Engine
require_once(modification(DIR_SYSTEM . 'engine/action.php'));
require_once(modification(DIR_SYSTEM . 'engine/controller.php'));
require_once(modification(DIR_SYSTEM . 'engine/event.php'));
require_once(modification(DIR_SYSTEM . 'engine/router.php'));
require_once(modification(DIR_SYSTEM . 'engine/loader.php'));
require_once(modification(DIR_SYSTEM . 'engine/model.php'));
require_once(modification(DIR_SYSTEM . 'engine/registry.php'));
require_once(modification(DIR_SYSTEM . 'engine/proxy.php'));
 
// Helper
require_once(DIR_SYSTEM . 'helper/general.php');
require_once(DIR_SYSTEM . 'helper/utf8.php');
 
function start($application_config) {
	require_once(DIR_SYSTEM . 'framework.php');
}

tengo este errror en mi sitio web y al mera verdad soy nuevo programando y nose como solucionarlo les agradeceria si me ayudan
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de Alejandro
Val: 1.634
Plata
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

error en conexion a mi web

Publicado por Alejandro (839 intervenciones) el 03/12/2020 19:42:03
  • Alejandro se encuentra ahora conectado en el
  • chat de PHP
Porque no se encuentra el archivo /var/www/www_003_llantascuevas/public/system/startup.php o no tienes los permisos necesarios.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

error en conexion a mi web

Publicado por armando (2 intervenciones) el 03/12/2020 19:50:18
el archivo /var/www/www_003_llantascuevas/public/system/startup.php lo tengo establecido en mi pc ya subi los archivos a red pero me marca aun asi error en esa conexion

1
// Startup require_once(DIR_SYSTEM . 'startup.php');

se supone que aqui esta la direccion del archivo que me marca el error pero ya lo revise y uan asi me sigue marcando lo mismo la plataforma que estoy ocupando es la de CPanel
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar