Go Back   Cloud Computing > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-11, 05:09
BOD Member
 
Join Date: Nov 2010
Posts: 14
Default To Customize the php directives for perituclar domain using the php.ini file On the S

To Customize the php directives for perituclar domain using the php.ini file On the Server comiled with PHP FastCGI


(Plesk Panel 9.2.2 on CentOS 5.3 with PHP 5.2.9)

1. Move /usr/bin/php-cgi to /usr/bin/php-cgi.app

2. Create a new /usr/bin/php-cgi file and put the following lines in it:
Code:

#!/bin/sh # # Custom PHP FCGID wrapper for Plesk domains # PHPRC="/etc/php-ini.d/php-${UID}.ini" [ -f ${PHPRC} ] || PHPRC="/etc/php.ini" export PHPRC exec /usr/bin/php-cgi.app

3. Create the directory /etc/php-ini.d/

4. Check domain/ftpuser UID for which you want to have a custom php.ini.
Example /etc/passwd:
icann:x:10001:2523::/home/httpd/vhosts/icann.org:/bin/false

4. Copy the original /etc/php.ini to /etc/php-ini.d/php-10001.ini

5. Make any changes you want to php-10001.ini

6. Run service httpd reload
__________________
Phil
Simple, Capable, Ready For the Future
Reply With Quote
  #2 (permalink)  
Old 06-29-11, 14:30
BOD Member
 
Join Date: Jun 2011
Posts: 91
Default

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.