Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam, kupilem sobie VPSa na OpenVZ, aby pouczyc sie troche konfiguracji, zainstalowany system Debian Jessie minimal, chcialem na poczatek uruchomic wordpresa na LEMPie, ale pojawil sie problem, nie dziala mi php,
php -v
wywala
PHP 5.6.17-0+deb8u1 (cli) (built: Jan 13 2016 09:10:12) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
polecenie top wypluwa 3 procesy z php
399 root 20 0 267796 15520 11360 S 0,0 1,5 0:00.12 php5-fpm 408 www-data 20 0 267796 5124 960 S 0,0 0,5 0:00.00 php5-fpm 409 www-data 20 0 267796 5124 960 S 0,0 0,5 0:00.00 php5-fpm
Zrobilem plik index.php w /var/www/html
<?php echo "dziala !" ?>
lecz wywla mi blad 403
Mam zainstalowane takie pakiety do php
dpkg -l | grep php5* ii php5-cli 5.6.17+dfsg-0+deb8u1 amd64 command-line interpreter for the php5 scripting language ii php5-common 5.6.17+dfsg-0+deb8u1 amd64 Common files for packages built from the php5 source ii php5-fpm 5.6.17+dfsg-0+deb8u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii php5-json 1.3.6-1 amd64 JSON module for php5 ii php5-mysql 5.6.17+dfsg-0+deb8u1 amd64 MySQL module for php5 ii php5-readline 5.6.17+dfsg-0+deb8u1 amd64 Readline module for php5
Domyslam sie, ze to jakas glupota ale nie moge dojsc do rozwiazania.
Pozdrawiam
Offline
LOGI!!!
FPMa i nginxa
Poza tym polecam robić wg tego:
https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-debian-7
Jak robiłem to za pierwszym razem zadziałał bez pudła
Offline
/var/log/php5-fpm.log
[02-Mar-2016 14:52:49] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [02-Mar-2016 14:52:49] NOTICE: fpm is running, pid 2977 [02-Mar-2016 14:52:49] NOTICE: ready to handle connections [02-Mar-2016 14:52:49] NOTICE: systemd monitor interval set to 10000ms [02-Mar-2016 14:52:51] NOTICE: Terminating ... [02-Mar-2016 14:52:51] NOTICE: exiting, bye-bye! [02-Mar-2016 14:52:51] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [02-Mar-2016 14:52:51] NOTICE: fpm is running, pid 3786 [02-Mar-2016 14:52:51] NOTICE: ready to handle connections [02-Mar-2016 14:52:51] NOTICE: systemd monitor interval set to 10000ms [02-Mar-2016 15:01:10] NOTICE: Terminating ... [02-Mar-2016 15:01:10] NOTICE: exiting, bye-bye! [02-Mar-2016 21:01:16] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [02-Mar-2016 21:01:16] NOTICE: fpm is running, pid 234 [02-Mar-2016 21:01:16] NOTICE: ready to handle connections [02-Mar-2016 21:01:16] NOTICE: systemd monitor interval set to 10000ms [13-Mar-2016 17:05:25] NOTICE: Terminating ... [13-Mar-2016 17:05:27] NOTICE: exiting, bye-bye! [13-Mar-2016 17:05:47] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [13-Mar-2016 17:05:47] NOTICE: fpm is running, pid 603 [13-Mar-2016 17:05:47] NOTICE: ready to handle connections [13-Mar-2016 17:05:47] NOTICE: systemd monitor interval set to 10000ms [19-Mar-2016 12:03:58] NOTICE: Terminating ... [19-Mar-2016 12:03:59] NOTICE: exiting, bye-bye! [19-Mar-2016 12:04:15] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [19-Mar-2016 12:04:15] NOTICE: fpm is running, pid 512 [19-Mar-2016 12:04:15] NOTICE: ready to handle connections [19-Mar-2016 12:04:15] NOTICE: systemd monitor interval set to 10000ms [19-Mar-2016 12:13:28] NOTICE: Terminating ... [19-Mar-2016 12:13:28] NOTICE: exiting, bye-bye! [19-Mar-2016 12:13:34] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [19-Mar-2016 12:13:34] NOTICE: fpm is running, pid 249 [19-Mar-2016 12:13:34] NOTICE: ready to handle connections [19-Mar-2016 12:13:34] NOTICE: systemd monitor interval set to 10000ms [25-Mar-2016 15:09:39] NOTICE: Terminating ... [25-Mar-2016 15:09:41] NOTICE: exiting, bye-bye! [25-Mar-2016 15:09:57] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [25-Mar-2016 15:09:57] NOTICE: ready to handle connections [25-Mar-2016 15:09:57] NOTICE: systemd monitor interval set to 10000ms [25-Mar-2016 15:12:18] NOTICE: Terminating ... [25-Mar-2016 15:12:18] NOTICE: exiting, bye-bye! [25-Mar-2016 15:12:23] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [25-Mar-2016 15:12:23] NOTICE: fpm is running, pid 234 [25-Mar-2016 15:12:23] NOTICE: ready to handle connections [25-Mar-2016 15:12:23] NOTICE: systemd monitor interval set to 10000ms [25-Mar-2016 15:12:59] NOTICE: Terminating ... [25-Mar-2016 15:12:59] NOTICE: exiting, bye-bye! [25-Mar-2016 15:13:05] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [25-Mar-2016 15:13:05] NOTICE: fpm is running, pid 237 [25-Mar-2016 15:13:05] NOTICE: ready to handle connections [25-Mar-2016 15:13:05] NOTICE: systemd monitor interval set to 10000ms [25-Mar-2016 15:33:42] NOTICE: Terminating ... [25-Mar-2016 15:33:42] NOTICE: exiting, bye-bye! [25-Mar-2016 15:33:48] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [25-Mar-2016 15:33:48] NOTICE: fpm is running, pid 238 [25-Mar-2016 15:33:48] NOTICE: ready to handle connections [25-Mar-2016 15:33:48] NOTICE: systemd monitor interval set to 10000ms [26-Mar-2016 00:58:29] NOTICE: Terminating ... [26-Mar-2016 00:58:29] NOTICE: exiting, bye-bye! [26-Mar-2016 00:58:29] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [26-Mar-2016 00:58:29] NOTICE: fpm is running, pid 1088 [26-Mar-2016 00:58:29] NOTICE: ready to handle connections [26-Mar-2016 00:58:29] NOTICE: systemd monitor interval set to 10000ms [26-Mar-2016 14:33:30] NOTICE: Terminating ... [26-Mar-2016 14:33:31] NOTICE: exiting, bye-bye! [26-Mar-2016 14:33:41] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful [26-Mar-2016 14:33:41] NOTICE: fpm is running, pid 399 [26-Mar-2016 14:33:41] NOTICE: ready to handle connections [26-Mar-2016 14:33:41] NOTICE: systemd monitor interval set to 10000ms
Fragmenty ostatnich wpisow
/var/log/nginx/error.log
2016/03/26 12:58:56 [error] 223#0: *38 directory index of "/var/www/html/" is forbidden, client: 189.15. 2016/03/26 14:35:32 [error] 258#0: *1 directory index of "/var/www/html/" is forbidden, client: 81.34. 2016/03/26 14:35:34 [error] 258#0: *1 directory index of "/var/www/html/" is forbidden, client: 81.34. 2016/03/26 16:22:08 [error] 258#0: *5 directory index of "/var/www/html/" is forbidden, client: 81.34. 2016/03/26 16:22:09 [error] 258#0: *6 directory index of "/var/www/html/" is forbidden, client: 81.34. 2016/03/26 16:31:18 [error] 258#0: *20 directory index of "/var/www/html/" is forbidden, client: 109.51
EDIT:
[b]mati75[/b] konfiguracja nginx jest domyslna nic nie grzebalem
Test tez przechodzi pomyslnie.
nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
Ostatnio edytowany przez tramcio (2016-03-26 23:59:07)
Offline
Podbijam, ktos cos? :)
Offline
wklej konfiguracje vhosta
Offline
Time (s) | Query |
---|---|
0.00009 | SET CHARSET latin2 |
0.00003 | SET NAMES latin2 |
0.00098 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.191.165.149' WHERE u.id=1 |
0.00069 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.191.165.149', 1732415641) |
0.00052 | SELECT * FROM punbb_online WHERE logged<1732415341 |
0.00042 | SELECT topic_id FROM punbb_posts WHERE id=299851 |
0.00006 | SELECT id FROM punbb_posts WHERE topic_id=28449 ORDER BY posted |
0.00078 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=28449 AND t.moved_to IS NULL |
0.00009 | SELECT search_for, replace_with FROM punbb_censoring |
0.00128 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=28449 ORDER BY p.id LIMIT 0,25 |
0.00075 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=28449 |
Total query time: 0.00569 s |