Vlad121
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Хаюшки All! Так, почитал тут по поводу нюка, посмотрел - решил попробовать. Поставил для местной обкатки локальный апач/пхп/sql, уже четыре дня бьюсь с переменным успехом.(Советы и обмен опытом pls на yeryomin@id.crimea.ua, буду крайне признателен) Смотрю народ советует не морочить голову а сразу в бой т.е. выложить в инет. Вчера залогинился на http://scorpius.spaceports.com, сегодня пришла активация, залогинился, активировался для php/sql на http://cgi-bin.spaceports.com Выложил нюка, туда же выложил phpadmin. Получил инфо по базе на юзера blablabla: =============== You currently have a MySQL database for your account. Please note that you can NOT make remote connections to your MySQL datasource, only local connections. As well, there is no programming support for your datasource. IE. Don't ask stuff like 'how do I use this?'. You are on your own. Contact support only if there is a problem with your datasource. Your database connection password synched to your cgi-bin password. If you change your password for your cgi-bin account, then by clicking the MySQL button, the passwords will synch. Datasource password:123456 Passwords are synched Datasource server:localhost Datasource name:blablabla Порт не дали! =============== Прописал и зааплоадил в phpadminовском config.inc.php следующее // The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0]. // You can disable a server config entry by setting host to ''. $cfgServers[1]['host'] = 'localhost'; // MySQL hostname $cfgServers[1]['port'] = ''; // MySQL port - leave blank for default port $cfgServers[1]['adv_auth'] = false; // Use advanced authentication? $cfgServers[1]['stduser'] = ''; // MySQL standard user (only needed with advanced auth) $cfgServers[1]['stdpass'] = ''; // MySQL standard password (only needed with advanced auth) $cfgServers[1]['user'] = 'blablabla'; // MySQL user (only needed with basic auth) $cfgServers[1]['password'] = '123456'; // MySQL password (only needed with basic auth) $cfgServers[1]['only_db'] = 'blablabla'; // If set to a db-name, only this db is accessible $cfgServers[1]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname $cfgServers[1]['bookmarkdb'] = ''; // Bookmark db - leave blank for no bookmark support $cfgServers[1]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support Запускаю ради интереса нюковского admin.php - разумется отлуп, но пока только в связи с невозможностью найти базу. Запускаю phpadmin/index.php Cлева вижу название базы(т.е. я тока понимаю что база уже есть), справа что в базе не обнаружено таблиц - праально, а откуда им там быть. Выбираю локальный nuke.sql давлю GO и грабли...(( Цитирую: Warning: SAFE MODE Restriction in effect. The script whose uid is 21823 is not allowed to access /var/tmp/phpL73077 owned by uid 0 in /home2/blablabla/public_html/phpadm/db_readdump.php on line 40 Warning: fopen("/var/tmp/phpL73077","r") - Undefined error: 0 in /home2/blablabla/public_html/phpadm/db_readdump.php on line 40 Warning: Supplied argument is not a valid File-Handle resource in /home2/blablabla/public_html/phpadm/db_readdump.php on line 40 Warning: Cannot add header information - headers already sent by (output started at /home2/blablabla/public_html/phpadm/db_readdump.php:40) in /home2/blablabla/public_html/phpadm/ob_lib.inc.php on line 31 Warning: Cannot add header information - headers already sent by (output started at /home2/blablabla/public_html/phpadm/db_readdump.php:40) in /home2/blablabla/public_html/phpadm/header.inc.php on line 16 Warning: Cannot add header information - headers already sent by (output started at /home2/blablabla/public_html/phpadm/db_readdump.php:40) in /home2/blablabla/public_html/phpadm/header.inc.php on line 17 Warning: Cannot add header information - headers already sent by (output started at /home2/blablabla/public_html/phpadm/db_readdump.php:40) in /home2/blablabla/public_html/phpadm/header.inc.php on line 18 Warning: Cannot add header information - headers already sent by (output started at /home2/blablabla/public_html/phpadm/db_readdump.php:40) in /home2/blablabla/public_html/phpadm/header.inc.php on line 19 Warning: Cannot add header information - headers already sent by (output started at /home2/blablabla/public_html/phpadm/db_readdump.php:40) in /home2/blablabla/public_html/phpadm/header.inc.php on line 20 Warning: Cannot add header information - headers already sent by (output started at /home2/blablabla/public_html/phpadm/db_readdump.php:40) in /home2/blablabla/public_html/phpadm/header.inc.php on line 22 Database blablabla Your SQL-query has been executed successfully No tables found in database. A при обращении к нюковскому админу: Warning: Supplied argument is not a valid MySQL result resource in /home2/blablabla/public_html/mainfile.php on line 67 Warning: Failed opening 'themes/NukeNews/theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /home2/blablabla/public_html/header.php on line 42 Fatal error: Call to undefined function: themeheader() in /home2/blablabla/public_html/header.php on line 53 Че делать то, что посоветуют ГУРУ? |