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/.
chce sobie ustawic domyslny folder: root /home/przemo/public_html
i nie moge
server dziala ale tylko odczytuje pliki z /usr/share/nginx/html/
cat /etc/nginx/sites-enabled/default
server { listen 80; server_name local.net; charset utf-8; access_log off; root /home/przemo/public_html; index index.php; location / { try_files $uri $uri/ /index.php; #lub: try_files $uri $uri/ /index.php?id=$uri&$args } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } location ~ /\.ht { deny all; } location ~ /\. { deny all; } }
instalowalem z tego howto :
http://linetc.blogspot.ie/2012/07/nginx-php5-php5-fpm.html
Ostatnio edytowany przez pink (2014-04-29 17:15:19)
Offline
cat /etc/nginx/nginx.conf
user www-data; worker_processes 2; error_log /var/log/nginx/error_log; events { worker_connections 1024; use epoll; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; keepalive_timeout 30; server_tokens off; connection_pool_size 256; client_header_buffer_size 1k; large_client_header_buffers 4 2k; request_pool_size 4k; output_buffers 1 32k; postpone_output 1460; gzip on; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; gzip_http_version 1.1; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascri$ include /etc/nginx/sites-enabled/*; }
wyglada ze nie
cat /etc/nginx/sites-available/local.net
server { listen 80; server_name local.net; charset utf-8; access_log off; root /home/przemo/public_html; index index.php; location / { try_files $uri $uri/ /index.php; #lub: try_files $uri $uri/ /index.php?id=$uri&$args } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } location ~ /\.ht { deny all; } location ~ /\. { deny all; } }
i to podlinkowane do /etc/nginx/sites-enabled/default
a to sa uprawnienia:
drwxr-xr-x 3 przemo przemo 4096 Apr 28 23:21 public_html
ot cala konfiguracja ale nie dziala
Ostatnio edytowany przez pink (2014-04-29 11:39:56)
Offline
podlinkowalem /home/html/ do /usr/share/nginx/
zalatwione
Offline
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00005 | SET NAMES latin2 |
0.00111 | 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.125.240' WHERE u.id=1 |
0.00076 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.119.125.240', 1733053519) |
0.00042 | SELECT * FROM punbb_online WHERE logged<1733053219 |
0.00063 | DELETE FROM punbb_online WHERE ident='85.208.96.193' |
0.00066 | SELECT topic_id FROM punbb_posts WHERE id=265121 |
0.00075 | SELECT id FROM punbb_posts WHERE topic_id=25714 ORDER BY posted |
0.00053 | 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=25714 AND t.moved_to IS NULL |
0.00013 | SELECT search_for, replace_with FROM punbb_censoring |
0.00070 | 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=25714 ORDER BY p.id LIMIT 0,25 |
0.00085 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=25714 |
Total query time: 0.00669 s |