LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > php and exec

Reply
 
Thread Tools Display Modes
  #11  
Old 10-06-2012, 03:54 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
so:
1.the output of which is correct. since $PATH is empty
2.the output of "env", no PATH, this also show that $PATH is empty
3.why $PATH is empty, need further investigate.
4.
in exterl app lsphp5's definition, add
PATH=/usr/local/bin:/bin:/usr/bin
to Environment, the output is what expected:
Quote:
:: [echo $PATH]
/usr/local/bin:/bin:/usr/bin

:: [echo ]


:: [PATH=/usr/local/bin:/bin:/usr/bin /usr/bin/which ls]
/bin/ls

:: [/usr/bin/which ls]
/bin/ls

:: [id]
uid=555(shooting) gid=555(shooting) groups=555(shooting)

:: [alias]

:: [env]
PHPRC=/home/shooting/
PATH=/usr/local/bin:/bin:/usr/bin
PWD=/home/shooting/public_html/Darladog
SHLVL=1
_=/bin/env
5.my local linux box, without set PATH explicitly in lsphp5's Environment, it still show PATH:
PATH=/bin:/usr/bin
Reply With Quote
  #12  
Old 10-09-2012, 03:15 PM
mrxUx mrxUx is offline
Member
 
Join Date: Jul 2012
Posts: 23
@Nitewave: amazing this should be something configured by default isn't it? at least for the ones that use it with cPanel/WHM and dual PHP.

Thanks for the help!
Reply With Quote
Reply

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


All times are GMT -7. The time now is 12:18 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.