openruko / dynohost

Hypervisor for openruko dynos (wraps over LXC)
34 stars 9 forks source link

Default PHP buildpack doesn't work #14

Closed maxired closed 11 years ago

maxired commented 11 years ago

The default php buildpacks ask to run with user ang groups setted to daemon

User daemon
Group daemon

Inside the provision script , the only user created are root and user. With this configuration we are not able to run the php buildpacks (For information i successfully run NodeJS and python apps.)

Filirom1 commented 11 years ago

It's strange because it doesn't look to be the case on heroku:

$ heroku run bash
Running `bash` attached to terminal... up, run.4302
~ $ id
uid=27264(u27264) gid=27264
~ $ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
u15693:x:15693:15693:,,,:/app/:/bin/bash
~ $ cat /etc/group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:
fax:x:21:
voice:x:22:
cdrom:x:24:
floppy:x:25:
tape:x:26:
sudo:x:27:
audio:x:29:
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:
sasl:x:45:
plugdev:x:46:
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
libuuid:x:101:
ssh:x:102:
maxired commented 11 years ago

I'm not sure how works Heroku, whether or not they launch a full VM. In our case, WE inside the provision script create the users. And we don't create all theses users but only the two already mentioned.

Filirom1 commented 11 years ago

Fixed by da28b3e650afe6c4a331e21d90102a08d5daccd6.

maxired commented 11 years ago

Thanks