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/ho … k-on-debian-7
Jak robiłem to za  pierwszym razem zadziałał bez pudła


ilin napisał
"DUG to tez moja mała ojczyzna"

Offline

 

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

  mati75 - Psuj

mati75
Psuj
Skąd: masz ten towar?
Zarejestrowany: 2010-03-14

Re: [php-fpm + vps] nie dziala

Pokaż konfigurację nginx.


https://l0calh0st.pl/obrazki/userbar.png

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:

mati75 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: masz ten towar?
Zarejestrowany: 2010-03-14

Re: [php-fpm + vps] nie dziala

tramcio napisał(-a):

mati75 konfiguracja nginx jest domyslna nic nie grzebalem

Właśnie odpowiedziałeś sobie czemu nie działa.


https://l0calh0st.pl/obrazki/userbar.png

Offline

 

Stopka forum

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