Привет всем! Выручайте, после установки и настройки apache2+mysql+php не могу запустить phpMyAdmin, а также не работает info.php. Сам интерпретатор работает.
Нигде не могу найти правильного решения.
Хотя бы ссылочку на хороший материал по этой теме дайте, а то я чего то не могу ничего найти, то что пишут на первых страницах гугла не помогает.
apache2 и mysql запущены?
Покажите:
cat /var/log/apache2/*_log
[HR][/HR]
127.0.0.1 - - [01/Feb/2012:13:18:48 +0200] “GET /announce?peer_id=-KT4120-lmksoTsjwnD1&port=6881&uploaded=0&downloaded=0&left=0&compact=1&numwant=200&key=1097382837&event=started&info_hash=6%03e~%ce%ce%b8%1c%ec%7c%15%c6S%06%df%f0%b6%85(%1c HTTP/1.1” 404 1079 “-” “KTorrent/4.1.2”
127.0.0.1 - - [01/Feb/2012:13:19:04 +0200] “GET /info.php HTTP/1.1” 404 1090 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1”
[Sun Jan 29 22:49:14 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Sun Jan 29 22:49:41 2012] [notice] caught SIGTERM, shutting down
[Sun Jan 29 22:51:09 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 00:17:51 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 00:17:52 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 00:25:59 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 00:25:59 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 00:47:20 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 00:47:20 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 01:04:38 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 10:50:14 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 18:03:57 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 21:24:29 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 21:24:58 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/cssverstka.guru/www/announce
[Mon Jan 30 21:35:45 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 21:37:17 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 22:39:45 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 22:39:46 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 22:41:31 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 22:41:44 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 23:32:13 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Mon Jan 30 23:37:47 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 23:37:47 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 23:37:51 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Mon Jan 30 23:40:44 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Mon Jan 30 23:44:58 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Mon Jan 30 23:45:32 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpmyadmin
[Mon Jan 30 23:45:38 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpMyAdmin
[Mon Jan 30 23:58:49 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 30 23:58:50 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Mon Jan 30 23:59:53 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Tue Jan 31 00:05:11 2012] [notice] caught SIGTERM, shutting down
[Tue Jan 31 00:05:11 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Tue Jan 31 00:07:26 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/opensourse.gor/www/favicon.ico
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant name - assumed ‘name’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 2, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant password - assumed ‘password’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 3, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box1 - assumed ‘box1’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 4, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Undefined index: box1 in /srv/www/htdocs/opensourse.gor/www/form.php on line 4, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box2 - assumed ‘box2’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 5, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box3 - assumed ‘box3’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 6, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box4 - assumed ‘box4’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 7, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:07:36 2012] [error] [client 127.0.0.1] PHP Notice: Undefined index: box4 in /srv/www/htdocs/opensourse.gor/www/form.php on line 7, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:08:42 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant name - assumed ‘name’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 2, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:08:42 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant password - assumed ‘password’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 3, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:08:42 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box1 - assumed ‘box1’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 4, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:08:42 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box2 - assumed ‘box2’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 5, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:08:42 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box3 - assumed ‘box3’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 6, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:08:42 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant box4 - assumed ‘box4’ in /srv/www/htdocs/opensourse.gor/www/form.php on line 7, referer: http://opensourse.gor/index_form.html
[Tue Jan 31 00:09:01 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpmyadmin
[Tue Jan 31 00:15:43 2012] [notice] caught SIGTERM, shutting down
[Tue Jan 31 00:17:15 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Tue Jan 31 00:17:36 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Tue Jan 31 00:17:41 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpmyadmin
[Tue Jan 31 00:24:25 2012] [notice] caught SIGTERM, shutting down
[Tue Jan 31 00:24:25 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Tue Jan 31 00:24:40 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpMyAdmin
[Tue Jan 31 00:49:22 2012] [notice] caught SIGTERM, shutting down
[Tue Jan 31 08:15:11 2012] [warn] module php5_module is already loaded, skipping
[Tue Jan 31 08:15:11 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Tue Jan 31 19:59:03 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Tue Jan 31 19:59:14 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpmyadmin
[Tue Jan 31 20:03:42 2012] [notice] caught SIGTERM, shutting down
[Tue Jan 31 20:03:42 2012] [warn] module php5_module is already loaded, skipping
[Tue Jan 31 20:03:42 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Tue Jan 31 20:03:57 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpMyAdmin
[Tue Jan 31 20:23:57 2012] [notice] caught SIGTERM, shutting down
[Tue Jan 31 20:23:57 2012] [warn] module php5_module is already loaded, skipping
[Tue Jan 31 20:23:58 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Tue Jan 31 20:24:17 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Tue Jan 31 20:24:25 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/phpMyAdmin
[Tue Jan 31 20:40:09 2012] [notice] caught SIGTERM, shutting down
[Tue Jan 31 20:40:09 2012] [warn] module php5_module is already loaded, skipping
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php5/extensions/snmp.so’ - libnetsnmp.so.25: \xd0\xbd\xd0\xb5\xd0\xb2\xd0\xbe\xd0\xb7\xd0\xbc\xd0\xbe\xd0\xb6\xd0\xbd\xd0\xbe \xd0\xbe\xd1\x82\xd0\xba\xd1\x80\xd1\x8b\xd1\x82\xd1\x8c \xd1\x80\xd0\xb0\xd0\xb7\xd0\xb4\xd0\xb5\xd0\xbb\xd1\x8f\xd0\xb5\xd0\xbc\xd1\x8b\xd0\xb9 \xd0\xbe\xd0\xb1\xd1\x8a\xd0\xb5\xd0\xba\xd1\x82\xd0\xbd\xd1\x8b\xd0\xb9 \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb: \xd0\x9d\xd0\xb5\xd1\x82 \xd1\x82\xd0\xb0\xd0\xba\xd0\xbe\xd0\xb3\xd0\xbe \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb\xd0\xb0 \xd0\xb8\xd0\xbb\xd0\xb8 \xd0\xba\xd0\xb0\xd1\x82\xd0\xb0\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xb0 in Unknown on line 0
[Tue Jan 31 20:40:09 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Tue Jan 31 20:40:27 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Tue Jan 31 20:42:08 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/dobre.com/www/favicon.ico, referer: http://localhost/phpMyAdmin/
[Tue Jan 31 20:42:18 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
[Tue Jan 31 21:58:33 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/glavacss.ru/www/css/img, referer: http://glavacss.ru/css/style.css
[Tue Jan 31 22:00:35 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/glavacss.ru/www/img/, referer: http://glavacss.ru/css/style.css
[Tue Jan 31 22:59:59 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/glavacss.ru/www/audio.html, referer: http://glavacss.ru/
[Wed Feb 01 00:39:24 2012] [notice] caught SIGTERM, shutting down
[Wed Feb 01 07:52:53 2012] [warn] module php5_module is already loaded, skipping
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php5/extensions/snmp.so’ - libnetsnmp.so.25: \xd0\xbd\xd0\xb5\xd0\xb2\xd0\xbe\xd0\xb7\xd0\xbc\xd0\xbe\xd0\xb6\xd0\xbd\xd0\xbe \xd0\xbe\xd1\x82\xd0\xba\xd1\x80\xd1\x8b\xd1\x82\xd1\x8c \xd1\x80\xd0\xb0\xd0\xb7\xd0\xb4\xd0\xb5\xd0\xbb\xd1\x8f\xd0\xb5\xd0\xbc\xd1\x8b\xd0\xb9 \xd0\xbe\xd0\xb1\xd1\x8a\xd0\xb5\xd0\xba\xd1\x82\xd0\xbd\xd1\x8b\xd0\xb9 \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb: \xd0\x9d\xd0\xb5\xd1\x82 \xd1\x82\xd0\xb0\xd0\xba\xd0\xbe\xd0\xb3\xd0\xbe \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb\xd0\xb0 \xd0\xb8\xd0\xbb\xd0\xb8 \xd0\xba\xd0\xb0\xd1\x82\xd0\xb0\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xb0 in Unknown on line 0
[Wed Feb 01 07:52:53 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Wed Feb 01 09:40:12 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/cssverstka.guru/www/announce
[Wed Feb 01 13:12:54 2012] [notice] caught SIGTERM, shutting down
[Wed Feb 01 13:18:39 2012] [warn] module php5_module is already loaded, skipping
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php5/extensions/snmp.so’ - libnetsnmp.so.25: \xd0\xbd\xd0\xb5\xd0\xb2\xd0\xbe\xd0\xb7\xd0\xbc\xd0\xbe\xd0\xb6\xd0\xbd\xd0\xbe \xd0\xbe\xd1\x82\xd0\xba\xd1\x80\xd1\x8b\xd1\x82\xd1\x8c \xd1\x80\xd0\xb0\xd0\xb7\xd0\xb4\xd0\xb5\xd0\xbb\xd1\x8f\xd0\xb5\xd0\xbc\xd1\x8b\xd0\xb9 \xd0\xbe\xd0\xb1\xd1\x8a\xd0\xb5\xd0\xba\xd1\x82\xd0\xbd\xd1\x8b\xd0\xb9 \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb: \xd0\x9d\xd0\xb5\xd1\x82 \xd1\x82\xd0\xb0\xd0\xba\xd0\xbe\xd0\xb3\xd0\xbe \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb\xd0\xb0 \xd0\xb8\xd0\xbb\xd0\xb8 \xd0\xba\xd0\xb0\xd1\x82\xd0\xb0\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xb0 in Unknown on line 0
[Wed Feb 01 13:18:45 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[Wed Feb 01 13:18:48 2012] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/cssverstka.guru/www/announce
[Wed Feb 01 13:19:04 2012] [error] [client 127.0.0.1] script ‘/srv/www/htdocs/dobre.com/www/info.php’ not found or unable to stat
Удалил почти все повторяющиеся строки
Из ошибок вижу в основном отсутствие файлов.
Давайте конкретизируем немного:
после установки и настройки apache2+mysql+php
Поподробнее, как устанавливали / настраивали? Через YAST?
После установки стандартная страница Апача с “It works!” была?
не работает info.php
Это вообще что? Файл такой есть? Где находится, как Вы к нему обращаетесь?
Вообще напишите сами скриптик:
<?php
phpinfo();
?>
Назовите как угодно, хоть info.php, положите в корень сайта и обратитесь к нему http://ваш_сайт/info.php
И да, перед всем этим от рута^
rcapache2 restart
А то мало ли, может сервер не запущен.
Добавлю к вышесказанному:
ls /etc/apache2/conf.d
ls /srv/www/htdocs/
cat /etc/apache2/default-server.conf
cat /etc/apache2/sysconfig.d/loadmodule.conf
Если уж выбрали openSUSE, то думаю Вам будет проще настроить средствами yast2, нежели калупать конфиги:
zypper in yast2-http-server
sudo /sbin/yast2 http-server
sudo systemctl restart apache2.service - если используется systemd
Файлы с большим содержанием выкладывайте здесь - http://paste.opensuse.org/