Plesk 10.3.1 and "per domain php.ini" --> doesn't work :|

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
Gengis
New Forum User
New Forum User
Posts: 2
Joined: Fri Sep 30, 2011 6:57 am
Location: ITA

Plesk 10.3.1 and "per domain php.ini" --> doesn't work :|

Unread post by Gengis »

Hi @ all,

i am new here but i am not new to this question :( i asked to parallels, to our provider, nothing... nobody can help me..

on our Plesk 10.3.1 we enabled FastCGI mode on "example.com" domain:
but it seems that Apache always uses "/etc/php.ini" and ignores "/var/www/vhosts/example.com/conf/php.ini" ...
http://download1.parallels.com/Plesk/PP ... =69310.htm

We made "example.com" with the default "Apache module", "/var/www/vhosts/example.com/conf/" and "/var/www/vhosts/example.com/etc/" folders were without any "php.ini"

After set FastCGI mode on "example.com", only in "/var/www/vhosts/example.com/etc/" folder appeared the "php.ini" as is:

[PHP]
open_basedir = /var/www/vhosts/example.com/httpdocs:/tmp
safe_mode = Off

"/var/www/vhosts/example.com/conf/" folder remains without any php.ini (is it normal ?)

so i put in "/example.com/conf/" this php.ini and I restarted Apache (httpd)

[PHP]
safe_mode = Off
open_basedir = /var/www/vhosts/example.com/httpdocs:/tmp
session.save_path = /var/www/vhosts/example.com/httpdocs/session ( <-- IGNORED !! the session was created in the default-php folder "/tmp" )

It seems that Apache IGNORES both "per domain php.ini" and it looks only to the general default "/etc/php.ini" ...

Why so ? Something missing ?

Thank you.
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: Plesk 10.3.1 and "per domain php.ini" --> doesn't work :

Unread post by hostingguy »

Did you try this?

http://kb.parallels.com/9059
Using custom php.ini for Php in FastCGI mode per-domain
Gengis
New Forum User
New Forum User
Posts: 2
Joined: Fri Sep 30, 2011 6:57 am
Location: ITA

Re: Plesk 10.3.1 and "per domain php.ini" --> doesn't work :

Unread post by Gengis »

hostingguy wrote:Did you try this?

http://kb.parallels.com/9059
Using custom php.ini for Php in FastCGI mode per-domain
Thank you,

but this attach is for Plesk 9.x ...

APPLIES TO: Plesk 9.x for Linux/Unix

I have 10.3.1, i don't know if i can use..
and i cannot personalize php.ini per domain :evil:
with fcgi htaccess don't work ... moreover parallels doesn't help with KB or manuals ...

HELP !

thank you.
Post Reply