Per Domain php.ini Settings with FastCGI Plesk 9.2.1 HELP!
Posted: Tue Jul 21, 2009 12:06 am
(DISCLAIMER - I already posted this in PHP, but I think this might be the correct forum. I am desperate and not sure, so please forgive me in advance. Any help is greatly appreciated and please delete whichever post you feel is best)
Hi all,
Scott, it's been awhile, but I have been watching your progress from afar. Things are really developing.
Here is my question. And I am either a total noob, or I am not alone. Plesk 9.2.1, clean install, stock image off of 1and1, art updated. Running the latest of everything as of yesterday.
I used suPHP in the past, but found it had some issues. I am willing to go back, but I was excited about what P9.2.1 offered with the click and go FastCGI. My initial tests were positive. Set all Directories to 755, all files to 644, owner.psacln and it was straight forward. I was able to delete files from within a Joomla site after adding them and they used the ftp credentials. Everything was great. All I had to do next was do my trusty PHP settings in my vhost.conf file and websrvmgr the box.
I then went and set the necessary php.ini settings and restarted the webserver, and was stopped dead in my tracks after I realized they were no longer being picked up in the vhost.conf file. (and of course it ignores the safe_mode setting under plesk from within the control panel)
Now after well over 40-55 hours of non-stop searching and reading and searching (and more reading...), I have learned that I am lost, lol.
I learned that I am really running this as a wrapper and that it (FastCGI fcgi) is only pulling the php.ini settings from /etc/php.ini. But then I also saw that it was running as an apache module. So I don't know. I am just in need of a point in the right direction to tell me if I am wasting my time or not.
Here is what I have read that seems to touch on the issue I am having. I still have not decided what to do next. If I have to kludge a fix that is so complicated, then I may as well suPHP my way for now.
Here are SOME of the links:
http://www.forum.psoft.net/showthread.php?t=21125
http://forum.parallels.com/showthread.php?t=82866
http://forum.parallels.com/pda/index.php/t-83298.html
http://www.askapache.com/php/custom-php ... ricks.html
Good Link Below, I think he has the solution, but I couldn't get it working.
http://www.sebastian.himberger.de/blog/ ... h-fastcgi/
Not in any particular order, but the first one helped me wrap my brain around this, although it wasn't plesk specific. I absolutely did NOT want to surrender to writing a post and then having to wait
but I am defeated and I know I am not the only one having this problem.
Here is what I was trying to achieve:
-Virtual Domains each to have their own php.ini/php settings, I don't care how, but a place to provide unique per domain php settings. vhost.conf, a directory under etc, .htaccess, etc. whatever, I don't care as long as it works, lol.
-I need to be able to set open_basedir, display_errors, safe_mode, etc.
-This is critical for most of the popular applications like Joomla, SugarCRM, etc. (vTiger), all of which we use.
I am flat out stuck in the stuck with no place to go (like Richard Gear in "Officer and a Gentleman", lol). I completely surrender and will gladly buy a drink for anyone who can help. After all my homework, I just can't believe I am alone on this. I can't be the only one trying to use FastCGI and have unique / per domain php.ini settings. If I am, then I won't be for long
All the best.
Hi all,
Scott, it's been awhile, but I have been watching your progress from afar. Things are really developing.
Here is my question. And I am either a total noob, or I am not alone. Plesk 9.2.1, clean install, stock image off of 1and1, art updated. Running the latest of everything as of yesterday.
I used suPHP in the past, but found it had some issues. I am willing to go back, but I was excited about what P9.2.1 offered with the click and go FastCGI. My initial tests were positive. Set all Directories to 755, all files to 644, owner.psacln and it was straight forward. I was able to delete files from within a Joomla site after adding them and they used the ftp credentials. Everything was great. All I had to do next was do my trusty PHP settings in my vhost.conf file and websrvmgr the box.
I then went and set the necessary php.ini settings and restarted the webserver, and was stopped dead in my tracks after I realized they were no longer being picked up in the vhost.conf file. (and of course it ignores the safe_mode setting under plesk from within the control panel)
Now after well over 40-55 hours of non-stop searching and reading and searching (and more reading...), I have learned that I am lost, lol.
I learned that I am really running this as a wrapper and that it (FastCGI fcgi) is only pulling the php.ini settings from /etc/php.ini. But then I also saw that it was running as an apache module. So I don't know. I am just in need of a point in the right direction to tell me if I am wasting my time or not.
Here is what I have read that seems to touch on the issue I am having. I still have not decided what to do next. If I have to kludge a fix that is so complicated, then I may as well suPHP my way for now.
Here are SOME of the links:
http://www.forum.psoft.net/showthread.php?t=21125
http://forum.parallels.com/showthread.php?t=82866
http://forum.parallels.com/pda/index.php/t-83298.html
http://www.askapache.com/php/custom-php ... ricks.html
Good Link Below, I think he has the solution, but I couldn't get it working.
http://www.sebastian.himberger.de/blog/ ... h-fastcgi/
Not in any particular order, but the first one helped me wrap my brain around this, although it wasn't plesk specific. I absolutely did NOT want to surrender to writing a post and then having to wait

Here is what I was trying to achieve:
-Virtual Domains each to have their own php.ini/php settings, I don't care how, but a place to provide unique per domain php settings. vhost.conf, a directory under etc, .htaccess, etc. whatever, I don't care as long as it works, lol.
-I need to be able to set open_basedir, display_errors, safe_mode, etc.
-This is critical for most of the popular applications like Joomla, SugarCRM, etc. (vTiger), all of which we use.
I am flat out stuck in the stuck with no place to go (like Richard Gear in "Officer and a Gentleman", lol). I completely surrender and will gladly buy a drink for anyone who can help. After all my homework, I just can't believe I am alone on this. I can't be the only one trying to use FastCGI and have unique / per domain php.ini settings. If I am, then I won't be for long

All the best.