Problem with custom php.ini (suPHP) for every domain

tolisgr

Verified User
Joined
Jan 28, 2009
Messages
22
Hello,

my problem is this, till now every user at my server had his personal php.ini file (its a small server with few users). Yesterday I created a new user account and followed the same procedure to give him his php.ini file, the problem is that his php ini file exists but it is not parsed, instead all the other users continues to have their own ini file with no problems.

phpinfo() from an old user:
old.jpg


phpinfo() from newly created user:
new.jpg


Please help,
Thank you in advance.
 
To be more accurate, the procedure for the php.ini file is done automatically for every new user account I create. The same happened with this account when I created it, a new php.ini file created automatically at his user folder inside directadmin (/usr/local/directadmin/data/users/(user)/php.ini)

To enable the auto-creation of php.ini files I created "user_create_post.sh" inside "/usr/local/directadmin/scripts/custom/" that runs on every new user account.

user_create_post.sh:
Code:
#!/bin/sh
touch /usr/local/directadmin/data/users/$username/php.ini
echo "open_basedir = /home/$username/:/tmp/" >> /usr/local/directadmin/data/users/$username/php.ini
chown root:root /usr/local/directadmin/data/users/$username/php.ini

exit 0;

I used the directions at post: http://directadmin.com/forum/showthread.php?t=29483&highlight=Now+lets+enable+open_basedir (see the highlight)

I checked many times, and php.ini for the new user truly exists where it should be, but for some reason it is not parsed as you see at image.

ls -l for php.ini:
Code:
-rw-r--r-- 1 root     root       32 Sep 26 21:49 php.ini

Does anyone now a possible reason, or where can I see some errorlog about php or why it cannot parse the ini file?

Thank You.
 
Back
Top