Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cpanel:custom-php-ini-fastcgi [2011-04-06 23:06:56] garrett.plasky Approved |
cpanel:custom-php-ini-fastcgi [2011-06-30 23:04:34] garrett.plasky Approved |
||
---|---|---|---|
Line 10: | Line 10: | ||
Next, you'll need to source your main server php.ini which is located in / | Next, you'll need to source your main server php.ini which is located in / | ||
- | <code console># cd / | + | <sxh shell>cd / |
- | # cp -a / | + | cp -a / |
- | # chown user:user php.ini</ | + | chown user:user php.ini</ |
Next we need to create the wrapper script. Create a file in your current directory (cgi-bin) called | Next we need to create the wrapper script. Create a file in your current directory (cgi-bin) called | ||
Line 23: | Line 23: | ||
Finally, make sure the ownership and permissions are correct on this file: | Finally, make sure the ownership and permissions are correct on this file: | ||
- | <code console># chown user:user php5.fcgi && chmod 0755 php5.fcgi</ | + | <sxh shell>chown user:user php5.fcgi && chmod 0755 php5.fcgi</ |
You can now edit the php.ini inside cgi-bin/ and change the desired values. You can verify they are set properly by inserting the phpinfo() function inside a PHP script on that user account. | You can now edit the php.ini inside cgi-bin/ and change the desired values. You can verify they are set properly by inserting the phpinfo() function inside a PHP script on that user account. | ||
{{tag> | {{tag> |