bahattab
09-03-2010, 09:51 PM
How to Copy the php.ini file in your local dirctory ?
If you need to obtain a copy of the php.ini file, please run the following command via SSH from the directory where you want to copy the php.ini file on your account:
cp /usr/local/lib/php.ini .
(notice the period at the end of the line, that needs to be entered)
That will copy the global php.ini file into your current working directory. If you need further assistance, please contact support.
http://wiki.site5.com/Php.ini
Customized php.ini
You can copy the default php.ini from http://wiki.site5.com/Php.ini or you can use this fancy one-liner from your shell access.
$ php -i | grep php.ini | grep -i path | sed 's/.* \///' | awk '{ printf("cp /%s/php.ini .",$1) | "sh" }' This will place a new php.ini file in your current directory. You can download this file, edit it in any text editor, save and re-upload the file to the desired location and the scripts will start using it immediately. Make sure you set the permissions on the file to be 644 so the server has access to read it.
Note: "7200" is 2 hours in seconds
http://wiki.site5.com/PHP#Enabling_ffmpeg-php_Support
If you need to obtain a copy of the php.ini file, please run the following command via SSH from the directory where you want to copy the php.ini file on your account:
cp /usr/local/lib/php.ini .
(notice the period at the end of the line, that needs to be entered)
That will copy the global php.ini file into your current working directory. If you need further assistance, please contact support.
http://wiki.site5.com/Php.ini
Customized php.ini
You can copy the default php.ini from http://wiki.site5.com/Php.ini or you can use this fancy one-liner from your shell access.
$ php -i | grep php.ini | grep -i path | sed 's/.* \///' | awk '{ printf("cp /%s/php.ini .",$1) | "sh" }' This will place a new php.ini file in your current directory. You can download this file, edit it in any text editor, save and re-upload the file to the desired location and the scripts will start using it immediately. Make sure you set the permissions on the file to be 644 so the server has access to read it.
Note: "7200" is 2 hours in seconds
http://wiki.site5.com/PHP#Enabling_ffmpeg-php_Support