Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd May 2010, 00:25
ftassi ftassi is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default enable php cli for jailkit chrooted user

hi all,

i'm trying to configure ispconfig to have ssh user that can use php-cli. My ultimate goal is to create with ispconfig a jailkit user that can run symfony task.

I've tryed to changing jailkit conf in ispconfig setting :

/usr/bin/php in " Jailkit chrooted applications" field but it didn't work.

perhaps this is a jailkit configuration issue rather than an ispconfig one, but i really don't get it and i'm not able to find any usefull information over the web

thanks for your help.
Reply With Quote
Sponsored Links
  #2  
Old 2nd May 2010, 18:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Have you ctreated a new website after you added /usr/bin/php to the jailed applications? The jail gets only created once when a website get created, it does not get created when you e.g. add a ssh user to a website that has alraedy jailed ssh users.

To debug this, please create a new website for testing, then add a new jailed ssh user to this site and then check if /usr/bin/php is present in the jail.

Also, is /usr/bin/php the real cli php binary or just a symlink to the binary. You can e.g. test this with:

ls -la /usr/bin/php

If its a symlink, find the php-cli binary and add the path to it in the jailkit configuration instead.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd May 2010, 19:09
ftassi ftassi is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
Have you ctreated a new website after you added /usr/bin/php to the jailed applications? The jail gets only created once when a website get created, it does not get created when you e.g. add a ssh user to a website that has alraedy jailed ssh users.
No, I haven't created a new website, only a new user.

Quote:
Originally Posted by till View Post
To debug this, please create a new website for testing, then add a new jailed ssh user to this site and then check if /usr/bin/php is present in the jail.

Also, is /usr/bin/php the real cli php binary or just a symlink to the binary. You can e.g. test this with:

ls -la /usr/bin/php

If its a symlink, find the php-cli binary and add the path to it in the jailkit configuration instead.
In my env(ubuntu) /usr/bin/php is a symlink to a file that is a symlink to another file, the real path for the php-cli is

/usr/bin/php5

so i've used this one in the jailkit confěguration parameter.

After changing the conf i've created a new site and a new ssh user for it but it still can't use php.

Did you have any other idea ?
Have to wait time between changing jailkit conf and create new site (maybe some cronjob need to run before create a new site with the new conf ?)

Thank for the replay.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 13:29
Vhosts...conf not synced to changes crypted General 50 24th April 2010 00:54
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
VirtualHosts marra87 General 9 12th September 2006 04:09
php script injections Grizzly General 21 18th July 2006 08:55


All times are GMT +2. The time now is 20:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.