#1 (permalink)  
Old 06-14-2006, 08:22 AM
Registered User
 
Join Date: Feb 2006
Posts: 15
a_raims is on a distinguished road
PHP5 not detecting php.ini in user's home dir

Hi,

PHP4 and PHP5.0.5 is installed in server and both are working great.
But php5 is not detecting php.ini file in user's home directory. PHPsuexec is
enabled with both php4 and php5.

Any help is appreciated..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-14-2006, 07:46 PM
Registered User
 
Join Date: Dec 2003
Posts: 124
Mysteerie
Having the same the problem as well. php 5.1.4 with phpsuexec.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-16-2006, 02:38 PM
Registered User
 
Join Date: Mar 2004
Posts: 704
lloyd_tennison is on a distinguished road
This thread http://forums.cpanel.net/showthread.php?t=53185& says

Quote:

1. Place a customized php.ini file in an account's home directory (i.e. /home/user/php.ini)
2. Then run the following:

find /home/user/public_html -type d -exec ln -s /home/user/php.ini {} \;

Note that you have to give the full path of the customized php.ini file and you want to use /home/user/public_html as your starting point. The above command finds all directories under the public_html folder and then creates a symbolic link to the php.ini file in the user's home directory in all of those directories. (Note, change user with the actual username of the account).
I have it on my list of things to try the next time I need a custom php.ini. The custom one has to be in the directory of the exception, not above it as rights do not transfer down the directory tree.
__________________
Lloyd F Tennison
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-29-2006, 01:56 PM
Registered User
 
Join Date: Apr 2004
Posts: 604
ispro is on a distinguished road
Guys, I advice to install custom wrapper to handle such cases (of course, if you run PHP5 via Action directive!):

http://forums.cpanel.net/showpost.ph...52&postcount=1

Read the section about the wrapper.
__________________
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-07-2006, 06:02 PM
Registered User
 
Join Date: May 2006
Posts: 8
Onyx is on a distinguished road
After testing a number of options it seems that PHP 5.1.4 does not fully support custom php.ini files. Don't know whether this is a bug or a change in the direction of PHP, but I truly needed per-directory php.ini support. Downgrading PHP to 5.0.5 fixed this problem and all is well. I haven't tested per-home-directory but I would imagine this works as well. Of course a custom wrapper is probably the best way to go for flexibility on shared hosting, but downgrading is a good temporary fix should you not need the latest PHP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-16-2006, 07:10 PM
manokiss's Avatar
Registered User
 
Join Date: Mar 2002
Posts: 465
manokiss
hi ispro, i did follow your instructions and also have the wrapper, but with 5.1.4 is not working that wrapper.

Any idea how to get it working?

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-17-2006, 02:46 AM
Registered User
 
Join Date: Apr 2004
Posts: 604
ispro is on a distinguished road
Quote:
Originally Posted by manokiss
hi ispro, i did follow your instructions and also have the wrapper, but with 5.1.4 is not working that wrapper.

Any idea how to get it working?

Thank you!
I have not much time to debug it. However check the wrapper for custom php.ini input. Perhaps commandline params were changed in 5.1.4 (in past it was -c param). Check it.

Perhaps later I will take a look.
__________________
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-06-2006, 12:33 AM
Registered User
 
Join Date: Jun 2003
Posts: 99
Francisco is on a distinguished road
any news on this?


Having this problem as well, and I only need to enable register_globals for one account.
__________________
Working on signature. www.NAVIGATORis.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-06-2006, 03:14 AM
Registered User
 
Join Date: Jun 2004
Posts: 102
Earendil
I believe it's related to this bug:

http://bugs.php.net/bug.php?id=33882

Which was included in PHP5.
No current workaround, although I have been told that it should work with suPHP (in beta atm) instead of phpSuExec
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc