как подключиться к живому серверу с помощью viewen - PullRequest
0 голосов
/ 24 ноября 2018

Я пытаюсь получить свой сайт на живом сервере с viewen, но по какой-то причине у меня возникают следующие ошибки.Я не уверен, почему произошли ошибки, потому что я загрузил все файлы в одну папку public_html.Единственная помощь, которую я получил от них, заключалась в создании новой базы данных, что я и сделал ниже, это мои учетные данные: я не уверен, правильно ли настроен мой dbh.php:

<?php

$dbservername = "localhost";
$dbroot = "root";
$dbpassword = "";
$dbdatabase = "pianocou_loginsystem";

$conn = @mysqli_connect($dbservername, $dbroot, $dbpassword, $dbdatabase);


I got rid of the password just for security reason but did include it in my dbh.. Must I change the dbroot? They also told me to leave it as localhost for the server.

[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(header2.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(): Failed opening 'header2.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(viewcounter.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(): Failed opening 'viewcounter.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice:  Undefined variable: views in /home/pianocou/public_html/index.php on line 118
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(footer.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(): Failed opening 'footer.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(includes/dbh.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  include_once(): Failed opening 'includes/dbh.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice:  Undefined variable: conn in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning:  mysqli_stmt_init() expects parameter 1 to be mysqli, null given in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP   1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP   2. mysqli_stmt_init() /home/pianocou/public_html/index.php:131
[25-Oct-2018 10:46:32 UTC] PHP Warning:  mysqli_stmt_prepare() expects parameter 1 to be mysqli_stmt, null given in /home/pianocou/public_html/index.php on line 133

Большинство моих ошибоксказал то же самое ....

введите описание изображения здесь

1 Ответ

0 голосов
/ 28 ноября 2018

Корень базы данных не является корнем, он будет вашим пользователем базы данных и убедитесь, что у пользователя базы данных есть полные права на базу данных.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...