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!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2016-03-26 16:11:45

  tramcio - Użytkownik

tramcio
Użytkownik
Zarejestrowany: 2014-08-28

[php-fpm + vps] nie dziala

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,

Kod:

php -v

wywala

Kod:

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

Kod:

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

Kod:

<?php
    echo "dziala !"
?>

lecz wywla mi blad 403

Mam zainstalowane takie pakiety do php

Kod:

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

 

#2  2016-03-26 16:29:14

  thomsson - Dyskutant

thomsson
Dyskutant
Zarejestrowany: 2011-10-26

Re: [php-fpm + vps] nie dziala

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


ilin napisał
[i]"DUG to tez moja mała ojczyzna"[/i]

Offline

 

#3  2016-03-26 18:06:04

  mati75 - Psuj

mati75
Psuj
Skąd: default city
Zarejestrowany: 2010-03-14
Serwis

Re: [php-fpm + vps] nie dziala

Pokaż konfigurację nginx.


[img]https://l0calh0st.pl/obrazki/userbar.png[/img]

Offline

 

#4  2016-03-26 18:26:38

  tramcio - Użytkownik

tramcio
Użytkownik
Zarejestrowany: 2014-08-28

Re: [php-fpm + vps] nie dziala

/var/log/php5-fpm.log

Kod:

[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

Kod:

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.

Kod:

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

 

#5  2016-03-28 16:18:04

  tramcio - Użytkownik

tramcio
Użytkownik
Zarejestrowany: 2014-08-28

Re: [php-fpm + vps] nie dziala

Podbijam, ktos cos? :)

Offline

 

#6  2016-03-28 17:12:50

  woitekd - Użytkownik

woitekd
Użytkownik
Zarejestrowany: 2010-05-15

Re: [php-fpm + vps] nie dziala

wklej konfiguracje vhosta

Offline

 

#7  2016-03-28 19:46:52

  mati75 - Psuj

mati75
Psuj
Skąd: default city
Zarejestrowany: 2010-03-14
Serwis

Re: [php-fpm + vps] nie dziala

[quote=tramcio][b]mati75[/b] konfiguracja nginx jest domyslna nic nie grzebalem[/quote]
Właśnie odpowiedziałeś sobie czemu nie działa.


[img]https://l0calh0st.pl/obrazki/userbar.png[/img]

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.007 seconds, 12 queries executed ]

Informacje debugowania

Time (s) Query
0.00010 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00103 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.119.122.69' WHERE u.id=1
0.00063 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.119.122.69', 1732417672)
0.00051 SELECT * FROM punbb_online WHERE logged<1732417372
0.00060 DELETE FROM punbb_online WHERE ident='3.144.20.66'
0.00039 SELECT topic_id FROM punbb_posts WHERE id=299849
0.00005 SELECT id FROM punbb_posts WHERE topic_id=28449 ORDER BY posted
0.00051 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.00102 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.00069 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=28449
Total query time: 0.00566 s