Показать полную графическую версию : Не могу поставить php5-fpm Debian(32)
http://habrahabr.ru/post/113101/
делаю все по этой статье ... Debian 6.2
apt-get install php5-cli php5-common php5-suhosin
apt-get install php5-fpm php5-cgi
Начинаю это делать и пишет ошибки
apt-get install php5-fpm php5-cgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-cgi : Depends: libdb5.1 but it is not installable
Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze1 is to be installed
Depends: php5-common (= 5.4.27-1~dotdeb.1) but it is not going to be installed
php5-fpm : Depends: libdb5.1 but it is not installable
Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze1 is to be installed
Depends: php5-common (= 5.4.27-1~dotdeb.1) but it is not going to be installed
E: Broken packages
делаю все по этой статье »
Cтатье-то три годика… Многое поменялось, а тупая копипаста команд приводит к закономерному результату.
да понятно, но что поделаешь если оно в топе гугла ..., остальное в принципе тоже самое. Вот и мыкаюсь, буду благодарен помощи
Ставьте wheezy, раз уж решили дебианом пользоваться, и не надо никаких бэкпортов.
я не могу выбирать это VPS
список доступных OS
CentOS 5.5 - 32bit
CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. (CentOS mainly changes packages to remove upstream vendor branding and artwork.) CentOS is free.
CentOS 5.5 - 64 bit
CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. (CentOS mainly changes packages to remove upstream vendor branding and artwork.) CentOS is free.
CentOS 6 - 32 bit
CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. (CentOS mainly changes packages to remove upstream vendor branding and artwork.) CentOS is free.
CentOS 6 - 64 bit
CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. (CentOS mainly changes packages to remove upstream vendor branding and artwork.) CentOS is free.
Debian 5 - 32 bit
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU/Linux.
Debian 5 - 64 bit
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU/Linux.
Debian 6 - 32 bit
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU/Linux.
Debian 6 - 64 bit
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU/Linux.
Gentoo
We produce Gentoo Linux, a special flavor of Linux that can be automatically optimized and customized for just about any application or need. Extreme performance, configurability and a top-notch user and developer community are all hallmarks of the Gentoo experience.
Scientific 6 - 32 bit
Scientific Linux (SL) SL is a Linux release put together by Fermilab, CERN, and various other labs and universities around the world. Its primary purpose is to reduce duplicated effort of the labs, and to have a common install base for the various experimenters. Main goal for the base distribution is to have everything compatible with Enterprise, with only a few minor additions or changes. Examples of items that were added are Alpine, and OpenAFS.
Scientific 6 - 64 bit
Scientific Linux (SL) SL is a Linux release put together by Fermilab, CERN, and various other labs and universities around the world. Its primary purpose is to reduce duplicated effort of the labs, and to have a common install base for the various experimenters. Main goal for the base distribution is to have everything compatible with Enterprise, with only a few minor additions or changes. Examples of items that were added are Alpine, and OpenAFS.
SlackWare 11.0 - 32 bit
The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities. Including the latest popular software while retaining a sense of tradition, providing simplicity and ease of use alongside flexibility and power, Slackware brings the best of all worlds to the table.
SlackWare 12.0 - 32 bit
The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities. Including the latest popular software while retaining a sense of tradition, providing simplicity and ease of use alongside flexibility and power, Slackware brings the best of all worlds to the table.
SlackWare 13.0 - 32 bit
The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities. Including the latest popular software while retaining a sense of tradition, providing simplicity and ease of use alongside flexibility and power, Slackware brings the best of all worlds to the table.
Suse 11.3 - 32 bit
SUSE Linux Enterprise is the most interoperable platform for mission-critical computing—both physical and virtual—from the desktop to the data center.
Suse 11.3 - 64 bit
SUSE Linux Enterprise is the most interoperable platform for mission-critical computing—both physical and virtual—from the desktop to the data center.
Suse 11.4 - 32 bit
SUSE Linux Enterprise is the most interoperable platform for mission-critical computing—both physical and virtual—from the desktop to the data center.
Suse 11.4 - 64 bit
SUSE Linux Enterprise is the most interoperable platform for mission-critical computing—both physical and virtual—from the desktop to the data center.
Suse 12.1 - 32 bit
SUSE Linux Enterprise is the most interoperable platform for mission-critical computing—both physical and virtual—from the desktop to the data center.
Suse 12.1 - 64 bit
SUSE Linux Enterprise is the most interoperable platform for mission-critical computing—both physical and virtual—from the desktop to the data center.
Ubuntu 10.04 - 32 bit
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office.
Ubuntu 10.04 - 32 bit (LAMP)
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office. This version is LAMP, already preinstalled: Ubuntu 10.04, Apache 2, MySQL 5, PHP 5
Ubuntu 10.10 - 32 bit
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office.
Ubuntu 10.10 - 64 bit
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office.
Ubuntu 11.04 - 32 bit
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office.
Ubuntu 11.04 - 64 bit
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office.
Ubuntu 12.04 - 32 bit
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office.
Ubuntu 12.04 - 64 bit
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the applications you need: a web browser, office suite, media apps, instant messaging and much more. Ubuntu is an open-source alternative to Windows and Office.
Ну тогда убунту 12.04 и дальше по хелпу http://help.ubuntu.ru/wiki/nginx-phpfpm
все поднял - спасибо большое
не буду создавать новую ветку, так как тут тоже в тему :)
php работает нормально сейчас ... но вот все картинки отдаются Access denied как поправить? Тоже самое и на txt ...
лог
171.244.53.123 - - [13/Apr/2014:03:27:55 +0400] "GET /i/da.png HTTP/1.1" 403 25 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36"
MakaBooka
13-04-2014, 18:08
. но вот все картинки отдаются Access denied как поправить? »
проверить владельца картинок, да.
проверить владельца картинок, да. »
Вангую, что картинки заливались по фтп с умолчальным umask, не позволяющим юзеру www-data (или от кого там бегает нджинкс) их прочитать.
что картинки заливались по фтп с умолчальным umask »
блин когда мне такое говорят, я себя чувствую таким идиотом, хочется почти что то прочитать умное :) чем и займусь.
sx000, просто посмотрите и покажите вывод ls -l <путь к корню сайта>/i/da.png
-rwxr-xr-x 1 user user 106 Jun 29 2012 robots.txt
-rw-rw-r-- 1 user user 23 Apr 13 02:18 test.php
txt тоже не грузиться такие же кренделя а вот php нормально
это я сразу конфиг даю так как туда думаю может быть проблема заведет
upstream php-fpm{
server unix:/var/run/php5-fpm.sock;
}
server{
listen 80;
root /home/user/gogo.com/www;
index index.php index.html index.htm;
server_name gogo.com www.gogo.com;
location "/" {
index index.php index.html index.htm;
try_files $uri $uri/ =404;
fastcgi_pass php-fpm;
include fastcgi_params;
#include mime.types;
#default_type application/octet-stream;
fastcgi_split_path_info ^(.+?\.php)(/.*)?$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SERVER_ADMIN admin@example.com;
fastcgi_param SERVER_SIGNATURE nginx/$nginx_version;
fastcgi_index index.php;
}
-rwxr-xr-x 1 user user 106 Jun 29 2012 robots.txt
-rw-rw-r-- 1 user user 23 Apr 13 02:18 test.php »
nginx на убунте работает от юзера www-data, а что мы видим тут? у юзера user есть право на чтение, запись и исполнение, у членов группы user есть право на чтение и исполнение, у всех остальных право на чтение и исполнение. Я б сказал, что прав даже больше, чем нужно, но возможно у вас у вышестоящей директории права зарезаны (нет x для other).
Но ладно, корень сайта у вас в root /home/user/gogo.com/www; »
ls -l пройдитесь по всей цепочке, начиная c /home. Чтобы непривилегированный пользователь увидел содержимое нижележащей директории, у неё должно быть +x для other, чтобы он же мог прочитать файл, у него должно быть +r для other.
http://www.quizful.net/post/unix-file-permissions - тут кратко про права доступа к файлам unix-подобных системах.
drwxr-xr-x 3 root root 4096 Apr 13 01:57 home
drwxr-xr-x 6 www-data www-data 4096 Apr 13 02:34 user
drwxrwxr-x 3 www-data www-data 4096 Apr 13 02:04 gogo.com
drwxrwxrwx 15 user user 4096 Apr 13 03:22 www
везде r-x стоит на OTHER. Это нормально же?
везде r-x стоит на OTHER. Это нормально же? »
Да. Значит, смотрите глубже. Например так
sudo su
su - www-data
cat /home/user/gogo.com/www/i/da.png > /dev/null
если Permission denied, то прав не хватает на уровне фс
если молчок, то где-то в другом месте проблема.
если молчок, то где-то в другом месте проблема. »
моkчок, я вот на конфиг грешу nginx может в нем проблема, вроде гуглил, все пишут про какие то конфиги ... :) но так как я nginx вижу в первый раз не могу понять толком
sx000, что-то я засомневался, что нджинкс бегает от www-data
можно вывод grep user /etc/nginx/nginx.conf ?
grep user /etc/nginx/nginx.conf
user www-data;
vadblm, теперь представьте как я не могу там чего то понять :)
sx000, у меня идеи кончились, сорри.
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.