* [Comm] wiki & nginx
@ 2013-09-02 3:34 REAL
0 siblings, 1 reply; 15+ messages in thread
From: REAL @ 2013-09-02 3:34 UTC (permalink / raw)
To: ALT Linux Community general discussions
Привет!
Поскажите, как к nginx прикрутить wiki-движок. Интересует,
естественно, исключительно средствами t6/branch, без установки левого
софта.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
@ 2013-09-02 5:52 ` REAL
0 siblings, 1 reply; 15+ messages in thread
From: REAL @ 2013-09-02 5:52 UTC (permalink / raw)
To: ALT Linux Community general discussions
02.09.2013 12:48, Дмитрий Кулик пишет:
>> Поскажите, как к nginx прикрутить wiki-движок. Интересует, естественно,
>> исключительно средствами t6/branch, без установки левого софта.
>>
>>
> http://wiki.nginx.org/MediaWiki
Там описывается конфигурация, а мне бы ещё знать, какие пакеты нужно
устанавливать.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
@ 2013-09-02 6:25 ` REAL
2013-09-03 2:58 ` REAL
` (3 subsequent siblings)
4 siblings, 0 replies; 15+ messages in thread
From: REAL @ 2013-09-02 6:25 UTC (permalink / raw)
To: ALT Linux Community general discussions
02.09.2013 13:06, Дмитрий Кулик пишет:
> http://www.mediawiki.org/wiki/Manual:Installation_requirements/ru
>
> nginx php5-fpm-fcgi php5-mysql(или другой в зависимости от выбора БД)
Благодарю.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-02 6:25 ` REAL
@ 2013-09-03 2:58 ` REAL
2013-09-03 3:20 ` REAL
2013-09-03 3:35 ` REAL
` (2 subsequent siblings)
4 siblings, 1 reply; 15+ messages in thread
From: REAL @ 2013-09-03 2:58 UTC (permalink / raw)
To: ALT Linux Community general discussions
02.09.2013 13:06, Дмитрий Кулик пишет:
>> Поскажите, как к nginx прикрутить wiki-движок. Интересует, естественно,
>>>> исключительно средствами t6/branch, без установки левого софта.
>>>>
>>>>
>>>> http://wiki.nginx.org/**MediaWiki <http://wiki.nginx.org/MediaWiki>
Вопрос, в какой файл эти настройки пихать.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-03 2:58 ` REAL
@ 2013-09-03 3:20 ` REAL
0 siblings, 0 replies; 15+ messages in thread
From: REAL @ 2013-09-03 3:20 UTC (permalink / raw)
To: ALT Linux Community general discussions
03.09.2013 09:58, REAL пишет:
>>>>> http://wiki.nginx.org/**MediaWiki
>>>>> <http://wiki.nginx.org/MediaWiki>
>
> Вопрос, в какой файл эти настройки пихать.
И ещё. Сервер задействован, location / вполне работоспособен. Мне бы
настроить, чтобы вики отзывалось на /wiki, но что-то не выходит. См.
конфиг /etc/nginx/sites-available.d/default.conf
вдруг я где-то протупил (на любое обращение получаю - 502 Bad Gateway)
server {
listen *:8080;
# can't use wildcards in first server_name
server_name localhost localhost.localdomain;
root /opt/tomcat/static;
location / {
# autoindex off;
# autoindex_exact_size on;
# autoindex_localtime off;
# expires off;
# cooperate with mod_realip in apache-1.3 or mod_rpaf in apache-2.x
# proxy_redirect off;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $remote_addr;
# proxy_pass http://back.end.addr.ess:80/;
#
# NB: it's better for URI canonicalization that apache sits on :80
# (even if that's only 127.0.0.1:80)
#
# see also set_real_ip_from, real_ip_header if this nginx
# would need to cooperate with another one acting as a frontend
}
# Pass PHP scripts to PHP5-FPM
# location ~* \.php$ {
# fastcgi_index index.php;
# fastcgi_pass unix:/var/run/php5-fpm/php5-fpm.sock;
# include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
# fastcgi_param SCRIPT_NAME $fastcgi_script_name;
# }
access_log /var/log/nginx/access.log;
}
server {
listen *:8080;
server_name iais.kemsu.ru;
root /opt/wiki;
client_max_body_size 5m;
client_body_timeout 60;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?title=$1&$args;
}
location ^~ /maintenance/ {
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/tmp/phpfpm.sock;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri /index.php;
expires max;
log_not_found off;
}
location = /_.gif {
expires max;
empty_gif;
}
location ^~ /cache/ {
deny all;
}
location /dumps {
root /opt/wiki/local;
autoindex on;
}
}
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-02 6:25 ` REAL
2013-09-03 2:58 ` REAL
@ 2013-09-03 3:35 ` REAL
2013-09-03 5:26 ` REAL
2013-09-10 4:28 ` REAL
4 siblings, 0 replies; 15+ messages in thread
From: REAL @ 2013-09-03 3:35 UTC (permalink / raw)
To: ALT Linux Community general discussions
02.09.2013 13:06, Дмитрий Кулик пишет:
> Конфигурируем nginx, БД
Вопрос, как конфигурируем БД. И, если, например, sqlite3 (возможно
ли?), тоже ведь какая-то конфигурация должна быть?
> Стартуем php5-fpm БД nginx
>
> Будто все.
>
>
>
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community
>
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
` (2 preceding siblings ...)
2013-09-03 3:35 ` REAL
@ 2013-09-03 5:26 ` REAL
2013-09-10 4:28 ` REAL
4 siblings, 1 reply; 15+ messages in thread
From: REAL @ 2013-09-03 5:26 UTC (permalink / raw)
To: ALT Linux Community general discussions
Продолжаем ковырять. Переделал конфиг (см. в конце). Но на каждое
обращение к wiki получаю "502 Bad Gateway". Что я упустил?
server {
listen *:8080;
# can't use wildcards in first server_name
server_name localhost localhost.localdomain;
root /opt/tomcat/static;
location / {
# autoindex off;
# autoindex_exact_size on;
# autoindex_localtime off;
# expires off;
# cooperate with mod_realip in apache-1.3 or mod_rpaf in apache-2.x
# proxy_redirect off;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $remote_addr;
# proxy_pass http://back.end.addr.ess:80/;
#
# NB: it's better for URI canonicalization that apache sits on :80
# (even if that's only 127.0.0.1:80)
#
# see also set_real_ip_from, real_ip_header if this nginx
# would need to cooperate with another one acting as a frontend
}
# Pass PHP scripts to PHP5-FPM
# location ~* \.php$ {
# fastcgi_index index.php;
# fastcgi_pass unix:/var/run/php5-fpm/php5-fpm.sock;
# include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
# fastcgi_param SCRIPT_NAME $fastcgi_script_name;
# }
access_log /var/log/nginx/access.log;
}
server {
listen *:8080;
server_name iais.kemsu.ru;
root /opt/tomcat/static/wiki;
client_max_body_size 5m;
client_body_timeout 60;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?title=$1&$args;
}
location ^~ /maintenance/ {
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/tmp/phpfpm.sock;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri /index.php;
expires max;
log_not_found off;
}
location = /_.gif {
expires max;
empty_gif;
}
location ^~ /cache/ {
deny all;
}
location /dumps {
root /opt/tomcat/static/wiki/local;
autoindex on;
}
}
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
@ 2013-09-04 2:36 ` REAL
2013-09-04 8:47 ` Michael Shigorin
2013-09-11 4:42 ` REAL
1 sibling, 1 reply; 15+ messages in thread
From: REAL @ 2013-09-04 2:36 UTC (permalink / raw)
To: ALT Linux Community general discussions
03.09.2013 15:59, Дмитрий Кулик пишет:
>> location ~ \.php$ {
>> include fastcgi_params;
>> fastcgi_pass unix:/tmp/phpfpm.sock;
>>
> Для начала убедитесь что php5-fpm настроен на этот путь и запущен.
Он запущен. А как и где настраивать php5-fpm.
> Стандартный путь unix:/var/run/php5-fpm/php5-fpm.sock;
Заменил fastcgi_pass unix:/tmp/phpfpm.sock; на fastcgi_pass
unix:/var/run/php5-fpm/php5-fpm.sock;
стала проявляться просто пустая страница.
PS. Не знал, что так трудно получить в этой рассылке помощь. С каждым
ответом на мой вопрос появляется ещё больше вопросов. Может быть,
кто-нибудь на вики руководство напишет? А то время идёт, а воз и ныне там.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-04 2:36 ` REAL
@ 2013-09-04 8:47 ` Michael Shigorin
0 siblings, 0 replies; 15+ messages in thread
From: Michael Shigorin @ 2013-09-04 8:47 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Wed, Sep 04, 2013 at 09:36:07AM +0700, REAL wrote:
> >Для начала убедитесь что php5-fpm настроен на этот путь и запущен.
> Он запущен. А как и где настраивать php5-fpm.
http://www.altlinux.org/Nginx/php5-fpm
PS: если регулярно встают сисадминские вопросы подобного плана,
рекомендую также подписаться на sysadmins@.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
` (3 preceding siblings ...)
2013-09-03 5:26 ` REAL
@ 2013-09-10 4:28 ` REAL
2013-09-10 5:08 ` Motsyo Gennadi aka Drool
2013-09-10 8:23 ` Michael Shigorin
4 siblings, 2 replies; 15+ messages in thread
From: REAL @ 2013-09-10 4:28 UTC (permalink / raw)
To: ALT Linux Community general discussions, Michael Shigorin
02.09.2013 13:06, Дмитрий Кулик пишет:
> Конфигурируем nginx, БД
nginx наконец-то сконфигурировал, а вот как настроить mysql? В секции
"Database config" есть поля "Database name", "DB username" итд. Сам я
никогда с mysql дел не имел, так что даже без понятия, что и как нужно
делать.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-10 4:28 ` REAL
@ 2013-09-10 5:08 ` Motsyo Gennadi aka Drool
2013-09-10 5:25 ` REAL
2013-09-10 8:23 ` Michael Shigorin
1 sibling, 1 reply; 15+ messages in thread
From: Motsyo Gennadi aka Drool @ 2013-09-10 5:08 UTC (permalink / raw)
To: ALT Linux Community general discussions
10.09.2013 07:28, REAL пишет:
> nginx наконец-то сконфигурировал, а вот как настроить mysql? В секции
> "Database config" есть поля "Database name", "DB username" итд. Сам я
> никогда с mysql дел не имел, так что даже без понятия, что и как нужно
> делать.
mysqladmin create имя_базы_данных
Небольшая хавтушка нагуглилась тут:
http://guruadmin.ru/page/mysql-kak-sozdat-polzovatelja-v-mysql
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-10 5:08 ` Motsyo Gennadi aka Drool
@ 2013-09-10 5:25 ` REAL
0 siblings, 0 replies; 15+ messages in thread
From: REAL @ 2013-09-10 5:25 UTC (permalink / raw)
To: ALT Linux Community general discussions
10.09.2013 12:08, Motsyo Gennadi aka Drool пишет:
> mysqladmin create имя_базы_данных
> Небольшая хавтушка нагуглилась тут:
> http://guruadmin.ru/page/mysql-kak-sozdat-polzovatelja-v-mysql
Спасибо.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-10 4:28 ` REAL
2013-09-10 5:08 ` Motsyo Gennadi aka Drool
@ 2013-09-10 8:23 ` Michael Shigorin
1 sibling, 0 replies; 15+ messages in thread
From: Michael Shigorin @ 2013-09-10 8:23 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Tue, Sep 10, 2013 at 11:28:04AM +0700, REAL wrote:
> >Конфигурируем nginx, БД
> nginx наконец-то сконфигурировал, а вот как настроить mysql?
apt-get install MySQL-server
chkconfig mysqld on
service mysqld start
> В секции "Database config" есть поля "Database name",
> "DB username" итд. Сам я никогда с mysql дел не имел, так что
> даже без понятия, что и как нужно делать.
http://www.altlinux.org/MySQL
(или поищи на вики слово "mysqladmin")
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
2013-09-04 2:36 ` REAL
@ 2013-09-11 4:42 ` REAL
1 sibling, 1 reply; 15+ messages in thread
From: REAL @ 2013-09-11 4:42 UTC (permalink / raw)
To: ALT Linux Community general discussions
03.09.2013 15:59, Дмитрий Кулик пишет:
>> location ~ \.php$ {
>> include fastcgi_params;
>> fastcgi_pass unix:/tmp/phpfpm.sock;
>>
> Для начала убедитесь что php5-fpm настроен на этот путь и запущен.
> Стандартный путь unix:/var/run/php5-fpm/php5-fpm.sock;
А как бы сделать так, что при обращении к my.server.ru осуществлялся
выбор index.php? Сейчас вместо этого показывает либо листинг файлов,
либо "403 Forbidden".
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] wiki & nginx
@ 2013-09-11 6:02 ` REAL
0 siblings, 0 replies; 15+ messages in thread
From: REAL @ 2013-09-11 6:02 UTC (permalink / raw)
To: ALT Linux Community general discussions
11.09.2013 12:51, Дмитрий Кулик пишет:
> index index.php;
>
> location ~ \.php$ {
Спасибо, заработало.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2013-09-11 6:02 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-02 3:34 [Comm] wiki & nginx REAL
2013-09-02 5:52 ` REAL
2013-09-02 6:25 ` REAL
2013-09-03 2:58 ` REAL
2013-09-03 3:20 ` REAL
2013-09-03 3:35 ` REAL
2013-09-03 5:26 ` REAL
2013-09-04 2:36 ` REAL
2013-09-04 8:47 ` Michael Shigorin
2013-09-11 4:42 ` REAL
2013-09-11 6:02 ` REAL
2013-09-10 4:28 ` REAL
2013-09-10 5:08 ` Motsyo Gennadi aka Drool
2013-09-10 5:25 ` REAL
2013-09-10 8:23 ` Michael Shigorin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git